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