Documentation
¶
Index ¶
Constants ¶
View Source
const USER_SEX_FEMALE = 0
View Source
const USER_SEX_MALE = 1
View Source
const USER_SEX_UNKNOWN = 2
Variables ¶
View Source
var SEX2STR = map[int]string{ USER_SEX_FEMALE: "female", USER_SEX_MALE: "male", USER_SEX_UNKNOWN: "unknown", }
View Source
var STR2SEX = map[string]int{ "female": USER_SEX_FEMALE, "male": USER_SEX_MALE, "unknown": USER_SEX_UNKNOWN, "": USER_SEX_UNKNOWN, }
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct {
eel.Model
Unionid string `gorm:"size:255"`
IsActive bool `gorm:"default:true"`
CorpUserId int `gorm:"default:0"`
Code string `gorm:"size:32"`
//基本信息
Name string `gorm:"size:52"`
Avatar string `gorm:"size:1024"`
Password string `gorm:"size:52"`
Sex int
//其他信息
Source string `gorm:"size:52"`
}
User
Click to show internal directories.
Click to hide internal directories.