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

@ -187,14 +187,14 @@ type IUserGameRoleDo interface {
Find() ([]*model.UserGameRole, error)
FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.UserGameRole, err error)
FindInBatches(result *[]*model.UserGameRole, 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.UserGameRole) (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) IUserGameRoleDo
Assign(attrs ...field.AssignExpr) IUserGameRoleDo
@ -203,9 +203,9 @@ type IUserGameRoleDo interface {
FirstOrInit() (*model.UserGameRole, error)
FirstOrCreate() (*model.UserGameRole, error)
FindByPage(offset int, limit int) (result []*model.UserGameRole, 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) IUserGameRoleDo
ScanByPage(result any, offset int, limit int) (count int64, err error)
Scan(result any) (err error)
Returning(value any, columns ...string) IUserGameRoleDo
UnderlyingDB() *gorm.DB
schema.Tabler
}
@ -234,7 +234,7 @@ func (u userGameRoleDo) Clauses(conds ...clause.Expression) IUserGameRoleDo {
return u.withDO(u.DO.Clauses(conds...))
}
func (u userGameRoleDo) Returning(value interface{}, columns ...string) IUserGameRoleDo {
func (u userGameRoleDo) Returning(value any, columns ...string) IUserGameRoleDo {
return u.withDO(u.DO.Returning(value, columns...))
}
@ -417,7 +417,7 @@ func (u userGameRoleDo) FindByPage(offset int, limit int) (result []*model.UserG
return
}
func (u userGameRoleDo) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) {
func (u userGameRoleDo) ScanByPage(result any, offset int, limit int) (count int64, err error) {
count, err = u.Count()
if err != nil {
return
@ -427,7 +427,7 @@ func (u userGameRoleDo) ScanByPage(result interface{}, offset int, limit int) (c
return
}
func (u userGameRoleDo) Scan(result interface{}) (err error) {
func (u userGameRoleDo) Scan(result any) (err error) {
return u.DO.Scan(result)
}