Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CURD ¶
iferface CURD By xorm bool bug modelStruct has a self update method CURD object is a pointer
type Router ¶
type Router struct { ID string `json:"id" xorm:"pk"` Title string `json:"title" xorm:"varchar(64)"` Icon string `json:"icon" xorm:"varchar(64)"` Order int `json:"order" xorm:"int"` Path string `json:"path" xorm:"varchar(64)"` Exact bool `json:"exact" xorm:"TINYINT(1)"` Component string `json:"component" xorm:"varchar(64)"` }
type User ¶
type User struct { ID string `xorm:"pk" json:"id"` UserName string `xorm:"varchar(64) unique notnull" json:"username"` ShowName string `xorm:"varchar(64)" json:"name"` // 显示名称 PassWord string `xorm:"varchar(32) notnull" json:"password"` Phone string `xorm:"varchar(32) " json:"phone"` // 电话号码 IsAdmin bool `xorm:"TINYINT(1)" json:"isadmin"` RoleGroupID string `xorm:"notnull" json:"role_group_id"` // 权限组ID Domain string `xorm:"varchar(255)" json:"domain"` NeedChagePassword bool `xorm:"TINYINT(1)" json:"changepassword"` // 需要修改密码才可登录 Type string `xorm:"varchar(18)" json:"type"` // 保留字段 Email string `xorm:"varchar(255)" json:"email"` Avatar string `xorm:"varchar(255)" json:"avatar"` OrgID string `xorm:"varchar(255) notnull" json:"org_id"` // 归属组织机构ID Comments string `xorm:"varchar(255)" json:"comments"` // 备注 UpdateTime time.Time `xorm:"updated" json:"-"` CreateTime time.Time `xorm:"created" json:"-"` DeletedTime time.Time `xorm:"deleted" json:"-"` // 软删除 }
func (*User) FindByNameTypes ¶
function FindByNameTypes find user use name,showname,phone and so on, return type of field name as json tags.
Click to show internal directories.
Click to hide internal directories.