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