fusenapi/model/gmodel/fs_quotation_saler_logic.go

11 lines
299 B
Go
Raw Normal View History

2023-06-19 10:27:31 +00:00
package gmodel
2023-06-27 10:09:56 +00:00
import "context"
// TODO: 使用model的属性做你想做的
func (c *FsQuotationSalerModel) GetOne(ctx context.Context, salerId int64) (resp FsQuotationSaler, err error) {
err = c.db.WithContext(ctx).Model(&resp).Where("`id` = ?", salerId).Take(&resp).Error
return resp, err
}