// 自动生成模板ClientUser package client import ( "github.com/flipped-aurora/gin-vue-admin/server/global" "github.com/google/uuid" ) // 客户端用户 结构体 ClientUser type ClientUser struct { global.GVA_MODEL UUID uuid.UUID `json:"uuid" form:"uuid" gorm:"column:uuid;comment:UUID;"` //UUID Avatar string `json:"avatar" form:"avatar" gorm:"column:avatar;comment:头像;default:https://qmplusimg.henrongyi.top/gva_header.jpg"` //头像 Username string `json:"username" form:"username" gorm:"column:username;comment:用户名;" binding:"required"` //用户名 Password string `json:"password" form:"password" gorm:"column:password;comment:密码;" binding:"required"` //密码 Nickname string `json:"nickname" form:"nickname" gorm:"column:nickname;comment:昵称;"` //昵称 Gender string `json:"gender" form:"gender" gorm:"column:gender;comment:性别;"` //性别 Phone string `json:"phone" form:"phone" gorm:"column:phone;comment:手机号;"` //手机号 Email string `json:"email" form:"email" gorm:"column:email;comment:邮箱;"` //邮箱 CreatedBy uint `gorm:"column:created_by;comment:创建者"` UpdatedBy uint `gorm:"column:updated_by;comment:更新者"` DeletedBy uint `gorm:"column:deleted_by;comment:删除者"` Building string `json:"building" form:"building" gorm:"comment:栋;column:building;size:50;"` //栋 Room string `json:"room" form:"room" gorm:"comment:房间编号;column:room;size:50;"` //房间编号 Pen string `json:"pen" form:"pen" gorm:"comment:栏位编号;column:pen;size:50;"` //栏位编号 } // TableName 客户端用户 ClientUser自定义表名 client_user func (ClientUser) TableName() string { return "client_user" }