models

package
v0.0.0-...-96e820d Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	Id           int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	Username     string    `json:"username" xorm:"default 'NULL' comment('用户名') index CHAR(50)"`
	Password     string    `json:"password" xorm:"default 'NULL' comment('密码') CHAR(32)"`
	Mail         string    `json:"mail" xorm:"default 'NULL' comment('邮箱') VARCHAR(80)"`
	Salt         string    `json:"salt" xorm:"default 'NULL' comment('干扰码') VARCHAR(10)"`
	GmtCreate    time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('创建时间') TIMESTAMP"`
	GmtModified  time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('更新时间') TIMESTAMP"`
	Ip           string    `json:"ip" xorm:"default 'NULL' comment('添加IP') CHAR(15)"`
	JobNo        string    `json:"job_no" xorm:"default 'NULL' comment('工号') VARCHAR(15)"`
	NickName     string    `json:"nick_name" xorm:"default 'NULL' comment('昵称') VARCHAR(50)"`
	TrueName     string    `json:"true_name" xorm:"default 'NULL' comment('真实姓名') VARCHAR(50)"`
	Qq           string    `json:"qq" xorm:"default 'NULL' comment('qq') VARCHAR(50)"`
	Phone        string    `json:"phone" xorm:"default 'NULL' comment('电话') VARCHAR(50)"`
	Mobile       string    `json:"mobile" xorm:"default 'NULL' comment('手机') VARCHAR(20)"`
	Name         string    `json:"name" xorm:"default 'NULL' comment('显示名称') VARCHAR(255)"`
	IsDel        int       `json:"is_del" xorm:"not null default 0 comment('删除0否1是') index TINYINT(1)"`
	DepartmentId int       `json:"department_id" xorm:"not null default 0 comment('部门id') INT(11)"`
	TeamId       int       `json:"team_id" xorm:"not null comment('团队ID') INT(11)"`
	MasterId     int       `json:"master_id" xorm:"not null comment('师傅id') INT(11)"`
	LeaderId     int       `json:"leader_id" xorm:"not null comment('领导id') INT(11)"`
	PostId       int       `json:"post_id" xorm:"not null comment('职务id') INT(11)"`
	RoleId       int       `json:"role_id" xorm:"not null comment('角色id(主)') index INT(11)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewAdmin

func NewAdmin() *Admin

初始化

type AdminMenu

type AdminMenu struct {
	Id       int    `json:"id" xorm:"not null pk autoincr INT(11)"`
	Name     string `json:"name" xorm:"default 'NULL' comment('名称') CHAR(100)"`
	ParentId int    `json:"parent_id" xorm:"not null default 0 comment('上级菜单') index INT(11)"`
	S        string `json:"s" xorm:"default 'NULL' comment('模块/控制器/动作') index CHAR(60)"`
	Data     string `json:"data" xorm:"default 'NULL' comment('其他参数') CHAR(100)"`
	Sort     int    `json:"sort" xorm:"not null default 0 comment('排序') index INT(11)"`
	Remark   string `json:"remark" xorm:"default 'NULL' comment('备注') VARCHAR(255)"`
	Type     string `json:"type" xorm:"not null default ''url'' comment('类别url菜单function独立功能user用户独有') CHAR(32)"`
	Level    int    `json:"level" xorm:"not null default 0 comment('级别') TINYINT(3)"`
	Level1Id int    `json:"level1_id" xorm:"not null default 0 comment('1级栏目ID') INT(11)"`
	Md5      string `json:"md5" xorm:"default 'NULL' comment('s的md5值') CHAR(32)"`
	IsShow   int    `json:"is_show" xorm:"not null default 1 comment('显示隐藏;1显示;0隐藏') TINYINT(1)"`
	IsUnique int    `json:"is_unique" xorm:"not null default 0 comment('用户独有此功能1是0否') TINYINT(1)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewAdminMenu

func NewAdminMenu() *AdminMenu

初始化

type AdminRoleAccess

