feat(app): update
This commit is contained in:
@ -217,14 +217,14 @@ type IDataAttachDo interface {
|
||||
Find() ([]*model.DataAttach, error)
|
||||
FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.DataAttach, err error)
|
||||
FindInBatches(result *[]*model.DataAttach, 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.DataAttach) (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) IDataAttachDo
|
||||
Assign(attrs ...field.AssignExpr) IDataAttachDo
|
||||
@ -233,9 +233,9 @@ type IDataAttachDo interface {
|
||||
FirstOrInit() (*model.DataAttach, error)
|
||||
FirstOrCreate() (*model.DataAttach, error)
|
||||
FindByPage(offset int, limit int) (result []*model.DataAttach, 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) IDataAttachDo
|
||||
ScanByPage(result any, offset int, limit int) (count int64, err error)
|
||||
Scan(result any) (err error)
|
||||
Returning(value any, columns ...string) IDataAttachDo
|
||||
UnderlyingDB() *gorm.DB
|
||||
schema.Tabler
|
||||
}
|
||||
@ -264,7 +264,7 @@ func (d dataAttachDo) Clauses(conds ...clause.Expression) IDataAttachDo {
|
||||
return d.withDO(d.DO.Clauses(conds...))
|
||||
}
|
||||
|
||||
func (d dataAttachDo) Returning(value interface{}, columns ...string) IDataAttachDo {
|
||||
func (d dataAttachDo) Returning(value any, columns ...string) IDataAttachDo {
|
||||
return d.withDO(d.DO.Returning(value, columns...))
|
||||
}
|
||||
|
||||
@ -447,7 +447,7 @@ func (d dataAttachDo) FindByPage(offset int, limit int) (result []*model.DataAtt
|
||||
return
|
||||
}
|
||||
|
||||
func (d dataAttachDo) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) {
|
||||
func (d dataAttachDo) ScanByPage(result any, offset int, limit int) (count int64, err error) {
|
||||
count, err = d.Count()
|
||||
if err != nil {
|
||||
return
|
||||
@ -457,7 +457,7 @@ func (d dataAttachDo) ScanByPage(result interface{}, offset int, limit int) (cou
|
||||
return
|
||||
}
|
||||
|
||||
func (d dataAttachDo) Scan(result interface{}) (err error) {
|
||||
func (d dataAttachDo) Scan(result any) (err error) {
|
||||
return d.DO.Scan(result)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user