Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = sqlx.ErrNotFound
Functions ¶
This section is empty.
Types ¶
type Performance ¶
type Performance struct { Id int64 `db:"id"` // 用户ID Name string `db:"name"` // 姓名 Nickname string `db:"nickname"` // 昵称 Avatar string `db:"avatar"` // 头像 Background string `db:"background"` // 个人中心背景图 Mobile string `db:"mobile"` // 手机号 Password string `db:"password"` // 密码 Mail string `db:"mail"` // 邮箱地址 Identity string `db:"identity"` // 身份证号 Gender int64 `db:"gender"` // 性别: 0=未指定、1=男、2=女、3=第三性别、4=保密: 默认=4 Nation string `db:"nation"` // 民族 Birthday int64 `db:"birthday"` // 出生日期 Address string `db:"address"` // 收货地址 Audience string `db:"audience"` // 观影人信息,格式:[{"name":"xxx","identity_type": 1,"identity_number"}],identity 可选值:1=身份证、2=港澳台居民居住证、3=港澳居民来往内地通行证、4=台湾居民来往大陆通行证、5=护照、6=外国人永久居留身份证 Status int64 `db:"status"` // 是否禁用: 0=未指定、1=开启、2=禁用: 默认=1 LoginAt time.Time `db:"login_at"` // 登录时间 CreatedAt time.Time `db:"created_at"` // 创建时间 UpdatedAt time.Time `db:"updated_at"` // 更新时间 IsDel int64 `db:"is_del"` // 是否删除: 0=未指定、1=是、2=否: 默认=2 }
type PerformanceModel ¶
type PerformanceModel interface {
// contains filtered or unexported methods
}
PerformanceModel is an interface to be customized, add more methods here, and implement the added methods in customPerformanceModel.
func NewPerformanceModel ¶
func NewPerformanceModel(conn sqlx.SqlConn) PerformanceModel
NewPerformanceModel returns a model for the database table.
Click to show internal directories.
Click to hide internal directories.