order

package
v0.0.0-...-861475b Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = sqlx.ErrNotFound

Functions

This section is empty.

Types

type Order

type Order 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 OrderModel

type OrderModel interface {
	// contains filtered or unexported methods
}

OrderModel is an interface to be customized, add more methods here, and implement the added methods in customOrderModel.

func NewOrderModel

func NewOrderModel(conn sqlx.SqlConn) OrderModel

NewOrderModel returns a model for the database table.

Jump to

Keyboard shortcuts

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