feat(app): update

This commit is contained in:
Yangtao
2025-11-19 14:24:13 +08:00
parent 1eac66d7fd
commit 0c34585649
329 changed files with 10760 additions and 281 deletions

View File

@ -199,14 +199,14 @@ type IAdminPrivilegeDo interface {
Find() ([]*model.AdminPrivilege, error)
FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.AdminPrivilege, err error)
FindInBatches(result *[]*model.AdminPrivilege, 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.AdminPrivilege) (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) IAdminPrivilegeDo
Assign(attrs ...field.AssignExpr) IAdminPrivilegeDo
@ -215,9 +215,9 @@ type IAdminPrivilegeDo interface {
FirstOrInit() (*model.AdminPrivilege, error)
FirstOrCreate() (*model.AdminPrivilege, error)
FindByPage(offset int, limit int) (result []*model.AdminPrivilege, 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) IAdminPrivilegeDo
ScanByPage(result any, offset int, limit int) (count int64, err error)
Scan(result any) (err error)
Returning(value any, columns ...string) IAdminPrivilegeDo
UnderlyingDB() *gorm.DB
schema.Tabler
}
@ -246,7 +246,7 @@ func (a adminPrivilegeDo) Clauses(conds ...clause.Expression) IAdminPrivilegeDo
return a.withDO(a.DO.Clauses(conds...))
}
func (a adminPrivilegeDo) Returning(value interface{}, columns ...string) IAdminPrivilegeDo {
func (a adminPrivilegeDo) Returning(value any, columns ...string) IAdminPrivilegeDo {
return a.withDO(a.DO.Returning(value, columns...))
}
@ -429,7 +429,7 @@ func (a adminPrivilegeDo) FindByPage(offset int, limit int) (result []*model.Adm
return
}
func (a adminPrivilegeDo) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) {
func (a adminPrivilegeDo) ScanByPage(result any, offset int, limit int) (count int64, err error) {
count, err = a.Count()
if err != nil {
return
@ -439,7 +439,7 @@ func (a adminPrivilegeDo) ScanByPage(result interface{}, offset int, limit int)
return
}
func (a adminPrivilegeDo) Scan(result interface{}) (err error) {
func (a adminPrivilegeDo) Scan(result any) (err error) {
return a.DO.Scan(result)
}