type AdminRoleAccess struct {
	Id        int `json:"id" xorm:"not null pk autoincr INT(11)"`
	Aid       int `json:"aid" xorm:"not null default 0 comment('管理员ID') unique(aid_role_id) INT(11)"`
	RoleId    int `json:"role_id" xorm:"not null default 0 comment('角色ID') unique(aid_role_id) INT(11)"`
	IsDefault int `json:"is_default" xorm:"not null default 0 comment('是否默认') TINYINT(1)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewAdminRoleAccess

func NewAdminRoleAccess() *AdminRoleAccess

初始化

type AdminRolePriv

type AdminRolePriv struct {
	Id     int    `json:"id" xorm:"not null pk autoincr INT(10)"`
	RoleId int    `json:"role_id" xorm:"not null default 0 comment('角色ID') index index(role_id_2) SMALLINT(3)"`
	S      string `json:"s" xorm:"default 'NULL' comment('模块/控制器/动作') index(role_id_2) CHAR(100)"`
	Data   string `json:"data" xorm:"default 'NULL' comment('其他参数') CHAR(50)"`
	Aid    int    `json:"aid" xorm:"not null default 0 comment('管理员ID') INT(10)"`
	MenuId int    `json:"menu_id" xorm:"not null default 0 comment('菜单ID') INT(10)"`
	Type   string `json:"type" xorm:"not null default ''url'' comment('类别url菜单function独立功能user用户独有') CHAR(32)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewAdminRolePriv

func NewAdminRolePriv() *AdminRolePriv

初始化

type AdminStatus

type AdminStatus struct {
	Id          int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	LoginTime   time.Time `json:"login_time" xorm:"default 'NULL' comment('登录时间') TIMESTAMP"`
	LoginIp     string    `json:"login_ip" xorm:"default 'NULL' comment('IP') CHAR(20)"`
	Login       int       `json:"login" xorm:"not null default 0 comment('登录次数') INT(11)"`
	AidAdd      int       `json:"aid_add" xorm:"not null default 0 comment('添加人') INT(11)"`
	AidUpdate   int       `json:"aid_update" xorm:"not null default 0 comment('更新人') INT(11)"`
	GmtModified time.Time `json:"gmt_modified" xorm:"default 'NULL' comment('更新时间') TIMESTAMP"`
	Remark      string    `json:"remark" xorm:"default 'NULL' comment('备注') VARCHAR(255)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewAdminStatus

func NewAdminStatus() *AdminStatus

初始化

type App

type App struct {
	Id          int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	TypeId      int       `json:"type_id" xorm:"not null default 0 comment('app_id,来源type表') unique INT(11)"`
	Name        string    `json:"name" xorm:"default 'NULL' comment('名称') VARCHAR(100)"`
	Mark        string    `json:"mark" xorm:"default 'NULL' comment('标志') CHAR(32)"`
	Setting     string    `json:"setting" xorm:"default 'NULL' comment('扩展参数') VARCHAR(5000)"`
	Remark      string    `json:"remark" xorm:"default 'NULL' comment('备注') VARCHAR(255)"`
	IsDel       int       `json:"is_del" xorm:"not null default 0 comment('是否删除0否1是') INT(11)"`
	GmtCreate   time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('添加时间') TIMESTAMP"`
	GmtModified time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('更新时间') TIMESTAMP"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewApp

func NewApp() *App

初始化

type Area

type Area struct {
	Id              int    `json:"id" xorm:"not null pk autoincr INT(11)"`
	Name            string `json:"name" xorm:"default '''' comment('名称') CHAR(50)"`
	NameEn          string `json:"name_en" xorm:"default '''' comment('英文名称') VARCHAR(100)"`
	ParentId        int    `json:"parent_id" xorm:"default 0 comment('上级栏目ID') index INT(11)"`
	Type            int    `json:"type" xorm:"default 0 comment('类别;0默认;') TINYINT(4)"`
	NameTraditional string `json:"name_traditional" xorm:"default '''' comment('繁体名称') VARCHAR(50)"`
	Sort            int    `json:"sort" xorm:"default 0 comment('排序') INT(11)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewArea

func NewArea() *Area

初始化

type AreaExt

type AreaExt struct {
	Id              int    `json:"id" xorm:"not null pk autoincr INT(11)"`
	AreaId          int    `json:"area_id" xorm:"default 0 comment('ID') index(id) INT(11)"`
	Name            string `json:"name" xorm:"default '''' comment('名称') CHAR(50)"`
	NameEn          string `json:"name_en" xorm:"default '''' comment('英文名称') VARCHAR(100)"`
	ParentId        int    `json:"parent_id" xorm:"default 0 comment('上级栏目ID') index(id) INT(11)"`
	Type            int    `json:"type" xorm:"default 0 comment('类别;0默认;1又名;2;3属于;11已合并到;12已更名为') TINYINT(4)"`
	NameTraditional string `json:"name_traditional" xorm:"default '''' comment('繁体名称') VARCHAR(50)"`
	Sort            int    `json:"sort" xorm:"default 0 comment('排序') INT(11)"`
	TypeName        string `json:"type_name" xorm:"default '''' comment('类别名称') VARCHAR(50)"`
	OtherName       string `json:"other_name" xorm:"default '''' comment('根据类别名称填写') VARCHAR(50)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewAreaExt

func NewAreaExt() *AreaExt

初始化

type Attachment

type Attachment struct {
	Id           int       `json:"id" xorm:"not null pk autoincr comment('附件ID') INT(10)"`
	Module       string    `json:"module" xorm:"default 'NULL' comment('模块') index CHAR(32)"`
	Mark         string    `json:"mark" xorm:"default 'NULL' comment('标记标志') index CHAR(60)"`
	TypeId       int       `json:"type_id" xorm:"not null default 0 comment('类别ID') INT(5)"`
	Name         string    `json:"name" xorm:"default 'NULL' comment('保存的文件名称') CHAR(50)"`
	NameOriginal string    `json:"name_original" xorm:"default 'NULL' comment('原文件名') VARCHAR(255)"`
	Path         string    `json:"path" xorm:"default 'NULL' comment('文件路径') CHAR(200)"`
	Size         int       `json:"size" xorm:"not null default 0 comment('文件大小') INT(10)"`
	Ext          string    `json:"ext" xorm:"default 'NULL' comment('文件后缀') CHAR(10)"`
	IsImage      int       `json:"is_image" xorm:"not null default 0 comment('是否图片1是0否') TINYINT(1)"`
	IsThumb      int       `json:"is_thumb" xorm:"not null default 0 comment('是否缩略图1是0否') TINYINT(1)"`
	Downloads    int       `json:"downloads" xorm:"not null default 0 comment('下载次数') INT(8)"`
	GmtCreate    time.Time `json:"gmt_create" xorm:"not null default 'current_timestamp()' comment('添加时间上传时间') TIMESTAMP"`
	GmtModified  time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('更新时间') TIMESTAMP"`
	Ip           string    `json:"ip" xorm:"default 'NULL' comment('上传IP') CHAR(15)"`
	Status       int       `json:"status" xorm:"not null default 0 comment('状态99正常;') index TINYINT(2)"`
	Md5          string    `json:"md5" xorm:"default 'NULL' comment('md5') index CHAR(32)"`
	Sha1         string    `json:"sha1" xorm:"default 'NULL' comment('sha1') CHAR(40)"`
	FromId       int       `json:"from_id" xorm:"not null default 0 comment('所属ID') index INT(10)"`
	Aid          int       `json:"aid" xorm:"not null default 0 comment('后台管理员ID') index INT(10)"`
	Uid          int       `json:"uid" xorm:"not null default 0 comment('前台用户ID') index INT(10)"`
	IsShow       int       `json:"is_show" xorm:"not null default 1 comment('是否显示1是0否') index TINYINT(1)"`
	Http         string    `json:"http" xorm:"default 'NULL' comment('图片http地址') VARCHAR(100)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewAttachment

func NewAttachment() *Attachment

初始化

type Cart

type Cart struct {
	Id          int       `json:"id" xorm:"not null pk autoincr INT(10)"`
	Uid         int       `json:"uid" xorm:"not null default 0 comment('用户ID') index INT(10)"`
	GoodsId     int       `json:"goods_id" xorm:"not null default 0 comment('商品ID') INT(10)"`
	ProductId   int       `json:"product_id" xorm:"not null default 0 comment('商品信息id') INT(10)"`
	Num         int       `json:"num" xorm:"not null default 0 comment('数量') INT(10)"`
	Price       float64   `json:"price" xorm:"not null default 0.0000 comment('单价') DECIMAL(28,4)"`
	Amount      float64   `json:"amount" xorm:"not null default 0.0000 comment('合计总价') DECIMAL(28,4)"`
	WarehouseId int       `json:"warehouse_id" xorm:"not null default 0 comment('仓库ID') INT(10)"`
	Sid         int       `json:"sid" xorm:"not null default 0 comment('供货商ID') INT(10)"`
	TypeId      int       `json:"type_id" xorm:"not null default 1 comment('类别:普通') index INT(11)"`
	GmtCreate   time.Time `json:"gmt_create" xorm:"not null default 'current_timestamp()' comment('添加时间') TIMESTAMP"`
	GmtModified time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('更新时间') TIMESTAMP"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewCart

func NewCart() *Cart

初始化

type CasbinRule

type CasbinRule struct {
	PType string `json:"p_type" xorm:"default 'NULL' index VARCHAR(100)"`
	V0    string `json:"v0" xorm:"default 'NULL' index VARCHAR(100)"`
	V1    string `json:"v1" xorm:"default 'NULL' index VARCHAR(100)"`
	V2    string `json:"v2" xorm:"default 'NULL' index VARCHAR(100)"`
	V3    string `json:"v3" xorm:"default 'NULL' index VARCHAR(100)"`
	V4    string `json:"v4" xorm:"default 'NULL' index VARCHAR(100)"`
	V5    string `json:"v5" xorm:"default 'NULL' index VARCHAR(100)"`
	Id    int    `json:"id" xorm:"not null pk autoincr INT(1)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewCasbinRule

func NewCasbinRule() *CasbinRule

初始化

type Connect

type Connect struct {
	Id          int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	TypeId      int       `json:"type_id" xorm:"not null default 0 comment('类别id') index INT(11)"`
	Uid         int       `json:"uid" xorm:"not null default 0 comment('用户id') index INT(11)"`
	OpenId      string    `json:"open_id" xorm:"default 'NULL' comment('对应唯一开放id') index CHAR(80)"`
	Token       string    `json:"token" xorm:"default 'NULL' comment('开放密钥') VARCHAR(80)"`
	Type        int       `json:"type" xorm:"not null default 1 comment('登录类型1腾讯QQ2新浪微博') INT(11)"`
	TypeLogin   int       `json:"type_login" xorm:"not null default 0 comment('登录模块;302前台还是后台301') INT(11)"`
	GmtCreate   time.Time `json:"gmt_create" xorm:"not null default 'current_timestamp()' comment('添加时间') TIMESTAMP"`
	GmtModified time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('更新时间') TIMESTAMP"`
	Extend      string    `json:"extend" xorm:"default '''' comment('扩展参数') VARCHAR(5000)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewConnect

func NewConnect() *Connect

初始化

type Goods

type Goods struct {
	Id                 int       `json:"id" xorm:"not null pk autoincr INT(10)"`
	ProductId          int       `json:"product_id" xorm:"not null default 0 comment('商品信息ID') INT(10)"`
	WarehouseId        int       `json:"warehouse_id" xorm:"not null default 0 comment('仓库ID') INT(10)"`
	Sid                int       `json:"sid" xorm:"not null default 0 comment('供应商ID') index INT(11)"`
	Status             int       `json:"status" xorm:"not null default 0 comment('状态0未审核99已审核') index TINYINT(1)"`
	IsDel              int       `json:"is_del" xorm:"not null default 0 comment('是否删除1是0否') index TINYINT(1)"`
	IsOpen             int       `json:"is_open" xorm:"not null default 0 comment('是否上架1是0否') index TINYINT(1)"`
	Aid                int       `json:"aid" xorm:"not null default 0 comment('管理员(发布人)ID') INT(10)"`
	CatId              int       `json:"cat_id" xorm:"not null default 1 comment('栏目id') index INT(10)"`
	BrandId            int       `json:"brand_id" xorm:"not null default 0 comment('品牌') index INT(10)"`
	Title              string    `json:"title" xorm:"default 'NULL' comment('标题') VARCHAR(100)"`
	Model              string    `json:"model" xorm:"default 'NULL' comment('规格') VARCHAR(100)"`
	Number             string    `json:"number" xorm:"default 'NULL' comment('商品编号') CHAR(100)"`
	Thumb              string    `json:"thumb" xorm:"default 'NULL' comment('缩略图') VARCHAR(255)"`
	OriginalImg        string    `json:"original_img" xorm:"default 'NULL' comment('原始图') VARCHAR(255)"`
	Sort               int       `json:"sort" xorm:"not null default 0 comment('排序') index INT(10)"`
	PriceBase          float64   `json:"price_base" xorm:"not null default 0.0000 comment('底价') DECIMAL(28,4)"`
	PricePlantformCost float64   `json:"price_plantform_cost" xorm:"not null default 0.0000 comment('平台成本') DECIMAL(28,4)"`
	AttrTypeId         int       `json:"attr_type_id" xorm:"not null default 0 comment('属性类别ID') INT(10)"`
	NumUnit            int       `json:"num_unit" xorm:"not null default 1 comment('每个单位内多少个,每盒几罐') INT(11)"`
	TypeStock          int       `json:"type_stock" xorm:"not null default 0 comment('是否仓库库存') INT(10)"`
	TypeId             int       `json:"type_id" xorm:"not null default 10001 comment('类别类目') INT(11)"`
	TypeDelivery       int       `json:"type_delivery" xorm:"not null default 10201 comment('商品发货属性类别') INT(11)"`
	Mark               string    `json:"mark" xorm:"not null default '''' comment('标志:产品-仓库-供应商') index CHAR(32)"`
	MarkId             int       `json:"mark_id" xorm:"not null default 10001 comment('标志类别') index INT(11)"`
	Description        string    `json:"description" xorm:"default 'NULL' comment('描述') VARCHAR(255)"`
	GmtCreate          time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('添加时间') TIMESTAMP"`
	GmtModified        time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('更新时间') TIMESTAMP"`
	AidCreate          int       `json:"aid_create" xorm:"not null default 0 comment('添加人') index INT(11)"`
	AidModified        int       `json:"aid_modified" xorm:"not null default 0 comment('更新人') INT(1)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewGoods

func NewGoods() *Goods

初始化

type GoodsBrand

type GoodsBrand struct {
	Id          int       `json:"id" xorm:"not null pk autoincr INT(10)"`
	Name        string    `json:"name" xorm:"default 'NULL' comment('名称') VARCHAR(255)"`
	NameEn      string    `json:"name_en" xorm:"default 'NULL' comment('品牌英文名称或是汉语拼音') VARCHAR(255)"`
	Http        string    `json:"http" xorm:"default 'NULL' comment('品牌网站') VARCHAR(255)"`
	Phone       string    `json:"phone" xorm:"default 'NULL' comment('客服电话') VARCHAR(255)"`
	Content     string    `json:"content" xorm:"default 'NULL' comment('品牌介绍') TEXT"`
	Letter      string    `json:"letter" xorm:"default 'NULL' comment('品牌首字母') VARCHAR(255)"`
	Sort        int       `json:"sort" xorm:"not null default 0 comment('品牌排序') INT(10)"`
	ParentId    int       `json:"parent_id" xorm:"not null default 0 index INT(10)"`
	ArrParentId string    `json:"arr_parent_id" xorm:"default 'NULL' comment('所有父栏目ID') VARCHAR(255)"`
	IsChild     int       `json:"is_child" xorm:"not null default 0 comment('是否有子栏目') TINYINT(1)"`
	ArrChildId  string    `json:"arr_child_id" xorm:"default 'NULL' comment('所有子栏目ID') TEXT"`
	IsDel       int       `json:"is_del" xorm:"not null default 0 comment('是否删除1是0否') index TINYINT(1)"`
	GmtCreate   time.Time `json:"gmt_create" xorm:"not null default 'current_timestamp()' comment('添加时间') TIMESTAMP"`
	GmtModified time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('更新时间') TIMESTAMP"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewGoodsBrand

func NewGoodsBrand() *GoodsBrand

初始化

type GoodsCategory

type GoodsCategory struct {
	Id          int       `json:"id" xorm:"not null pk autoincr INT(10)"`
	Name        string    `json:"name" xorm:"default 'NULL' comment('名称') VARCHAR(50)"`
	Description string    `json:"description" xorm:"default 'NULL' comment('介绍') TEXT"`
	ParentId    int       `json:"parent_id" xorm:"not null default 0 index INT(10)"`
	Sort        int       `json:"sort" xorm:"not null default 0 comment('排序') index INT(10)"`
	ArrParentId string    `json:"arr_parent_id" xorm:"default 'NULL' comment('所有父栏目ID') VARCHAR(255)"`
	IsChild     int       `json:"is_child" xorm:"not null default 0 comment('是否有子栏目') TINYINT(1)"`
	ArrChildId  string    `json:"arr_child_id" xorm:"default 'NULL' comment('所有子栏目ID') TEXT"`
	IsDel       int       `json:"is_del" xorm:"not null default 0 comment('是否删除1是0否') TINYINT(1)"`
	GmtCreate   time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('添加时间') TIMESTAMP"`
	GmtModified time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('更新时间') TIMESTAMP"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewGoodsCategory

func NewGoodsCategory() *GoodsCategory

初始化

type GoodsCombined

type GoodsCombined struct {
	Id          int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	GoodsId     int       `json:"goods_id" xorm:"not null default 0 INT(11)"`
	ProductId   int       `json:"product_id" xorm:"not null default 0 comment('产品ID') INT(11)"`
	Aid         int       `json:"aid" xorm:"not null default 0 comment('添加人') INT(11)"`
	PriceShop   float64   `json:"price_shop" xorm:"not null default 0.0000 comment('组合商品价格') DECIMAL(28,4)"`
	Sort        int       `json:"sort" xorm:"not null default 0 comment('排序') INT(11)"`
	NumLeast    int       `json:"num_least" xorm:"not null default 1 comment('最少购买数量') INT(11)"`
	ParentId    int       `json:"parent_id" xorm:"not null default 0 comment('顶级商品ID') INT(11)"`
	GmtCreate   time.Time `json:"gmt_create" xorm:"not null default 'current_timestamp()' comment('添加时间') TIMESTAMP"`
	GmtModified time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('更新时间') TIMESTAMP"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewGoodsCombined

func NewGoodsCombined() *GoodsCombined

初始化

type GoodsContent

type GoodsContent struct {
	Id             int    `json:"id" xorm:"not null pk autoincr INT(11)"`
	SeoTitle       string `json:"seo_title" xorm:"default 'NULL' comment('seo标题') VARCHAR(50)"`
	SeoDescription string `json:"seo_description" xorm:"default 'NULL' comment('seo描述') VARCHAR(200)"`
	SeoKeyword     string `json:"seo_keyword" xorm:"default 'NULL' comment('seo关键字') VARCHAR(50)"`
	Content        string `json:"content" xorm:"default 'NULL' comment('内容') TEXT"`
	Remark         string `json:"remark" xorm:"default 'NULL' comment('备注紧供自己查看') VARCHAR(255)"`
	TitleOther     string `json:"title_other" xorm:"default 'NULL' comment('其他名称') VARCHAR(5000)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewGoodsContent

func NewGoodsContent() *GoodsContent

初始化

type GoodsPrice

type GoodsPrice struct {
	Id              int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	GoodsId         int       `json:"goods_id" xorm:"not null default 0 comment('商品ID') INT(11)"`
	Name            string    `json:"name" xorm:"default 'NULL' comment('商品名称') VARCHAR(200)"`
	PriceMarket     float64   `json:"price_market" xorm:"not null default 0.0000 comment('市场价') DECIMAL(28,4)"`
	PriceShop       float64   `json:"price_shop" xorm:"not null default 0.0000 comment('商城价') DECIMAL(28,4)"`
	PriceType       int       `json:"price_type" xorm:"not null default 0 comment('价格类别') INT(11)"`
	PriceTypeSub    int       `json:"price_type_sub" xorm:"not null default 0 comment('价格类别子类别') INT(11)"`
	TimeStart       time.Time `json:"time_start" xorm:"default 'NULL' comment('开始时间') DATETIME"`
	TimeEnd         time.Time `json:"time_end" xorm:"default 'NULL' comment('结束时间') DATETIME"`
	NumMax          int       `json:"num_max" xorm:"not null default 9999 comment('最大可一次购买数量') INT(11)"`
	NumMin          int       `json:"num_min" xorm:"not null default 1 comment('最少购买数量') INT(11)"`
	MinFreeDelivery int       `json:"min_free_delivery" xorm:"not null default 1 comment('最小包邮数量') INT(10)"`
	IsFreeDelivery  int       `json:"is_free_delivery" xorm:"not null default 0 comment('是否包邮1是0否') TINYINT(1)"`
	IsGroupPrice    int       `json:"is_group_price" xorm:"not null default 1 comment('是否使用用户组价格') TINYINT(1)"`
	IsFreeTax       int       `json:"is_free_tax" xorm:"not null default 0 comment('是否包税') TINYINT(1)"`
	IsDel           int       `json:"is_del" xorm:"not null default 0 comment('是否删除') TINYINT(1)"`
	IsUrlShow       int       `json:"is_url_show" xorm:"not null default 0 comment('是否删除') TINYINT(1)"`
	GroupId         int       `json:"group_id" xorm:"not null comment('指定用户组') INT(11)"`
	TypePrice       int       `json:"type_price" xorm:"not null comment('指定价格类别') INT(11)"`
	GmtCreate       time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('添加时间') TIMESTAMP"`
	GmtModified     time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('更新时间') TIMESTAMP"`
	AidCreate       int       `json:"aid_create" xorm:"not null default 0 comment('添加人') INT(11)"`
	AidModified     int       `json:"aid_modified" xorm:"not null default 0 comment('更新人') INT(1)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewGoodsPrice

func NewGoodsPrice() *GoodsPrice

初始化

type GoodsPriceType

type GoodsPriceType struct {
	Id          int       `json:"id" xorm:"not null pk INT(11)"`
	Type        int       `json:"type" xorm:"not null default 0 comment('类型id') INT(11)"`
	Value       int       `json:"value" xorm:"not null default 0 comment('id') INT(11)"`
	GmtCreate   time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('添加时间') TIMESTAMP"`
	GmtModified time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('更新时间') TIMESTAMP"`
	AidCreate   int       `json:"aid_create" xorm:"not null default 0 comment('添加人') INT(11)"`
	AidModified int       `json:"aid_modified" xorm:"not null default 0 comment('更新人') INT(1)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewGoodsPriceType

func NewGoodsPriceType() *GoodsPriceType

初始化

type GoodsStatistics

type GoodsStatistics struct {
	Id      int     `json:"id" xorm:"not null pk INT(11)"`
	Saless  float64 `json:"saless" xorm:"not null default 0.0000 comment('销量') DECIMAL(28,4)"`
	Reading float64 `json:"reading" xorm:"not null default 0.0000 comment('访问数') DECIMAL(28,4)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewGoodsStatistics

func NewGoodsStatistics() *GoodsStatistics

初始化

type GoodsStruct

type GoodsStruct struct {
	Goods      *Goods
	GoodsPrice *GoodsPrice
}

func NewGoodsStruct

func NewGoodsStruct() *GoodsStruct

初始化

type Log

type Log struct {
	Id         int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	FromId     int       `json:"from_id" xorm:"not null default 0 comment('id') index INT(11)"`
	Aid        int       `json:"aid" xorm:"not null default 0 comment('管理员ID') index INT(11)"`
	Uid        int       `json:"uid" xorm:"not null default 0 comment('用户id') index INT(11)"`
	GmtCreate  time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('创建时间') TIMESTAMP"`
	Mark       string    `json:"mark" xorm:"default 'NULL' comment('标志自定义标志') CHAR(32)"`
	Data       string    `json:"data" xorm:"default 'NULL' comment('其他内容') TEXT"`
	No         string    `json:"no" xorm:"default 'NULL' comment('单号') index CHAR(50)"`
	TypeLogin  int       `json:"type_login" xorm:"not null default 0 comment('登录方式;302前台还是后台301') index INT(11)"`
	TypeClient int       `` /* 144-byte string literal not displayed */
	Ip         string    `json:"ip" xorm:"default 'NULL' comment('IP') CHAR(20)"`
	Msg        string    `json:"msg" xorm:"default 'NULL' comment('自定义说明') VARCHAR(255)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewLog

func NewLog() *Log

初始化

type News

type News struct {
	Id          int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	Aid         int       `json:"aid" xorm:"not null default 0 comment('管理员AID') INT(11)"`
	IsDel       int       `json:"is_del" xorm:"not null default 0 comment('是否删除1是0否') index(is_del) TINYINT(1)"`
	IsOpen      int       `json:"is_open" xorm:"not null default 1 comment('启用1是0否') index(is_del) TINYINT(1)"`
	Status      int       `json:"status" xorm:"not null default 0 comment('状态') index(is_del) INT(11)"`
	GmtSystem   time.Time `json:"gmt_system" xorm:"default 'NULL' comment('创建时间,系统时间不可修改') TIMESTAMP"`
	GmtModified time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('更新时间') TIMESTAMP"`
	GmtCreate   time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('添加时间,可修改') TIMESTAMP"`
	Title       string    `json:"title" xorm:"default 'NULL' comment('标题') VARCHAR(255)"`
	Author      string    `json:"author" xorm:"default 'NULL' comment('作者') VARCHAR(255)"`
	Url         string    `json:"url" xorm:"default 'NULL' comment('网址') VARCHAR(255)"`
	UrlSource   string    `json:"url_source" xorm:"default 'NULL' comment('来源地址(转载)') VARCHAR(255)"`
	UrlRewrite  string    `json:"url_rewrite" xorm:"default 'NULL' comment('自定义伪静态Url') index CHAR(150)"`
	Description string    `json:"description" xorm:"default 'NULL' comment('摘要') VARCHAR(255)"`
	Content     string    `json:"content" xorm:"default 'NULL' comment('内容') TEXT"`
	Type        int       `json:"type" xorm:"not null default 0 comment('类型0文章10001博客栏目') index INT(11)"`
	ModuleId    int       `json:"module_id" xorm:"not null default 0 comment('模块10019技术10018生活') index INT(10)"`
	SourceId    int       `json:"source_id" xorm:"not null default 0 comment('来源:后台,接口,其他') index INT(11)"`
	TypeId      int       `json:"type_id" xorm:"not null default 0 comment('类别ID,原创,转载,翻译') index(is_del) INT(11)"`
	CatId       int       `json:"cat_id" xorm:"not null default 0 comment('分类ID,栏目') index(is_del) INT(11)"`
	Tag         string    `json:"tag" xorm:"default 'NULL' comment('标签') VARCHAR(255)"`
	Thumb       string    `json:"thumb" xorm:"default 'NULL' comment('缩略图') VARCHAR(255)"`
	IsRelevant  int       `json:"is_relevant" xorm:"not null default 0 comment('相关文章1是0否') TINYINT(1)"`
	IsJump      int       `json:"is_jump" xorm:"not null default 0 comment('跳转1是0否') TINYINT(1)"`
	IsComment   int       `json:"is_comment" xorm:"not null default 1 comment('允许评论1是0否') TINYINT(1)"`
	IsRead      int       `json:"is_read" xorm:"not null default 10014 comment('是否阅读10014未看10015在看10016已看') INT(11)"`
	Sort        int       `json:"sort" xorm:"not null default 0 comment('排序') index(is_del) INT(11)"`
	Remark      string    `json:"remark" xorm:"default 'NULL' comment('备注') VARCHAR(255)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewNews

func NewNews() *News

初始化

type NewsStatistics

type NewsStatistics struct {
	Id             int    `json:"id" xorm:"not null pk autoincr INT(11)"`
	NewsId         int    `json:"news_id" xorm:"not null default 0 comment('文章ID') index INT(11)"`
	Comment        int    `json:"comment" xorm:"not null default 0 comment('评论人数') INT(11)"`
	Read           int    `json:"read" xorm:"not null default 0 comment('阅读人数') INT(11)"`
	SeoTitle       string `json:"seo_title" xorm:"default 'NULL' comment('SEO标题') VARCHAR(255)"`
	SeoDescription string `json:"seo_description" xorm:"default 'NULL' comment('SEO摘要') VARCHAR(255)"`
	SeoKeyword     string `json:"seo_keyword" xorm:"default 'NULL' comment('SEO关键词') VARCHAR(255)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewNewsStatistics

func NewNewsStatistics() *NewsStatistics

初始化

type NewsSyncMapping

type NewsSyncMapping struct {
	Id          int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	NewsId      int       `json:"news_id" xorm:"not null default 0 comment('本站blog的id') INT(11)"`
	TypeId      int       `json:"type_id" xorm:"not null default 0 comment('类别id') INT(11)"`
	ToId        string    `json:"to_id" xorm:"default 'NULL' comment('csdn的id') VARCHAR(64)"`
	GmtModified time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('最后一次更新时间') TIMESTAMP"`
	GmtCreate   time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('插入时间') TIMESTAMP"`
	Mark        string    `json:"mark" xorm:"default 'NULL' comment('标志') CHAR(32)"`
	IsSync      int       `json:"is_sync" xorm:"not null default 0 comment('是否同步过') TINYINT(1)"`
	Extend      string    `json:"extend" xorm:"default 'NULL' comment('扩展参数') VARCHAR(5000)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewNewsSyncMapping

func NewNewsSyncMapping() *NewsSyncMapping

初始化

type NewsSyncQueue

type NewsSyncQueue struct {
	Id          int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	NewsId      int       `json:"news_id" xorm:"not null default 0 comment('本站博客id') INT(11)"`
	TypeId      int       `json:"type_id" xorm:"not null default 0 comment('类型') INT(11)"`
	Status      int       `json:"status" xorm:"not null default 0 comment('状态:0:待运行 10:失败 99:成功') TINYINT(3)"`
	GmtModified time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('最后一次更新时间') TIMESTAMP"`
	GmtCreate   time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('插入时间') TIMESTAMP"`
	Msg         string    `json:"msg" xorm:"default 'NULL' comment('内容') VARCHAR(255)"`
	MapId       int       `json:"map_id" xorm:"not null default 0 comment('同步ID') INT(11)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewNewsSyncQueue

func NewNewsSyncQueue() *NewsSyncQueue

初始化

type NewsTag

type NewsTag struct {
	Id        int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	Name      string    `json:"name" xorm:"default 'NULL' comment('名称') CHAR(100)"`
	GmtCreate time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('添加时间') TIMESTAMP"`
	Aid       int       `json:"aid" xorm:"not null default 0 comment('管理员ID') INT(11)"`
	NewsId    int       `json:"news_id" xorm:"not null default 0 comment('文章ID') INT(11)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewNewsTag

func NewNewsTag() *NewsTag

初始化

type Order

type Order struct {
	Id             int       `json:"id" xorm:"not null pk autoincr INT(10)"`
	OrderNo        string    `json:"order_no" xorm:"default 'NULL' comment('销售订单号') index CHAR(32)"`
	OrderSn        string    `json:"order_sn" xorm:"default 'NULL' comment('单号淘宝苏宁等等') CHAR(32)"`
	Uid            int       `json:"uid" xorm:"not null default 0 comment('用户ID') index INT(10)"`
	OrderStatus    int       `` /* 354-byte string literal not displayed */
	Status         int       `json:"status" xorm:"not null default 0 comment('状态0未审核99已审核') index TINYINT(1)"`
	IsDel          int       `json:"is_del" xorm:"not null default 0 comment('是否删除1是0否') index TINYINT(1)"`
	TypeId         int       `json:"type_id" xorm:"not null default 0 comment('类别,1普通订单;') index INT(10)"`
	TypeIdAdmin    int       `json:"type_id_admin" xorm:"not null default 0 comment('类别,1普通订单;后台设置') index INT(10)"`
	TypeIdSub      int       `json:"type_id_sub" xorm:"not null default 0 comment('其他类别') INT(11)"`
	VatFee         float64   `json:"vat_fee" xorm:"not null default 0.0000 comment('增值税费') DECIMAL(28,4)"`
	SalesFee       float64   `json:"sales_fee" xorm:"not null default 0.0000 comment('消费税') DECIMAL(28,4)"`
	AmountFreight  float64   `json:"amount_freight" xorm:"not null default 0.0000 comment('物流费用') DECIMAL(28,4)"`
	AmountDiscount float64   `json:"amount_discount" xorm:"not null default 0.0000 comment('折扣金额') DECIMAL(28,4)"`
	AmountGoods    float64   `json:"amount_goods" xorm:"not null default 0.0000 comment('商品总金额') DECIMAL(28,4)"`
	AmountOther    float64   `json:"amount_other" xorm:"not null comment('其他价格费用') DECIMAL(28,4)"`
	AmountTax      float64   `json:"amount_tax" xorm:"not null default 0.0000 comment('税费') DECIMAL(28,4)"`
	AmountOrder    float64   `json:"amount_order" xorm:"not null default 0.0000 comment('订单总额') DECIMAL(28,4)"`
	AmountPayment  float64   `` /* 126-byte string literal not displayed */
	Total          int       `json:"total" xorm:"not null default 0 comment('总数量') INT(10)"`
	TotalNoReceipt int       `json:"total_no_receipt" xorm:"not null default 0 comment('未收货数量') INT(10)"`
	Sid            int       `json:"sid" xorm:"not null default 0 comment('供应商ID') index INT(11)"`
	WarehouseId    int       `json:"warehouse_id" xorm:"not null default 0 comment('仓库ID') INT(10)"`
	StoreId        int       `json:"store_id" xorm:"not null default 0 comment('店铺ID') INT(10)"`
	ExpressNo      string    `json:"express_no" xorm:"not null default '''' comment('物流单号,运送单号') CHAR(50)"`
	ExpressId      int       `json:"express_id" xorm:"not null default 0 comment('快递公司id') INT(10)"`
	Remark         string    `json:"remark" xorm:"default 'NULL' comment('备注用户自己看') VARCHAR(255)"`
	RemarkAdmin    string    `json:"remark_admin" xorm:"default 'NULL' comment('备注客服自己看') VARCHAR(255)"`
	GmtCreate      time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('下单时间') index TIMESTAMP"`
	GmtModified    time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('最后更新时间') TIMESTAMP"`
	TimeSuccess    time.Time `json:"time_success" xorm:"default 'NULL' comment('订单完成时间(整个订单完成,交易完成)') TIMESTAMP"`
	TimeCheckAdmin time.Time `json:"time_check_admin" xorm:"default 'NULL' comment('客服审核时间') TIMESTAMP"`
	TimeCheck      time.Time `json:"time_check" xorm:"default 'NULL' comment('审核时间,海关审核时间') TIMESTAMP"`
	TimeReceipt    time.Time `json:"time_receipt" xorm:"default 'NULL' comment('收货时间') TIMESTAMP"`
	Declare        int       `` /* 231-byte string literal not displayed */
	DeclareMsg     string    `json:"declare_msg" xorm:"default 'NULL' comment('申报信息') VARCHAR(200)"`
	DeclareTime    time.Time `json:"declare_time" xorm:"default 'NULL' comment('申报时间') TIMESTAMP"`
	IsSendTime     time.Time `json:"is_send_time" xorm:"default 'NULL' comment('发货动作时间') TIMESTAMP"`
	IsSend         int       `json:"is_send" xorm:"not null default 0 comment('是否发货1是0否') index TINYINT(1)"`
	IsRefund       int       `json:"is_refund" xorm:"not null default 0 comment('是否退款') index TINYINT(1)"`
	IsReturn       int       `json:"is_return" xorm:"not null default 0 comment('退货1是0否') TINYINT(1)"`
	IsExchange     int       `json:"is_exchange" xorm:"not null default 0 comment('换货1是0否') TINYINT(1)"`
	OrderIdFrom    int       `json:"order_id_from" xorm:"not null default 0 comment('來自哪个ID,修改价格前ID') INT(10)"`
	OrderIdFromApi int       `json:"order_id_from_api" xorm:"not null default 0 comment('接口订单id') INT(10)"`
	OrderIdMaster  int       `json:"order_id_master" xorm:"not null default 0 comment('总订单号ID') INT(10)"`
	OrderNoMaster  string    `json:"order_no_master" xorm:"default 'NULL' comment('总订单号') index CHAR(32)"`
	SidFrom        int       `json:"sid_from" xorm:"not null default 0 comment('货源商家id') INT(10)"`
	PayTime        time.Time `json:"pay_time" xorm:"default 'NULL' comment('客户购买时间') TIMESTAMP"`
	PayId          int       `json:"pay_id" xorm:"not null default 0 comment('支付ID') INT(11)"`
	PayNo          string    `json:"pay_no" xorm:"default 'NULL' comment('支付单号') CHAR(50)"`
	IsPaid         int       `json:"is_paid" xorm:"not null default 0 comment('是否已支付') TINYINT(1)"`
	IsPaidSystem   int       `json:"is_paid_system" xorm:"not null default 0 comment('是否已支付(系统自动)') TINYINT(1)"`
	TimePaidSystem time.Time `json:"time_paid_system" xorm:"default 'NULL' comment('系统支付时间') DATETIME"`
	ExchangeRate   float64   `json:"exchange_rate" xorm:"not null default 0.0000 comment('汇率') DECIMAL(28,8)"`
	CurrencyMark   string    `json:"currency_mark" xorm:"default 'NULL' comment('币制') CHAR(3)"`
	GetId          int       `json:"get_id" xorm:"not null default 0 comment('优惠券') INT(11)"`
	UseWallet      float64   `json:"use_wallet" xorm:"not null default 0.0000 comment('使用钱包') DECIMAL(28,4)"`
	UseCredit      int       `json:"use_credit" xorm:"not null default 0.0000 comment('使用积分') INT(11)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewOrder

func NewOrder() *Order

初始化

type OrderConsignee

type OrderConsignee struct {
	Id           int    `json:"id" xorm:"not null pk autoincr comment('订单id') INT(11)"`
	ConsigneeId  int    `json:"consignee_id" xorm:"not null default 0 comment('收货人ID') INT(10)"`
	Consignee    string `json:"consignee" xorm:"default 'NULL' comment('收货人') VARCHAR(50)"`
	Mobile       string `json:"mobile" xorm:"default 'NULL' comment('手机号') CHAR(11)"`
	Country      int    `json:"country" xorm:"not null default 1 comment('国家') INT(11)"`
	Province     int    `json:"province" xorm:"not null default 0 comment('省') INT(11)"`
	City         int    `json:"city" xorm:"not null default 0 comment('市') INT(11)"`
	District     int    `json:"district" xorm:"not null default 0 comment('区') INT(11)"`
	Address      string `json:"address" xorm:"default 'NULL' comment('地址') VARCHAR(255)"`
	AddressEn    string `json:"address_en" xorm:"default 'NULL' comment('地址(英文)') VARCHAR(255)"`
	IdCard       string `json:"id_card" xorm:"default 'NULL' comment('身份证号') CHAR(19)"`
	IdCardFront  string `json:"id_card_front" xorm:"default 'NULL' comment('身份证正面') VARCHAR(255)"`
	IdCardBack   string `json:"id_card_back" xorm:"default 'NULL' comment('身份证反面') VARCHAR(255)"`
	ProvinceName string `json:"province_name" xorm:"default 'NULL' comment('省') CHAR(30)"`
	CityName     string `json:"city_name" xorm:"default 'NULL' comment('市') CHAR(50)"`
	DistrictName string `json:"district_name" xorm:"default 'NULL' comment('区') CHAR(50)"`
	AddressAll   string `json:"address_all" xorm:"default 'NULL' comment('地址') VARCHAR(255)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewOrderConsignee

func NewOrderConsignee() *OrderConsignee

初始化

type OrderExt

type OrderExt struct {
	Id                   int     `json:"id" xorm:"not null pk autoincr INT(11)"`
	CostAmountPayment    float64 `json:"cost_amount_payment" xorm:"not null default 0.0000 comment('支付金额成本') DECIMAL(28,4)"`
	CostAmountGoods      float64 `json:"cost_amount_goods" xorm:"not null default 0.0000 comment('商品金额成本') DECIMAL(28,4)"`
	DeclareTax           float64 `json:"declare_tax" xorm:"not null default 0.0000 comment('申报税') DECIMAL(28,4)"`
	DeclareVatFee        float64 `json:"declare_vat_fee" xorm:"not null default 0.0000 comment('申报增值税') DECIMAL(28,4)"`
	DeclareSalesFee      float64 `json:"declare_sales_fee" xorm:"not null default 0.0000 comment('申报消费税') DECIMAL(28,4)"`
	DeclareAmountFreight float64 `json:"declare_amount_freight" xorm:"not null default 0.0000 comment('申报运费') DECIMAL(28,4)"`
	DeclareAmountPayment float64 `json:"declare_amount_payment" xorm:"not null default 0.0000 comment('申报运费') DECIMAL(28,4)"`
	IsWmsSales           int     `json:"is_wms_sales" xorm:"not null default 0 comment('是否向WMS通信生成销售单   0未通信 1已通信') TINYINT(4)"`
	IsWmsSendOut         int     `` /* 130-byte string literal not displayed */
	OrderAmountDeclare   float64 `json:"order_amount_declare" xorm:"not null default 0.0000 comment('订单总金额') DECIMAL(28,4)"`
	PaymentAmountDeclare float64 `json:"payment_amount_declare" xorm:"not null default 0.0000 comment('支付总金额') DECIMAL(28,4)"`
	GoodsAmountDeclare   float64 `json:"goods_amount_declare" xorm:"not null default 0.0000 comment('商品小计') DECIMAL(28,4)"`
	BillingCountry       int     `json:"billing_country" xorm:"not null default 1 comment('账单国家') INT(11)"`
	BillingProvince      int     `json:"billing_province" xorm:"not null default 0 comment('账单省') INT(11)"`
	BillingCity          int     `json:"billing_city" xorm:"not null default 0 comment('账单市') INT(11)"`
	BillingDistrict      int     `json:"billing_district" xorm:"not null default 0 comment('账单区') INT(11)"`
	BillingAddress       string  `json:"billing_address" xorm:"not null default '''' comment('账单地址') VARCHAR(255)"`
	BillingMobile        string  `json:"billing_mobile" xorm:"not null default '''' comment('手机号') CHAR(11)"`
	BillingConsignee     string  `json:"billing_consignee" xorm:"not null default '''' comment('账单收货人') VARCHAR(255)"`
	BillingMail          string  `json:"billing_mail" xorm:"not null default '''' comment('账单邮箱') VARCHAR(255)"`
	BillingAddressEn     string  `json:"billing_address_en" xorm:"default 'NULL' comment('账单地址(英文)') VARCHAR(255)"`
	BillingZipCode       string  `json:"billing_zip_code" xorm:"default 'NULL' comment('账单邮编') VARCHAR(10)"`
	BillingTaxNo         string  `json:"billing_tax_no" xorm:"default 'NULL' comment('税号') VARCHAR(255)"`
	PackingId            int     `json:"packing_id" xorm:"default 0 comment('包装ID') INT(10)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewOrderExt

func NewOrderExt() *OrderExt

初始化

type OrderGoods

type OrderGoods struct {
	Id          int     `json:"id" xorm:"not null pk autoincr INT(10)"`
	OrderId     int     `json:"order_id" xorm:"not null default 0 comment('订单ID') index INT(10)"`
	PriceId     int     `json:"price_id" xorm:"not null default 0 comment('价格id') INT(11)"`
	GoodsId     int     `json:"goods_id" xorm:"not null default 0 comment('商品ID') INT(10)"`
	ProductId   int     `json:"product_id" xorm:"not null default 0 comment('商品信息id') INT(10)"`
	Title       string  `json:"title" xorm:"default 'NULL' comment('商品名称') VARCHAR(200)"`
	Num         int     `json:"num" xorm:"not null default 0 comment('数量') INT(10)"`
	Number      string  `json:"number" xorm:"default 'NULL' comment('商品编号') CHAR(100)"`
	Price       float64 `json:"price" xorm:"not null default 0.0000 comment('单价') DECIMAL(28,4)"`
	NumUnit     int     `json:"num_unit" xorm:"not null default 1 comment('每个单位内多少个,每盒几罐') INT(11)"`
	NumTotal    int     `json:"num_total" xorm:"not null default 0 comment('总数量 = 罐数x页面数量') INT(11)"`
	Amount      float64 `json:"amount" xorm:"not null default 0.0000 comment('合计总价') DECIMAL(28,4)"`
	Freight     float64 `json:"freight" xorm:"not null default 0.0000 comment('运费') DECIMAL(28,4)"`
	WarehouseId int     `json:"warehouse_id" xorm:"not null default 0 comment('仓库ID') INT(10)"`
	Sid         int     `json:"sid" xorm:"not null default 1 comment('商家ID') INT(10)"`
	SalesFee    float64 `json:"sales_fee" xorm:"not null default 0.0000 comment('消费税费') DECIMAL(28,4)"`
	VatFee      float64 `json:"vat_fee" xorm:"not null default 0.0000 comment('增值税费') DECIMAL(28,4)"`
	PriceTax    float64 `json:"price_tax" xorm:"not null default 0.0000 comment('总税费') DECIMAL(28,4)"`
	Remark      string  `json:"remark" xorm:"default 'NULL' comment('备注') TEXT"`
	PriceShop   float64 `json:"price_shop" xorm:"not null default 0.0000 comment('商城价') DECIMAL(28,4)"`
	CostPrice   float64 `json:"cost_price" xorm:"not null default 0.0000 comment('成本单价') DECIMAL(28,4)"`
	CostAmount  float64 `json:"cost_amount" xorm:"not null default 0.0000 comment('成本金额') DECIMAL(28,4)"`
	MarkId      int     `json:"mark_id" xorm:"not null default 0 comment('商品标志ID') INT(11)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewOrderGoods

func NewOrderGoods() *OrderGoods

初始化

type OrderGoodsStructure

type OrderGoodsStructure struct {
	Id          int     `json:"id" xorm:"not null pk autoincr INT(10)"`
	OrderId     int     `json:"order_id" xorm:"not null default 0 comment('订单ID') index INT(10)"`
	PriceId     int     `json:"price_id" xorm:"not null default 0 comment('价格id') INT(11)"`
	GoodsId     int     `json:"goods_id" xorm:"not null default 0 comment('商品ID') INT(10)"`
	ProductId   int     `json:"product_id" xorm:"not null default 0 comment('商品信息id') INT(10)"`
	Title       string  `json:"title" xorm:"default 'NULL' comment('商品名称') VARCHAR(200)"`
	Num         int     `json:"num" xorm:"not null default 0 comment('数量') INT(10)"`
	Number      string  `json:"number" xorm:"default 'NULL' comment('商品编号') CHAR(100)"`
	Price       float64 `json:"price" xorm:"not null default 0.0000 comment('单价') DECIMAL(28,4)"`
	NumUnit     int     `json:"num_unit" xorm:"not null default 1 comment('每个单位内多少个,每盒几罐') INT(11)"`
	NumTotal    int     `json:"num_total" xorm:"not null default 0 comment('总数量 = 罐数x页面数量') INT(11)"`
	Amount      float64 `json:"amount" xorm:"not null default 0.0000 comment('合计总价') DECIMAL(28,4)"`
	Freight     float64 `json:"freight" xorm:"not null default 0.0000 comment('运费') DECIMAL(28,4)"`
	WarehouseId int     `json:"warehouse_id" xorm:"not null default 0 comment('仓库ID') INT(10)"`
	Sid         int     `json:"sid" xorm:"not null default 1 comment('商家ID') INT(10)"`
	SalesFee    float64 `json:"sales_fee" xorm:"not null default 0.0000 comment('消费税费') DECIMAL(28,4)"`
	VatFee      float64 `json:"vat_fee" xorm:"not null default 0.0000 comment('增值税费') DECIMAL(28,4)"`
	PriceTax    float64 `json:"price_tax" xorm:"not null default 0.0000 comment('总税费') DECIMAL(28,4)"`
	Remark      string  `json:"remark" xorm:"default 'NULL' comment('备注') TEXT"`
	PriceShop   float64 `json:"price_shop" xorm:"not null default 0.0000 comment('商城价') DECIMAL(28,4)"`
	CostPrice   float64 `json:"cost_price" xorm:"not null default 0.0000 comment('成本单价') DECIMAL(28,4)"`
	CostAmount  float64 `json:"cost_amount" xorm:"not null default 0.0000 comment('成本金额') DECIMAL(28,4)"`
	ParentId    int     `json:"parent_id" xorm:"not null default 0 comment('所属组合商品ID') INT(11)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewOrderGoodsStructure

func NewOrderGoodsStructure() *OrderGoodsStructure

初始化

type Session

type Session struct {
	Id          int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	Uid         int       `json:"uid" xorm:"not null default 0 comment('用户UID') index(uid) INT(11)"`
	Ip          string    `json:"ip" xorm:"default 'NULL' comment('IP') CHAR(15)"`
	ErrorCount  int       `json:"error_count" xorm:"not null default 0 comment('密码输入错误次数') TINYINT(1)"`
	AppId       int       `json:"app_id" xorm:"not null default 0 comment('登录应用') INT(11)"`
	Md5         string    `json:"md5" xorm:"default 'NULL' comment('md5') CHAR(32)"`
	TypeLogin   int       `json:"type_login" xorm:"not null default 0 comment('登录方式;302前台还是后台301') index(uid) INT(11)"`
	TypeClient  int       `` /* 149-byte string literal not displayed */
	GmtCreate   time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('登录时间') TIMESTAMP"`
	GmtModified time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('更新时间') TIMESTAMP"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewSession

func NewSession() *Session

初始化

type Stock

type Stock struct {
	Id           int       `json:"id" xorm:"not null pk autoincr INT(10)"`
	WarehouseId  int       `json:"warehouse_id" xorm:"not null default 0 comment('仓库ID') index(warehouse_product_wms_uid) INT(11)"`
	ProductId    int       `json:"product_id" xorm:"not null default 0 comment('商品ID') index(warehouse_product_wms_uid) INT(10)"`
	Sid          int       `json:"sid" xorm:"not null default 0 comment('供应商ID') index(warehouse_product_wms_uid) INT(11)"`
	Number       string    `json:"number" xorm:"default 'NULL' comment('商品编号') CHAR(100)"`
	Barcode      string    `json:"barcode" xorm:"default 'NULL' comment('条形码') CHAR(32)"`
	Title        string    `json:"title" xorm:"default 'NULL' comment('商品标题') VARCHAR(200)"`
	Num          int       `json:"num" xorm:"not null default 0 comment('数量(展示库存)') INT(11)"`
	IsUserLock   int       `json:"is_user_lock" xorm:"not null default 0 comment('是否有用户锁定库存') index TINYINT(1)"`
	TypeId       int       `json:"type_id" xorm:"not null default 0 comment('类别') INT(11)"`
	NumAvailable int       `json:"num_available" xorm:"not null default 0 comment('可用数量') INT(11)"`
	NumLocking   int       `json:"num_locking" xorm:"not null default 0 comment('锁定库存') INT(10)"`
	NumUserLock  int       `json:"num_user_lock" xorm:"not null default 0 comment('用户锁定数量') INT(11)"`
	NumWms       int       `json:"num_wms" xorm:"not null default 0 comment('wms库存=可用数量+用户锁定数量-锁定库存') INT(10)"`
	Mark         string    `json:"mark" xorm:"default 'NULL' comment('标志') unique CHAR(32)"`
	GmtCreate    time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('创建时间') TIMESTAMP"`
	GmtModified  time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('更新时间') TIMESTAMP"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewStock

func NewStock() *Stock

初始化

type Tag

type Tag struct {
	Id        int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	Name      string    `json:"name" xorm:"default 'NULL' comment('名称') CHAR(50)"`
	GmtCreate time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('添加时间') TIMESTAMP"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewTag

func NewTag() *Tag

初始化

type Template

type Template struct {
	Id          int       `json:"id" xorm:"not null pk autoincr comment('模板ID') INT(11)"`
	Name        string    `json:"name" xorm:"default 'NULL' comment('模板名称(中文)') VARCHAR(80)"`
	Mark        string    `json:"mark" xorm:"default 'NULL' comment('模板名称标志(英文)(调用时使用)') VARCHAR(80)"`
	Title       string    `json:"title" xorm:"default 'NULL' comment('邮件标题') VARCHAR(255)"`
	Type        int       `json:"type" xorm:"not null default 0 comment('模板类型1短信模板2邮箱模板') TINYINT(1)"`
	Use         int       `json:"use" xorm:"not null default 0 comment('用途') TINYINT(2)"`
	Content     string    `json:"content" xorm:"default 'NULL' TEXT"`
	Remark      string    `json:"remark" xorm:"default 'NULL' comment('备注') VARCHAR(1024)"`
	GmtCreate   time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('创建时间') TIMESTAMP"`
	GmtModified time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('更新时间') TIMESTAMP"`
	CodeNum     int       `json:"code_num" xorm:"not null default 0 comment('验证码位数') TINYINT(3)"`
	Aid         int       `json:"aid" xorm:"not null default 0 comment('添加人') INT(11)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewTemplate

func NewTemplate() *Template

初始化

type Type

type Type struct {
	Id        int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	Name      string    `json:"name" xorm:"default 'NULL' comment('名称') CHAR(100)"`
	NameEn    string    `json:"name_en" xorm:"default 'NULL' comment('名称') CHAR(100)"`
	Code      string    `json:"code" xorm:"default 'NULL' comment('代码') CHAR(32)"`
	Mark      string    `json:"mark" xorm:"default 'NULL' comment('标志') index CHAR(32)"`
	TypeId    int       `json:"type_id" xorm:"not null default 0 comment('所属类别ID') index INT(11)"`
	ParentId  int       `json:"parent_id" xorm:"not null default 0 comment('上级ID、属于/上级ID') index INT(11)"`
	Value     int       `json:"value" xorm:"not null default 0 comment('值') INT(10)"`
	Content   string    `json:"content" xorm:"default 'NULL' comment('内容') VARCHAR(255)"`
	IsDel     int       `json:"is_del" xorm:"not null default 0 comment('是否删除0否1是') index INT(11)"`
	Sort      int       `json:"sort" xorm:"not null default 0 comment('排序') index INT(11)"`
	Remark    string    `json:"remark" xorm:"default 'NULL' comment('备注') VARCHAR(255)"`
	GmtCreate time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('添加时间') TIMESTAMP"`
	Aid       int       `json:"aid" xorm:"not null default 0 comment('添加人') INT(11)"`
	Module    string    `json:"module" xorm:"default 'NULL' comment('模块') CHAR(50)"`
	Setting   string    `json:"setting" xorm:"default 'NULL' comment('扩展参数') VARCHAR(255)"`
	IsDefault int       `json:"is_default" xorm:"not null default 0 comment('是否默认') TINYINT(1)"`
	IsChild   int       `json:"is_child" xorm:"not null default 0 comment('是否有子类1是0否') TINYINT(1)"`
	IsSystem  int       `json:"is_system" xorm:"not null default 0 comment('系统参数禁止修改') TINYINT(1)"`
	IsShow    int       `json:"is_show" xorm:"not null default 0 comment('是否显示在配置页面上') TINYINT(1)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewType

func NewType() *Type

初始化

type User

type User struct {
	Id          int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	Mobile      string    `json:"mobile" xorm:"default 'NULL' index CHAR(11)"`
	Username    string    `json:"username" xorm:"default 'NULL' comment('用户名') index CHAR(30)"`
	Mail        string    `json:"mail" xorm:"default 'NULL' comment('邮箱') index CHAR(32)"`
	Password    string    `json:"password" xorm:"default 'NULL' comment('密码') CHAR(32)"`
	Salt        string    `json:"salt" xorm:"default 'NULL' comment('干扰码') CHAR(6)"`
	RegIp       string    `json:"reg_ip" xorm:"default 'NULL' comment('注册IP') CHAR(15)"`
	RegTime     time.Time `json:"reg_time" xorm:"not null default 'current_timestamp()' comment('注册时间') TIMESTAMP"`
	IsDel       int       `json:"is_del" xorm:"not null default 0 comment('状态0正常1删除') index TINYINT(1)"`
	GroupId     int       `json:"group_id" xorm:"not null default 410 comment('用户组ID') index INT(11)"`
	TrueName    string    `json:"true_name" xorm:"default 'NULL' comment('真实姓名') VARCHAR(32)"`
	Name        string    `json:"name" xorm:"default 'NULL' comment('店铺名称') VARCHAR(100)"`
	GmtCreate   time.Time `json:"gmt_create" xorm:"default 'current_timestamp()' comment('添加时间') TIMESTAMP"`
	GmtModified time.Time `json:"gmt_modified" xorm:"default 'current_timestamp()' comment('更新时间') TIMESTAMP"`
	TypePrice   int       `json:"type_price" xorm:"default 0 comment('自定义价格类别') INT(10)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewUser

func NewUser() *User

初始化

type UserGroup

type UserGroup struct {
	Id          int    `json:"id" xorm:"not null pk autoincr comment('会员用户组ID') INT(10)"`
	Name        string `json:"name" xorm:"default 'NULL' comment('名称') CHAR(30)"`
	Discount    int    `json:"discount" xorm:"not null default 0 comment('折扣率') INT(11)"`
	IsShowPrice int    `json:"is_show_price" xorm:"not null default 1 comment('是否显示价格1是0否') TINYINT(1)"`
	Remark      string `json:"remark" xorm:"default 'NULL' comment('备注') VARCHAR(255)"`
	Sort        int    `json:"sort" xorm:"not null default 0 comment('排序') index INT(5)"`
	IsDel       int    `json:"is_del" xorm:"not null default 0 comment('是否删除1是0否') index TINYINT(1)"`
	Mark        string `json:"mark" xorm:"default 'NULL' comment('标志') CHAR(15)"`
	Qq          string `json:"qq" xorm:"default 'NULL' comment('客服') VARCHAR(15)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewUserGroup

func NewUserGroup() *UserGroup

初始化

type UserProfile

type UserProfile struct {
	Id          int    `json:"id" xorm:"not null pk autoincr INT(11)"`
	Sex         int    `json:"sex" xorm:"not null default 1 comment('性别1男2女3中性0保密') TINYINT(1)"`
	Job         string `json:"job" xorm:"default 'NULL' comment('担任职务') VARCHAR(50)"`
	Qq          string `json:"qq" xorm:"default 'NULL' VARCHAR(20)"`
	Phone       string `json:"phone" xorm:"default 'NULL' comment('电话') VARCHAR(20)"`
	County      int    `json:"county" xorm:"not null default 1 comment('国家') INT(11)"`
	Province    int    `json:"province" xorm:"not null default 0 comment('省') INT(11)"`
	City        int    `json:"city" xorm:"not null default 0 comment('市') INT(11)"`
	District    int    `json:"district" xorm:"not null default 0 comment('区') INT(11)"`
	Address     string `json:"address" xorm:"default 'NULL' comment('地址') VARCHAR(255)"`
	Wechat      string `json:"wechat" xorm:"default 'NULL' comment('微信') VARCHAR(20)"`
	RemarkAdmin string `json:"remark_admin" xorm:"default 'NULL' comment('客服备注') TEXT"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewUserProfile

func NewUserProfile() *UserProfile

初始化

type UserStatus

type UserStatus struct {
	Id             int       `json:"id" xorm:"not null pk autoincr INT(11)"`
	RegIp          string    `json:"reg_ip" xorm:"default 'NULL' comment('注册IP') CHAR(15)"`
	RegTime        time.Time `json:"reg_time" xorm:"not null default 'current_timestamp()' comment('注册时间') TIMESTAMP"`
	RegType        int       `json:"reg_type" xorm:"not null default 0 comment('注册方式') INT(11)"`
	RegAppId       int       `json:"reg_app_id" xorm:"not null default 1 comment('注册来源') INT(11)"`
	LastLoginIp    string    `json:"last_login_ip" xorm:"default 'NULL' comment('最后登录IP') CHAR(15)"`
	LastLoginTime  time.Time `json:"last_login_time" xorm:"default 'NULL' comment('最后登录时间') TIMESTAMP"`
	LastLoginAppId int       `json:"last_login_app_id" xorm:"not null default 0 comment('最后登录app_id') INT(11)"`
	Login          int       `json:"login" xorm:"not null default 0 comment('登录次数') SMALLINT(5)"`
	IsMobile       int       `json:"is_mobile" xorm:"not null default 0 comment('手机号是否已验证1已验证0未验证') TINYINT(1)"`
	IsEmail        int       `json:"is_email" xorm:"not null default 0 comment('邮箱是否已验证1已验证0未验证') TINYINT(1)"`
	AidAdd         int       `json:"aid_add" xorm:"not null default 0 comment('客服AID') INT(11)"`

	//
	ExtData interface{} `json:"ExtData" xorm:"- <- ->"`
}

func NewUserStatus

func NewUserStatus() *UserStatus

初始化

Directories

Path Synopsis
cache
service_models
setting

Jump to

Keyboard shortcuts

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