You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.5 KiB

package manage
import (
"github.com/golangkit/formatime"
)
type UserInfo struct {
ID uint `gorm:"column:id;primary_key" json:"id"`
Token string `gorm:"column:token" json:"token"`
Name string `gorm:"column:name" json:"name"`
Mobile string `gorm:"column:mobile" json:"mobile"`
Password string `gorm:"column:password" json:"password"`
Role uint `gorm:"column:role" json:"role"`
LoginTime formatime.Second `gorm:"column:login_time" json:"loginTime"`
RoleID uint `gorm:"role_id" json:"role_id"`
RoleName string `gorm:"role_name" json:"role_name"`
UserName string `gorm:"user_name" json:"user_name"`
UserID uint `gorm:"user_id" json:"user_id"`
UpdatedAt formatime.Second `gorm:"updated_at" json:"updated_at"`
IsDel int `gorm:"is_del" json:"is_del"`
Code string `gorm:"-" json:"code"`
GoodsType string `gorm:"goods_type" json:"goods_type"`
IsCg int `gorm:"-"`
VendsList string `gorm:"vends_list" json:"vends_list"`
NewroleId int `gorm:"newrole_id" json:"newrole_id"` //新权限id
SourceRoleId uint `gorm:"column:source_role_id" json:"source_role_id"` //关联运营方角色权限
}
// TableName sets the insert table name for this struct type
func (*UserInfo) TableName() string {
return "recook_manage_user_info"
}