feat(app): update
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
|
||||
@ -175,14 +175,14 @@ type IAdminUserRoleDo interface {
|
||||
Find() ([]*model.AdminUserRole, error)
|
||||
FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.AdminUserRole, err error)
|
||||
FindInBatches(result *[]*model.AdminUserRole, 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.AdminUserRole) (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) IAdminUserRoleDo
|
||||
Assign(attrs ...field.AssignExpr) IAdminUserRoleDo
|
||||
@ -191,9 +191,9 @@ type IAdminUserRoleDo interface {
|
||||
FirstOrInit() (*model.AdminUserRole, error)
|
||||
FirstOrCreate() (*model.AdminUserRole, error)
|
||||
FindByPage(offset int, limit int) (result []*model.AdminUserRole, 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) IAdminUserRoleDo
|
||||
ScanByPage(result any, offset int, limit int) (count int64, err error)
|
||||
Scan(result any) (err error)
|
||||
Returning(value any, columns ...string) IAdminUserRoleDo
|
||||
UnderlyingDB() *gorm.DB
|
||||
schema.Tabler
|
||||
}
|
||||
@ -222,7 +222,7 @@ func (a adminUserRoleDo) Clauses(conds ...clause.Expression) IAdminUserRoleDo {
|
||||
return a.withDO(a.DO.Clauses(conds...))
|
||||
}
|
||||
|
||||
func (a adminUserRoleDo) Returning(value interface{}, columns ...string) IAdminUserRoleDo {
|
||||
func (a adminUserRoleDo) Returning(value any, columns ...string) IAdminUserRoleDo {
|
||||
return a.withDO(a.DO.Returning(value, columns...))
|
||||
}
|
||||
|
||||
@ -405,7 +405,7 @@ func (a adminUserRoleDo) FindByPage(offset int, limit int) (result []*model.Admi
|
||||
return
|
||||
}
|
||||
|
||||
func (a adminUserRoleDo) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) {
|
||||
func (a adminUserRoleDo) 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 adminUserRoleDo) ScanByPage(result interface{}, offset int, limit int) (
|
||||
return
|
||||
}
|
||||
|
||||
func (a adminUserRoleDo) Scan(result interface{}) (err error) {
|
||||
func (a adminUserRoleDo) Scan(result any) (err error) {
|
||||
return a.DO.Scan(result)
|
||||
}
|
||||
|
||||
|
||||
@ -217,14 +217,14 @@ type IDataAttachDo interface {
|
||||
Find() ([]*model.DataAttach, error)
|
||||
FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.DataAttach, err error)
|
||||
FindInBatches(result *[]*model.DataAttach, 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.DataAttach) (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) IDataAttachDo
|
||||
Assign(attrs ...field.AssignExpr) IDataAttachDo
|
||||
@ -233,9 +233,9 @@ type IDataAttachDo interface {
|
||||
FirstOrInit() (*model.DataAttach, error)
|
||||
FirstOrCreate() (*model.DataAttach, error)
|
||||
FindByPage(offset int, limit int) (result []*model.DataAttach, 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) IDataAttachDo
|
||||
ScanByPage(result any, offset int, limit int) (count int64, err error)
|
||||
Scan(result any) (err error)
|
||||
Returning(value any, columns ...string) IDataAttachDo
|
||||
UnderlyingDB() *gorm.DB
|
||||
schema.Tabler
|
||||
}
|
||||
@ -264,7 +264,7 @@ func (d dataAttachDo) Clauses(conds ...clause.Expression) IDataAttachDo {
|
||||
return d.withDO(d.DO.Clauses(conds...))
|
||||
}
|
||||
|
||||
func (d dataAttachDo) Returning(value interface{}, columns ...string) IDataAttachDo {
|
||||
func (d dataAttachDo) Returning(value any, columns ...string) IDataAttachDo {
|
||||
return d.withDO(d.DO.Returning(value, columns...))
|
||||
}
|
||||
|
||||
@ -447,7 +447,7 @@ func (d dataAttachDo) FindByPage(offset int, limit int) (result []*model.DataAtt
|
||||
return
|
||||
}
|
||||
|
||||
func (d dataAttachDo) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) {
|
||||
func (d dataAttachDo) ScanByPage(result any, offset int, limit int) (count int64, err error) {
|
||||
count, err = d.Count()
|
||||
if err != nil {
|
||||
return
|
||||
@ -457,7 +457,7 @@ func (d dataAttachDo) ScanByPage(result interface{}, offset int, limit int) (cou
|
||||
return
|
||||
}
|
||||
|
||||
func (d dataAttachDo) Scan(result interface{}) (err error) {
|
||||
func (d dataAttachDo) Scan(result any) (err error) {
|
||||
return d.DO.Scan(result)
|
||||
}
|
||||
|
||||
|
||||
@ -179,14 +179,14 @@ type IGameDo interface {
|
||||
Find() ([]*model.Game, error)
|
||||
FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.Game, err error)
|
||||
FindInBatches(result *[]*model.Game, 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.Game) (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) IGameDo
|
||||
Assign(attrs ...field.AssignExpr) IGameDo
|
||||
@ -195,9 +195,9 @@ type IGameDo interface {
|
||||
FirstOrInit() (*model.Game, error)
|
||||
FirstOrCreate() (*model.Game, error)
|
||||
FindByPage(offset int, limit int) (result []*model.Game, 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) IGameDo
|
||||
ScanByPage(result any, offset int, limit int) (count int64, err error)
|
||||
Scan(result any) (err error)
|
||||
Returning(value any, columns ...string) IGameDo
|
||||
UnderlyingDB() *gorm.DB
|
||||
schema.Tabler
|
||||
}
|
||||
@ -226,7 +226,7 @@ func (g gameDo) Clauses(conds ...clause.Expression) IGameDo {
|
||||
return g.withDO(g.DO.Clauses(conds...))
|
||||
}
|
||||
|
||||
func (g gameDo) Returning(value interface{}, columns ...string) IGameDo {
|
||||
func (g gameDo) Returning(value any, columns ...string) IGameDo {
|
||||
return g.withDO(g.DO.Returning(value, columns...))
|
||||
}
|
||||
|
||||
@ -409,7 +409,7 @@ func (g gameDo) FindByPage(offset int, limit int) (result []*model.Game, count i
|
||||
return
|
||||
}
|
||||
|
||||
func (g gameDo) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) {
|
||||
func (g gameDo) ScanByPage(result any, offset int, limit int) (count int64, err error) {
|
||||
count, err = g.Count()
|
||||
if err != nil {
|
||||
return
|
||||
@ -419,7 +419,7 @@ func (g gameDo) ScanByPage(result interface{}, offset int, limit int) (count int
|
||||
return
|
||||
}
|
||||
|
||||
func (g gameDo) Scan(result interface{}) (err error) {
|
||||
func (g gameDo) Scan(result any) (err error) {
|
||||
return g.DO.Scan(result)
|
||||
}
|
||||
|
||||
|
||||
@ -191,14 +191,14 @@ type ITradeCommodityDo interface {
|
||||
Find() ([]*model.TradeCommodity, error)
|
||||
FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.TradeCommodity, err error)
|
||||
FindInBatches(result *[]*model.TradeCommodity, 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.TradeCommodity) (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) ITradeCommodityDo
|
||||
Assign(attrs ...field.AssignExpr) ITradeCommodityDo
|
||||
@ -207,9 +207,9 @@ type ITradeCommodityDo interface {
|
||||
FirstOrInit() (*model.TradeCommodity, error)
|
||||
FirstOrCreate() (*model.TradeCommodity, error)
|
||||
FindByPage(offset int, limit int) (result []*model.TradeCommodity, 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) ITradeCommodityDo
|
||||
ScanByPage(result any, offset int, limit int) (count int64, err error)
|
||||
Scan(result any) (err error)
|
||||
Returning(value any, columns ...string) ITradeCommodityDo
|
||||
UnderlyingDB() *gorm.DB
|
||||
schema.Tabler
|
||||
}
|
||||
@ -238,7 +238,7 @@ func (t tradeCommodityDo) Clauses(conds ...clause.Expression) ITradeCommodityDo
|
||||
return t.withDO(t.DO.Clauses(conds...))
|
||||
}
|
||||
|
||||
func (t tradeCommodityDo) Returning(value interface{}, columns ...string) ITradeCommodityDo {
|
||||
func (t tradeCommodityDo) Returning(value any, columns ...string) ITradeCommodityDo {
|
||||
return t.withDO(t.DO.Returning(value, columns...))
|
||||
}
|
||||
|
||||
@ -421,7 +421,7 @@ func (t tradeCommodityDo) FindByPage(offset int, limit int) (result []*model.Tra
|
||||
return
|
||||
}
|
||||
|
||||
func (t tradeCommodityDo) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) {
|
||||
func (t tradeCommodityDo) ScanByPage(result any, offset int, limit int) (count int64, err error) {
|
||||
count, err = t.Count()
|
||||
if err != nil {
|
||||
return
|
||||
@ -431,7 +431,7 @@ func (t tradeCommodityDo) ScanByPage(result interface{}, offset int, limit int)
|
||||
return
|
||||
}
|
||||
|
||||
func (t tradeCommodityDo) Scan(result interface{}) (err error) {
|
||||
func (t tradeCommodityDo) Scan(result any) (err error) {
|
||||
return t.DO.Scan(result)
|
||||
}
|
||||
|
||||
|
||||
@ -179,14 +179,14 @@ type IUserDo interface {
|
||||
Find() ([]*model.User, error)
|
||||
FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.User, err error)
|
||||
FindInBatches(result *[]*model.User, 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.User) (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) IUserDo
|
||||
Assign(attrs ...field.AssignExpr) IUserDo
|
||||
@ -195,9 +195,9 @@ type IUserDo interface {
|
||||
FirstOrInit() (*model.User, error)
|
||||
FirstOrCreate() (*model.User, error)
|
||||
FindByPage(offset int, limit int) (result []*model.User, 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) IUserDo
|
||||
ScanByPage(result any, offset int, limit int) (count int64, err error)
|
||||
Scan(result any) (err error)
|
||||
Returning(value any, columns ...string) IUserDo
|
||||
UnderlyingDB() *gorm.DB
|
||||
schema.Tabler
|
||||
}
|
||||
@ -226,7 +226,7 @@ func (u userDo) Clauses(conds ...clause.Expression) IUserDo {
|
||||
return u.withDO(u.DO.Clauses(conds...))
|
||||
}
|
||||
|
||||
func (u userDo) Returning(value interface{}, columns ...string) IUserDo {
|
||||
func (u userDo) Returning(value any, columns ...string) IUserDo {
|
||||
return u.withDO(u.DO.Returning(value, columns...))
|
||||
}
|
||||
|
||||
@ -409,7 +409,7 @@ func (u userDo) FindByPage(offset int, limit int) (result []*model.User, count i
|
||||
return
|
||||
}
|
||||
|
||||
func (u userDo) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) {
|
||||
func (u userDo) ScanByPage(result any, offset int, limit int) (count int64, err error) {
|
||||
count, err = u.Count()
|
||||
if err != nil {
|
||||
return
|
||||
@ -419,7 +419,7 @@ func (u userDo) ScanByPage(result interface{}, offset int, limit int) (count int
|
||||
return
|
||||
}
|
||||
|
||||
func (u userDo) Scan(result interface{}) (err error) {
|
||||
func (u userDo) Scan(result any) (err error) {
|
||||
return u.DO.Scan(result)
|
||||
}
|
||||
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
|
||||
@ -199,14 +199,14 @@ type IUserGameRolePropDo interface {
|
||||
Find() ([]*model.UserGameRoleProp, error)
|
||||
FindInBatch(batchSize int, fc func(tx gen.Dao, batch int) error) (results []*model.UserGameRoleProp, err error)
|
||||
FindInBatches(result *[]*model.UserGameRoleProp, 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.UserGameRoleProp) (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) IUserGameRolePropDo
|
||||
Assign(attrs ...field.AssignExpr) IUserGameRolePropDo
|
||||
@ -215,9 +215,9 @@ type IUserGameRolePropDo interface {
|
||||
FirstOrInit() (*model.UserGameRoleProp, error)
|
||||
FirstOrCreate() (*model.UserGameRoleProp, error)
|
||||
FindByPage(offset int, limit int) (result []*model.UserGameRoleProp, 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) IUserGameRolePropDo
|
||||
ScanByPage(result any, offset int, limit int) (count int64, err error)
|
||||
Scan(result any) (err error)
|
||||
Returning(value any, columns ...string) IUserGameRolePropDo
|
||||
UnderlyingDB() *gorm.DB
|
||||
schema.Tabler
|
||||
}
|
||||
@ -246,7 +246,7 @@ func (u userGameRolePropDo) Clauses(conds ...clause.Expression) IUserGameRolePro
|
||||
return u.withDO(u.DO.Clauses(conds...))
|
||||
}
|
||||
|
||||
func (u userGameRolePropDo) Returning(value interface{}, columns ...string) IUserGameRolePropDo {
|
||||
func (u userGameRolePropDo) Returning(value any, columns ...string) IUserGameRolePropDo {
|
||||
return u.withDO(u.DO.Returning(value, columns...))
|
||||
}
|
||||
|
||||
@ -429,7 +429,7 @@ func (u userGameRolePropDo) FindByPage(offset int, limit int) (result []*model.U
|
||||
return
|
||||
}
|
||||
|
||||
func (u userGameRolePropDo) ScanByPage(result interface{}, offset int, limit int) (count int64, err error) {
|
||||
func (u userGameRolePropDo) ScanByPage(result any, offset int, limit int) (count int64, err error) {
|
||||
count, err = u.Count()
|
||||
if err != nil {
|
||||
return
|
||||
@ -439,7 +439,7 @@ func (u userGameRolePropDo) ScanByPage(result interface{}, offset int, limit int
|
||||
return
|
||||
}
|
||||
|
||||
func (u userGameRolePropDo) Scan(result interface{}) (err error) {
|
||||
func (u userGameRolePropDo) Scan(result any) (err error) {
|
||||
return u.DO.Scan(result)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user