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 newUserToUserRelation(db *gorm.DB, opts ...gen.DOOption) userToUserRelation
|
|||
|
||||
tableName := _userToUserRelation.userToUserRelationDo.TableName()
|
||||
_userToUserRelation.ALL = field.NewAsterisk(tableName)
|
||||
_userToUserRelation.ID = field.NewUint64(tableName, "id")
|
||||
_userToUserRelation.UserId = field.NewString(tableName, "user_id")
|
||||
_userToUserRelation.TargetUserId = field.NewString(tableName, "target_user_id")
|
||||
_userToUserRelation.Relation = field.NewField(tableName, "relation")
|
||||
|
@ -185,6 +186,7 @@ type userToUserRelation struct {
|
|||
userToUserRelationDo
|
||||
|
||||
ALL field.Asterisk
|
||||
ID field.Uint64
|
||||
UserId field.String
|
||||
TargetUserId field.String
|
||||
Relation field.Field
|
||||
|
@ -207,6 +209,7 @@ func (u userToUserRelation) As(alias string) *userToUserRelation {
|
|||
|
||||
func (u *userToUserRelation) updateTableName(table string) *userToUserRelation {
|
||||
u.ALL = field.NewAsterisk(table)
|
||||
u.ID = field.NewUint64(table, "id")
|
||||
u.UserId = field.NewString(table, "user_id")
|
||||
u.TargetUserId = field.NewString(table, "target_user_id")
|
||||
u.Relation = field.NewField(table, "relation")
|
||||
|
@ -226,7 +229,8 @@ func (u *userToUserRelation) GetFieldByName(fieldName string) (field.OrderExpr,
|
|||
}
|
||||
|
||||
func (u *userToUserRelation) fillFieldMap() {
|
||||
u.fieldMap = make(map[string]field.Expr, 5)
|
||||
u.fieldMap = make(map[string]field.Expr, 6)
|
||||
u.fieldMap["id"] = u.ID
|
||||
u.fieldMap["user_id"] = u.UserId
|
||||
u.fieldMap["target_user_id"] = u.TargetUserId
|
||||
u.fieldMap["relation"] = u.Relation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue