Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthToken ¶
type AuthUser ¶
type AuthUser struct { Id int64 `xorm:"pk autoincr comment('主键') BIGINT(20)"` SocialId string `xorm:"comment('社交账户ID') VARCHAR(255)"` Password string `xorm:"not null comment('密码') VARCHAR(255)"` Name string `xorm:"comment('别名') VARCHAR(255)"` RoleId int64 `xorm:"not null comment('角色主键 1 普通用户 2 admin') BIGINT(20)"` Email string `xorm:"comment('邮箱') unique VARCHAR(128)"` Introduction string `xorm:"comment('个人简介') VARCHAR(255)"` Avatar string `xorm:"comment('头像') VARCHAR(255)"` CreateTime time.Time `xorm:"not null comment('注册时间') DATETIME created"` AccessKey string `xorm:"comment('ak') VARCHAR(255)"` SecretKey string `xorm:"comment('sk') VARCHAR(255)"` Status int `xorm:"default 0 comment('0 正常 1 锁定 ') INT(1)"` }
type AuthUserSocial ¶
type AuthUserSocial struct { Id int64 `xorm:"pk autoincr comment('主键') BIGINT(20)"` Code string `xorm:"not null comment('qq、csdn、wechat、weibo、email等') VARCHAR(32)"` Content string `xorm:"comment('社交内容') VARCHAR(100)"` ShowType int `xorm:"not null comment('展示类型( 1、显示图片,2、显示账号,3、跳转链接)') SMALLINT(6)"` Remark string `xorm:"comment('备注') VARCHAR(150)"` Icon string `xorm:"comment('图标') VARCHAR(100)"` IsEnabled int `xorm:"not null default 0 comment('是否启用') SMALLINT(6)"` IsHome int `xorm:"default 0 comment('是否主页社交信息') SMALLINT(6)"` CreateTime time.Time `xorm:"not null comment('创建时间') DATETIME created"` UpdateTime time.Time `xorm:"not null comment('更新时间') DATETIME updated"` }
func (AuthUserSocial) TableName ¶
func (t AuthUserSocial) TableName() string
Click to show internal directories.
Click to hide internal directories.