chore(storage-new): Regenerate bindings
This commit is contained in:
parent
c9e1881f55
commit
f8a56cebfe
11 changed files with 59 additions and 11 deletions
|
@ -26,6 +26,7 @@ func newUserAuthMethod(db *gorm.DB, opts ...gen.DOOption) userAuthMethod {
|
|||
|
||||
tableName := _userAuthMethod.userAuthMethodDo.TableName()
|
||||
_userAuthMethod.ALL = field.NewAsterisk(tableName)
|
||||
_userAuthMethod.ID = field.NewUint64(tableName, "id")
|
||||
_userAuthMethod.UserId = field.NewString(tableName, "user_id")
|
||||
_userAuthMethod.AuthMethod = field.NewField(tableName, "auth_method")
|
||||
_userAuthMethod.Token = field.NewBytes(tableName, "token")
|
||||
|
@ -179,6 +180,7 @@ type userAuthMethod struct {
|
|||
userAuthMethodDo
|
||||
|
||||
ALL field.Asterisk
|
||||
ID field.Uint64
|
||||
UserId field.String
|
||||
AuthMethod field.Field
|
||||
Token field.Bytes
|
||||
|
@ -199,6 +201,7 @@ func (u userAuthMethod) As(alias string) *userAuthMethod {
|
|||
|
||||
func (u *userAuthMethod) updateTableName(table string) *userAuthMethod {
|
||||
u.ALL = field.NewAsterisk(table)
|
||||
u.ID = field.NewUint64(table, "id")
|
||||
u.UserId = field.NewString(table, "user_id")
|
||||
u.AuthMethod = field.NewField(table, "auth_method")
|
||||
u.Token = field.NewBytes(table, "token")
|
||||
|
@ -218,7 +221,8 @@ func (u *userAuthMethod) GetFieldByName(fieldName string) (field.OrderExpr, bool
|
|||
}
|
||||
|
||||
func (u *userAuthMethod) fillFieldMap() {
|
||||
u.fieldMap = make(map[string]field.Expr, 4)
|
||||
u.fieldMap = make(map[string]field.Expr, 5)
|
||||
u.fieldMap["id"] = u.ID
|
||||
u.fieldMap["user_id"] = u.UserId
|
||||
u.fieldMap["auth_method"] = u.AuthMethod
|
||||
u.fieldMap["token"] = u.Token
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue