feat(app): update
This commit is contained in:
@ -191,14 +191,14 @@ type ITradeCommodityDo interface {
|
||||
Find() ([]*model.TradeCommodity, error)
|
||||
FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.TradeCommodity, err error)
|
||||
FindInBatches(result *[]*model.TradeCommodity, batchSize int, fc func(tx gen.Dao, batch int) error) error
|
||||
Pluck(column field.Expr, dest interface{}) error
|
||||
Pluck(column field.Expr, dest any) error
|
||||
Delete(...*model.TradeCommodity) (info gen.ResultInfo, err error)
|
||||
Update(column field.Expr, value interface{}) (info gen.ResultInfo, err error)
|
||||
Update(column field.Expr, value any) (info gen.ResultInfo, err error)
|
||||
UpdateSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error)
|
||||
Updates(value interface{}) (info gen.ResultInfo, err error)
|
||||
UpdateColumn(column field.Expr, value interface{}) (info gen.ResultInfo, err error)
|
||||
Updates(value any) (info gen.ResultInfo, err error)
|
||||
UpdateColumn(column field.Expr, value any) (info gen.ResultInfo, err error)
|
||||
UpdateColumnSimple(columns ...field.AssignExpr) (info gen.ResultInfo, err error)
|
||||
UpdateColumns(value interface{}) (info gen.ResultInfo, err error)
|
||||
UpdateColumns(value any) (info gen.ResultInfo, err error)
|
||||
UpdateFrom(q gen.SubQuery) gen.Dao
|
||||
Attrs(attrs ...field.AssignExpr) ITradeCommodityDo
|
||||
Assign(attrs ...field.AssignExpr) ITradeCommodityDo
|
||||
@ -207,9 +207,9 @@ type ITradeCommodityDo interface {
|
||||
FirstOrInit() (*model.TradeCommodity, error)
|
||||
FirstOrCreate() (*model.TradeCommodity, error)
|
||||
FindByPage(offset int, limit int) (result []*model.TradeCommodity, count int64, err error)
|
||||
ScanByPage(result interface{}, offset int, limit int) (count int64, err error)
|
||||
Scan(result interface{}) (err error)
|
||||
Returning(value interface{}, columns ...string) ITradeCommodityDo
|
||||
ScanByPage(result any, offset int, limit int) (count int64, err error)
|
||||
Scan(result any) (err error)
|
||||
Returning(value any, columns ...string) ITradeCommodityDo
|
||||
UnderlyingDB() *gorm.DB
|
||||
schema.Tabler
|
||||
}
|
||||
@ -238,7 +238,7 @@ func (t tradeCommodityDo) Clauses(conds ...clause.Expression) ITradeCommodityDo
|
||||
return t.withDO(t.DO.Clauses(conds...))
|
||||
}
|
||||
|
||||
func (t tradeCommodityDo) Returning(value interface{}, columns ...string) ITradeCommodityDo {
|
||||
func (t tradeCommodityDo) Returning(value any, columns ...string) ITradeCommodityDo {
|
||||
return t.withDO(t.DO.Returning(value, columns...))
|
||||
}
|
||||
|
||||
@ -421,7 +421,7 @@ func (t tradeCommodityDo) FindByPage(offset int, limit int) (result []*model.Tra
|
||||
return
|
||||
}
|
||||
|
||||
func (t tradeCommodityDo) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) {
|
||||
func (t tradeCommodityDo) ScanByPage(result any, offset int, limit int) (count int64, err error) {
|
||||
count, err = t.Count()
|
||||
if err != nil {
|
||||
return
|
||||
@ -431,7 +431,7 @@ func (t tradeCommodityDo) ScanByPage(result interface{}, offset int, limit int)
|
||||
return
|
||||
}
|
||||
|
||||
func (t tradeCommodityDo) Scan(result interface{}) (err error) {
|
||||
func (t tradeCommodityDo) Scan(result any) (err error) {
|
||||
return t.DO.Scan(result)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user