models

package
v0.0.0-...-e7c3345 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MulanPSL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GaCabinet

type GaCabinet struct {
	Id           string    `xorm:"not null pk autoincr UNSIGNED INT(11)"`
	Title        string    `xorm:"not null default '' comment('名称') unique VARCHAR(50)"`
	Number       int       `xorm:"not null comment('编号') unique INT(11)"`
	RdId         int       `xorm:"not null comment('部门id') INT(11)"`
	MailNum      int       `xorm:"not null comment('当前柜内邮件数') INT(11)"`
	UpdateMid    int       `xorm:"default 0 comment('开柜后,最后更新的邮件id') INT(11)"`
	LastMid      int       `xorm:"default 0 comment('最后id') INT(11)"`
	OpenStatus   int       `xorm:"not null default 1 comment('是否开门(1关门  2程序开门  3手动开门)') index(open_status) TINYINT(1)"`
	OnlineStatus int       `xorm:"not null default 1 comment('是否在运行(1开机  2关机)') index(open_status) TINYINT(1)"`
	LastOpenTime time.Time `xorm:"comment('最后开锁时间') DATETIME"`
	IsSelected   int       `xorm:"not null default 1 comment('码枪是否被选中(1未选中  2选中)') TINYINT(1)"`
	UpdateTime   time.Time `xorm:"comment('修改时间') DATETIME"`
	DeleteTime   time.Time `xorm:"comment('删除时间') DATETIME"`
}

func (*GaCabinet) TableComment

func (m *GaCabinet) TableComment() string

func (*GaCabinet) TableName

func (m *GaCabinet) TableName() string

type GaCabinetOpenOperation

type GaCabinetOpenOperation struct {
	Id         string    `xorm:"not null pk autoincr UNSIGNED INT(11)"`
	Command    int       `xorm:"not null comment('开柜命令') INT(11)"`
	Uid        int       `xorm:"not null comment('操作人') INT(11)"`
	Cid        int       `xorm:"not null comment('快递柜id') INT(11)"`
	Status     int       `xorm:"not null comment('状态(1待执行  2正在执行  3执行成功  4执行失败)') index TINYINT(1)"`
	CreateTime time.Time `xorm:"comment('创建时间') DATETIME"`
	UpdateTime time.Time `xorm:"comment('修改时间') DATETIME"`
	DeleteTime time.Time `xorm:"comment('删除时间') DATETIME"`
}

func (*GaCabinetOpenOperation) TableComment

func (m *GaCabinetOpenOperation) TableComment() string

func (*GaCabinetOpenOperation) TableName

func (m *GaCabinetOpenOperation) TableName() string

type GaMail

type GaMail struct {
	Id           string    `xorm:"not null pk autoincr index(id) UNSIGNED INT(11)"`
	WaybillNo    string    `xorm:"not null comment('运单号') unique VARCHAR(100)"`
	CId          int       `xorm:"not null comment('快递柜id') INT(11)"`
	RdId         int       `xorm:"not null comment('部门id') INT(11)"`
	RegisterTime time.Time `xorm:"comment('登记时间') DATETIME"`
	PickupTime   time.Time `xorm:"comment('取件时间') DATETIME"`
	FormType     int       `xorm:"comment('来源(1投递  2扫码枪  3手动录入)') index(id) TINYINT(1)"`
	Remark       string    `xorm:"comment('备注') TEXT"`
	CreateTime   time.Time `xorm:"comment('创建时间') DATETIME"`
	UpdateTime   time.Time `xorm:"comment('修改时间') DATETIME"`
	DeleteTime   time.Time `xorm:"comment('删除时间') DATETIME"`
	LastUpdateId string    `xorm:"default '' comment('最后修改用户标识') VARCHAR(50)"`
}

func (*GaMail) TableComment

func (m *GaMail) TableComment() string

func (*GaMail) TableName

func (m *GaMail) TableName() string

type GaReceiveDep

type GaReceiveDep struct {
	Id    string `xorm:"not null pk autoincr UNSIGNED INT(11)"`
	Title string `xorm:"not null default '' comment('名称') unique VARCHAR(50)"`
}

func (*GaReceiveDep) TableComment

func (m *GaReceiveDep) TableComment() string

func (*GaReceiveDep) TableName

func (m *GaReceiveDep) TableName() string

type GaToken

type GaToken struct {
	Id             string    `xorm:"not null pk autoincr UNSIGNED INT(11)"`
	Uid            int       `xorm:"not null default 0 INT(11)"`
	Token          string    `xorm:"not null unique VARCHAR(50)"`
	ExpirationTime int       `xorm:"not null comment('过期时间') INT(11)"`
	CreateTime     time.Time `xorm:"comment('创建时间') DATETIME"`
	UpdateTime     time.Time `xorm:"comment('修改时间') DATETIME"`
	DeleteTime     time.Time `xorm:"comment('删除时间') DATETIME"`
	LastUpdateId   string    `xorm:"default '' comment('最后修改用户标识') VARCHAR(50)"`
}

func (*GaToken) TableComment

func (m *GaToken) TableComment() string

func (*GaToken) TableName

func (m *GaToken) TableName() string

type GaUser

type GaUser struct {
	Id           string    `xorm:"not null pk autoincr UNSIGNED INT(11)"`
	Nickname     string    `xorm:"not null default '' comment('昵称') VARCHAR(50)"`
	Username     string    `xorm:"not null default '' comment('账号') VARCHAR(50)"`
	Password     string    `xorm:"not null comment('密码') TEXT"`
	Phone        string    `xorm:"default '' comment('电话号') CHAR(11)"`
	CreateTime   time.Time `xorm:"comment('创建时间') DATETIME"`
	UpdateTime   time.Time `xorm:"comment('修改时间') DATETIME"`
	DeleteTime   time.Time `xorm:"comment('删除时间') DATETIME"`
	LastUpdateId string    `xorm:"default '' comment('最后修改用户标识') VARCHAR(50)"`
}

func (*GaUser) TableComment

func (m *GaUser) TableComment() string

func (*GaUser) TableName

func (m *GaUser) TableName() string

Jump to

Keyboard shortcuts

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