po

package
v0.0.0-...-5b4efa0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthToken

type AuthToken struct {
	Id         int64     `xorm:"pk autoincr BIGINT(20)"`
	Token      string    `xorm:"not null comment('token') VARCHAR(256)"`
	ExpireTime time.Time `xorm:"not null comment('过期时间') DATETIME"`
	UserId     int64     `xorm:"not null comment('创建人') BIGINT(20)"`
}

func (AuthToken) TableName

func (t AuthToken) TableName() string

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)"`
}

func (AuthUser) TableName

func (t AuthUser) TableName() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL