2023-06-19 18:27:31 +08:00
|
|
|
package gmodel
|
2023-06-26 18:19:51 +08:00
|
|
|
|
|
|
|
import "context"
|
|
|
|
|
|
|
|
// TODO: 使用model的属性做你想做的
|
|
|
|
|
|
|
|
func (c *FsQuotationRemarkTemplateModel) GetAllSelectContent(ctx context.Context) (content []string, err error) {
|
|
|
|
err = c.db.WithContext(ctx).Model(&FsQuotationRemarkTemplate{}).Where("status = ?", 1).Select("content").Find(&content).Error
|
|
|
|
return content, err
|
|
|
|
}
|