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

@ -201,14 +201,14 @@ type IAdminUserDo interface {
Find() ([]*model.AdminUser, error)
FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.AdminUser, err error)
FindInBatches(result *[]*model.AdminUser, 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.AdminUser) (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) IAdminUserDo
Assign(attrs ...field.AssignExpr) IAdminUserDo
@ -217,9 +217,9 @@ type IAdminUserDo interface {
FirstOrInit() (*model.AdminUser, error)
FirstOrCreate() (*model.AdminUser, error)
FindByPage(offset int, limit int) (result []*model.AdminUser, 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) IAdminUserDo
ScanByPage(result any, offset int, limit int) (count int64, err error)
Scan(result any) (err error)
Returning(value any, columns ...string) IAdminUserDo
UnderlyingDB() *gorm.DB
schema.Tabler
}
@ -248,7 +248,7 @@ func (a adminUserDo) Clauses(conds ...clause.Expression) IAdminUserDo {
return a.withDO(a.DO.Clauses(conds...))
}
func (a adminUserDo) Returning(value interface{}, columns ...string) IAdminUserDo {
func (a adminUserDo) Returning(value any, columns ...string) IAdminUserDo {
return a.withDO(a.DO.Returning(value, columns...))
}
@ -431,7 +431,7 @@ func (a adminUserDo) FindByPage(offset int, limit int) (result []*model.AdminUse
return
}
func (a adminUserDo) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) {
func (a adminUserDo) ScanByPage(result any, offset int, limit int) (count int64, err error) {
count, err = a.Count()
if err != nil {
return
@ -441,7 +441,7 @@ func (a adminUserDo) ScanByPage(result interface{}, offset int, limit int) (coun
return
}
func (a adminUserDo) Scan(result interface{}) (err error) {
func (a adminUserDo) Scan(result any) (err error) {
return a.DO.Scan(result)
}