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 newUserToRole(db *gorm.DB, opts ...gen.DOOption) userToRole {
|
|||
|
||||
tableName := _userToRole.userToRoleDo.TableName()
|
||||
_userToRole.ALL = field.NewAsterisk(tableName)
|
||||
_userToRole.ID = field.NewUint64(tableName, "id")
|
||||
_userToRole.UserId = field.NewString(tableName, "user_id")
|
||||
_userToRole.RoleId = field.NewUint(tableName, "role_id")
|
||||
_userToRole.User = userToRoleBelongsToUser{
|
||||
|
@ -184,6 +185,7 @@ type userToRole struct {
|
|||
userToRoleDo
|
||||
|
||||
ALL field.Asterisk
|
||||
ID field.Uint64
|
||||
UserId field.String
|
||||
RoleId field.Uint
|
||||
User userToRoleBelongsToUser
|
||||
|
@ -205,6 +207,7 @@ func (u userToRole) As(alias string) *userToRole {
|
|||
|
||||
func (u *userToRole) updateTableName(table string) *userToRole {
|
||||
u.ALL = field.NewAsterisk(table)
|
||||
u.ID = field.NewUint64(table, "id")
|
||||
u.UserId = field.NewString(table, "user_id")
|
||||
u.RoleId = field.NewUint(table, "role_id")
|
||||
|
||||
|
@ -223,7 +226,8 @@ func (u *userToRole) GetFieldByName(fieldName string) (field.OrderExpr, bool) {
|
|||
}
|
||||
|
||||
func (u *userToRole) 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["role_id"] = u.RoleId
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue