Documentation ¶
Index ¶
- type Admin
- type AdminMenu
- type AdminRoleAccess
- type AdminRolePriv
- type AdminStatus
- type App
- type Area
- type AreaExt
- type Attachment
- type Cart
- type CasbinRule
- type Connect
- type Goods
- type GoodsBrand
- type GoodsCategory
- type GoodsCollectPrice
- type GoodsCombined
- type GoodsContent
- type GoodsPrice
- type GoodsStatistics
- type Log
- type News
- type NewsStatistics
- type NewsSyncMapping
- type NewsSyncQueue
- type NewsTag
- type Order
- type OrderCollectDate
- type OrderConsignee
- type OrderExt
- type OrderGoods
- type OrderGoodsData
- type OrderGoodsStructure
- type Session
- type Stock
- type Tag
- type Template
- type Type
- type User
- type UserGroup
- type UserProfile
- type UserStatus
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:"comment('用户名') index CHAR(30)"` Password string `json:"password" xorm:"comment('密码') CHAR(32)"` Mail string `json:"mail" xorm:"comment('邮箱') VARCHAR(80)"` Salt string `json:"salt" xorm:"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:"comment('添加IP') CHAR(15)"` JobNo string `json:"job_no" xorm:"comment('工号') VARCHAR(15)"` NickName string `json:"nick_name" xorm:"comment('昵称') VARCHAR(50)"` TrueName string `json:"true_name" xorm:"comment('真实姓名') VARCHAR(50)"` Qq string `json:"qq" xorm:"comment('qq') VARCHAR(50)"` Phone string `json:"phone" xorm:"comment('电话') VARCHAR(50)"` Mobile string `json:"mobile" xorm:"comment('手机') VARCHAR(20)"` Name string `json:"name" xorm:"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)"` }
type AdminMenu ¶
type AdminMenu struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` Name string `json:"name" xorm:"comment('名称') CHAR(100)"` ParentId int `json:"parent_id" xorm:"not null default 0 comment('上级菜单') index INT(11)"` S string `json:"s" xorm:"comment('模块/控制器/动作') index CHAR(60)"` Data string `json:"data" xorm:"comment('其他参数') CHAR(100)"` Sort int `json:"sort" xorm:"not null default 0 comment('排序') index INT(11)"` Remark string `json:"remark" xorm:"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:"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)"` }
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)"` }
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:"comment('模块/控制器/动作') index(role_id_2) CHAR(100)"` Data string `json:"data" xorm:"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)"` }
type AdminStatus ¶
type AdminStatus struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` LoginTime time.Time `json:"login_time" xorm:"comment('登录时间') TIMESTAMP"` LoginIp string `json:"login_ip" xorm:"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:"comment('更新时间') TIMESTAMP"` Remark string `json:"remark" xorm:"comment('备注') VARCHAR(255)"` }
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:"comment('名称') VARCHAR(100)"` Mark string `json:"mark" xorm:"comment('标志') CHAR(32)"` Setting string `json:"setting" xorm:"comment('扩展参数') VARCHAR(5000)"` Remark string `json:"remark" xorm:"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"` }
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)"` }
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)"` }
type Attachment ¶
type Attachment struct { Id int `json:"id" xorm:"not null pk autoincr comment('附件ID') INT(10)"` Module string `json:"module" xorm:"comment('模块') index CHAR(32)"` Mark string `json:"mark" xorm:"comment('标记标志') index CHAR(60)"` TypeId int `json:"type_id" xorm:"not null default 0 comment('类别ID') INT(5)"` Name string `json:"name" xorm:"comment('保存的文件名称') CHAR(50)"` NameOriginal string `json:"name_original" xorm:"comment('原文件名') VARCHAR(255)"` Path string `json:"path" xorm:"comment('文件路径') CHAR(200)"` Size int `json:"size" xorm:"not null default 0 comment('文件大小') INT(10)"` Ext string `json:"ext" xorm:"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"` Ip string `json:"ip" xorm:"comment('上传IP') CHAR(15)"` Status int `json:"status" xorm:"not null default 0 comment('状态99正常;') index TINYINT(2)"` Md5 string `json:"md5" xorm:"comment('md5') index CHAR(32)"` Sha1 string `json:"sha1" xorm:"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:"comment('图片http地址') VARCHAR(100)"` }
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 int64 `json:"price" xorm:"not null default 0 comment('单价') BIGINT(20)"` Amount int64 `json:"amount" xorm:"not null default 0 comment('合计总价') BIGINT(20)"` 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)"` }
type CasbinRule ¶
type CasbinRule struct { PType string `json:"p_type" xorm:"index VARCHAR(100)"` V0 string `json:"v0" xorm:"index VARCHAR(100)"` V1 string `json:"v1" xorm:"index VARCHAR(100)"` V2 string `json:"v2" xorm:"index VARCHAR(100)"` V3 string `json:"v3" xorm:"index VARCHAR(100)"` V4 string `json:"v4" xorm:"index VARCHAR(100)"` V5 string `json:"v5" xorm:"index VARCHAR(100)"` Id int `json:"id" xorm:"not null pk autoincr INT(1)"` }
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:"comment('对应唯一开放id') index CHAR(80)"` Token string `json:"token" xorm:"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:"default 'CURRENT_TIMESTAMP' comment('创建时间') TIMESTAMP"` Extend string `json:"extend" xorm:"default '' comment('扩展参数') VARCHAR(5000)"` }
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') index 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:"comment('标题') VARCHAR(100)"` Model string `json:"model" xorm:"comment('规格') VARCHAR(100)"` Number string `json:"number" xorm:"comment('商品编号') CHAR(100)"` Thumb string `json:"thumb" xorm:"comment('缩略图') VARCHAR(255)"` OriginalImg string `json:"original_img" xorm:"comment('原始图') VARCHAR(255)"` Sort int `json:"sort" xorm:"not null default 0 comment('排序') index INT(10)"` PriceBase int `json:"price_base" xorm:"not null default 0 comment('底价') INT(10)"` PricePlantformCost int `json:"price_plantform_cost" xorm:"not null default 0 comment('平台成本') INT(12)"` 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)"` 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)"` IsCombined int `json:"is_combined" xorm:"not null default 0 comment('是否商品组合') TINYINT(4)"` Description string `json:"description" xorm:"comment('描述') VARCHAR(255)"` }
type GoodsBrand ¶
type GoodsBrand struct { Id int `json:"id" xorm:"not null pk autoincr INT(10)"` Name string `json:"name" xorm:"comment('名称') VARCHAR(255)"` NameEn string `json:"name_en" xorm:"comment('品牌英文名称或是汉语拼音') VARCHAR(255)"` Http string `json:"http" xorm:"comment('品牌网站') VARCHAR(255)"` Phone string `json:"phone" xorm:"comment('客服电话') VARCHAR(255)"` Content string `json:"content" xorm:"comment('品牌介绍') TEXT"` Letter string `json:"letter" xorm:"comment('品牌首字母') VARCHAR(255)"` Sort int `json:"sort" xorm:"not null default 0 comment('品牌排序') INT(10)"` Logo string `json:"logo" xorm:"comment('品牌logo') VARCHAR(255)"` ParentId int `json:"parent_id" xorm:"not null default 0 index INT(10)"` ArrParentId string `json:"arr_parent_id" xorm:"comment('所有父栏目ID') VARCHAR(255)"` IsChild int `json:"is_child" xorm:"not null default 0 comment('是否有子栏目') TINYINT(1)"` ArrChildId string `json:"arr_child_id" xorm:"comment('所有子栏目ID') TEXT"` IsDel int `json:"is_del" xorm:"not null default 0 comment('是否删除1是0否') index TINYINT(1)"` }
type GoodsCategory ¶
type GoodsCategory struct { Id int `json:"id" xorm:"not null pk autoincr INT(10)"` Name string `json:"name" xorm:"comment('名称') VARCHAR(50)"` Description string `json:"description" xorm:"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:"comment('所有父栏目ID') VARCHAR(255)"` IsChild int `json:"is_child" xorm:"not null default 0 comment('是否有子栏目') TINYINT(1)"` ArrChildId string `json:"arr_child_id" xorm:"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"` }
type GoodsCollectPrice ¶
type GoodsCollectPrice struct { *Goods *GoodsPrice }
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 int64 `json:"price_shop" xorm:"not null default 0 comment('组合商品价格') BIGINT(20)"` 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)"` }
type GoodsContent ¶
type GoodsContent struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` SeoTitle string `json:"seo_title" xorm:"comment('seo标题') VARCHAR(50)"` SeoDescription string `json:"seo_description" xorm:"comment('seo描述') VARCHAR(200)"` SeoKeyword string `json:"seo_keyword" xorm:"comment('seo关键字') VARCHAR(50)"` Content string `json:"content" xorm:"comment('内容') TEXT"` Remark string `json:"remark" xorm:"comment('备注紧供自己查看') VARCHAR(255)"` TitleOther string `json:"title_other" xorm:"comment('其他名称') VARCHAR(5000)"` }
type GoodsPrice ¶
type GoodsPrice struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` PriceMarket int64 `json:"price_market" xorm:"not null default 0 comment('市场价') BIGINT(20)"` PriceShop int64 `json:"price_shop" xorm:"not null default 0 comment('商城价') BIGINT(20)"` IsPromote int `json:"is_promote" xorm:"not null default 0 comment('是否促销1是0否') TINYINT(1)"` PromotePrice int `json:"promote_price" xorm:"not null default 0 comment('促销价格') INT(20)"` PromoteStartDate time.Time `json:"promote_start_date" xorm:"comment('促销开始日期') TIMESTAMP"` PromoteEndDate time.Time `json:"promote_end_date" xorm:"comment('促销结束日期') TIMESTAMP"` IsFreeShipping int `json:"is_free_shipping" xorm:"not null default 0 comment('是否包邮1是0否') TINYINT(1)"` StartDate time.Time `json:"start_date" xorm:"comment('开始时间') TIMESTAMP"` EndDate time.Time `json:"end_date" xorm:"comment('结束时间') TIMESTAMP"` MinFreeShipping int `json:"min_free_shipping" xorm:"not null default 1 comment('最小包邮数量') INT(10)"` NumMax int `json:"num_max" xorm:"not null default 9999 comment('最大可一次购买数量') INT(11)"` NumLeast int `json:"num_least" xorm:"not null default 1 comment('最少购买数量') INT(11)"` IsFreeTax int `json:"is_free_tax" xorm:"not null default 0 comment('是否包税使用包税价格') TINYINT(1)"` IsGroupPrice int `json:"is_group_price" xorm:"not null default 1 comment('是否使用用户组价格') TINYINT(1)"` TaxPrice int64 `json:"tax_price" xorm:"not null default 0 comment('包税价格') BIGINT(20)"` }
type GoodsStatistics ¶
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:"comment('标志自定义标志') CHAR(32)"` Data string `json:"data" xorm:"comment('其他内容') TEXT"` No string `json:"no" xorm:"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:"comment('IP') CHAR(20)"` Msg string `json:"msg" xorm:"comment('自定义说明') VARCHAR(255)"` }
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:"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:"comment('标题') VARCHAR(255)"` Author string `json:"author" xorm:"comment('作者') VARCHAR(255)"` Url string `json:"url" xorm:"comment('网址') VARCHAR(255)"` UrlSource string `json:"url_source" xorm:"comment('来源地址(转载)') VARCHAR(255)"` UrlRewrite string `json:"url_rewrite" xorm:"comment('自定义伪静态Url') index CHAR(150)"` Description string `json:"description" xorm:"comment('摘要') VARCHAR(255)"` Content string `json:"content" xorm:"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:"comment('标签') VARCHAR(255)"` Thumb string `json:"thumb" xorm:"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:"comment('备注') VARCHAR(255)"` }
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:"comment('SEO标题') VARCHAR(255)"` SeoDescription string `json:"seo_description" xorm:"comment('SEO摘要') VARCHAR(255)"` SeoKeyword string `json:"seo_keyword" xorm:"comment('SEO关键词') VARCHAR(255)"` }
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:"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:"comment('标志') CHAR(32)"` IsSync int `json:"is_sync" xorm:"not null default 0 comment('是否同步过') TINYINT(1)"` Extend string `json:"extend" xorm:"comment('扩展参数') VARCHAR(5000)"` }
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:"comment('内容') VARCHAR(255)"` MapId int `json:"map_id" xorm:"not null default 0 comment('同步ID') INT(11)"` }
type NewsTag ¶
type NewsTag struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` Name string `json:"name" xorm:"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)"` }
type Order ¶
type Order struct { Id int `json:"id" xorm:"not null pk autoincr INT(10)"` OrderNo string `json:"order_no" xorm:"comment('销售订单号') index CHAR(32)"` OrderSn string `json:"order_sn" xorm:"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 int64 `json:"vat_fee" xorm:"not null default 0 comment('增值税费') BIGINT(20)"` SalesFee int64 `json:"sales_fee" xorm:"not null default 0 comment('消费税') BIGINT(20)"` AmountFreight int64 `json:"amount_freight" xorm:"not null default 0 comment('物流费用') BIGINT(20)"` AmountDiscount int64 `json:"amount_discount" xorm:"not null default 0 comment('折扣金额') BIGINT(20)"` AmountGoods int64 `json:"amount_goods" xorm:"not null default 0 comment('商品总金额') BIGINT(20)"` AmountOther int64 `json:"amount_other" xorm:"not null comment('其他价格费用') BIGINT(20)"` AmountTax int64 `json:"amount_tax" xorm:"not null default 0 comment('税费') BIGINT(20)"` AmountOrder int64 `json:"amount_order" xorm:"not null default 0 comment('订单总额') BIGINT(20)"` AmountPayment int64 `json:"amount_payment" xorm:"not null default 0 comment('支付总额,已付款金额(实际付款金额)') BIGINT(20)"` 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:"comment('备注用户自己看') VARCHAR(255)"` RemarkAdmin string `json:"remark_admin" xorm:"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:"comment('订单完成时间(整个订单完成,交易完成)') TIMESTAMP"` TimeCheckAdmin time.Time `json:"time_check_admin" xorm:"comment('客服审核时间') TIMESTAMP"` TimeCheck time.Time `json:"time_check" xorm:"comment('审核时间,海关审核时间') TIMESTAMP"` TimeReceipt time.Time `json:"time_receipt" xorm:"comment('收货时间') TIMESTAMP"` Declare int `` /* 231-byte string literal not displayed */ DeclareMsg string `json:"declare_msg" xorm:"comment('申报信息') VARCHAR(200)"` DeclareTime time.Time `json:"declare_time" xorm:"comment('申报时间') TIMESTAMP"` IsSendTime time.Time `json:"is_send_time" xorm:"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:"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:"comment('客户购买时间') TIMESTAMP"` PayId int `json:"pay_id" xorm:"not null default 0 comment('支付ID') INT(11)"` PayNo string `json:"pay_no" xorm:"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:"comment('系统支付时间') DATETIME"` ExchangeRate int64 `json:"exchange_rate" xorm:"not null default 0 comment('汇率') BIGINT(20)"` CurrencyMark string `json:"currency_mark" xorm:"comment('币制') CHAR(3)"` GetId int `json:"get_id" xorm:"not null default 0 comment('优惠券') INT(11)"` UseWallet int64 `json:"use_wallet" xorm:"not null default 0 comment('使用钱包') BIGINT(20)"` UseCredit int64 `json:"use_credit" xorm:"not null default 0 comment('使用积分') BIGINT(20)"` }
type OrderCollectDate ¶
type OrderCollectDate struct { Order *Order OrderExt *OrderExt OrderConsignee *OrderConsignee OrderGoods []*OrderGoods OrderGoodsStructure []*OrderGoodsStructure }
func NewOrderCollectDate ¶
func NewOrderCollectDate() *OrderCollectDate
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:"comment('收货人') VARCHAR(50)"` Mobile string `json:"mobile" xorm:"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:"comment('地址') VARCHAR(255)"` AddressEn string `json:"address_en" xorm:"comment('地址(英文)') VARCHAR(255)"` IdCard string `json:"id_card" xorm:"comment('身份证号') CHAR(19)"` IdCardFront string `json:"id_card_front" xorm:"comment('身份证正面') VARCHAR(255)"` IdCardBack string `json:"id_card_back" xorm:"comment('身份证反面') VARCHAR(255)"` ProvinceName string `json:"province_name" xorm:"comment('省') CHAR(30)"` CityName string `json:"city_name" xorm:"comment('市') CHAR(50)"` DistrictName string `json:"district_name" xorm:"comment('区') CHAR(50)"` AddressAll string `json:"address_all" xorm:"comment('地址') VARCHAR(255)"` }
type OrderExt ¶
type OrderExt struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` CostAmountPayment int64 `json:"cost_amount_payment" xorm:"not null default 0 comment('支付金额成本') BIGINT(20)"` CostAmountGoods int64 `json:"cost_amount_goods" xorm:"not null default 0 comment('商品金额成本') BIGINT(20)"` DeclareTax int `json:"declare_tax" xorm:"not null default 0 comment('申报税') INT(11)"` DeclareVatFee int `json:"declare_vat_fee" xorm:"not null default 0 comment('申报增值税') INT(11)"` DeclareSalesFee int `json:"declare_sales_fee" xorm:"not null default 0 comment('申报消费税') INT(11)"` DeclareAmountFreight int `json:"declare_amount_freight" xorm:"not null default 0 comment('申报运费') INT(11)"` DeclareAmountPayment int `json:"declare_amount_payment" xorm:"not null default 0 comment('申报运费') INT(11)"` 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 int64 `json:"order_amount_declare" xorm:"not null default 0 comment('订单总金额') BIGINT(20)"` PaymentAmountDeclare int64 `json:"payment_amount_declare" xorm:"not null default 0 comment('支付总金额') BIGINT(20)"` GoodsAmountDeclare int64 `json:"goods_amount_declare" xorm:"not null default 0 comment('商品小计') BIGINT(20)"` 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:"comment('账单地址(英文)') VARCHAR(255)"` BillingZipCode string `json:"billing_zip_code" xorm:"comment('账单邮编') VARCHAR(10)"` BillingTaxNo string `json:"billing_tax_no" xorm:"comment('税号') VARCHAR(255)"` PackingId int `json:"packing_id" xorm:"default 0 comment('包装ID') INT(10)"` }
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)"` 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:"comment('商品名称') VARCHAR(200)"` Num int `json:"num" xorm:"not null default 0 comment('数量') INT(10)"` Number string `json:"number" xorm:"comment('商品编号') CHAR(100)"` Price int64 `json:"price" xorm:"not null default 0 comment('单价') BIGINT(20)"` 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 int64 `json:"amount" xorm:"not null default 0 comment('合计总价') BIGINT(20)"` Freight int `json:"freight" xorm:"not null default 0 comment('运费') INT(11)"` 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 int64 `json:"sales_fee" xorm:"not null default 0 comment('消费税费') BIGINT(20)"` VatFee int64 `json:"vat_fee" xorm:"not null default 0 comment('增值税费') BIGINT(20)"` PriceTax int64 `json:"price_tax" xorm:"not null default 0 comment('总税费') BIGINT(20)"` Remark string `json:"remark" xorm:"comment('备注') TEXT"` PriceShop int64 `json:"price_shop" xorm:"not null default 0 comment('商城价') BIGINT(20)"` CostPrice int64 `json:"cost_price" xorm:"not null default 0 comment('成本单价') BIGINT(20)"` CostAmount int64 `json:"cost_amount" xorm:"not null default 0 comment('成本金额') BIGINT(20)"` MarkId int `json:"mark_id" xorm:"not null default 0 comment('商品标志ID') INT(11)"` }
type OrderGoodsData ¶
type OrderGoodsData struct { *Goods *GoodsPrice Num int // 数量 Price int64 // 价格 }
订单商品数据集合
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)"` 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:"comment('商品名称') VARCHAR(200)"` Num int `json:"num" xorm:"not null default 0 comment('数量') INT(10)"` Number string `json:"number" xorm:"comment('商品编号') CHAR(100)"` Price int64 `json:"price" xorm:"not null default 0 comment('单价') BIGINT(20)"` 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 int64 `json:"amount" xorm:"not null default 0 comment('合计总价') BIGINT(20)"` Freight int64 `json:"freight" xorm:"not null default 0 comment('运费') BIGINT(20)"` 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 int64 `json:"sales_fee" xorm:"not null default 0 comment('消费税费') BIGINT(11)"` VatFee int64 `json:"vat_fee" xorm:"not null default 0 comment('增值税费') BIGINT(10)"` PriceTax int64 `json:"price_tax" xorm:"not null default 0 comment('总税费') BIGINT(10)"` Remark string `json:"remark" xorm:"comment('备注') TEXT"` PriceShop int64 `json:"price_shop" xorm:"default 0 comment('商城价') BIGINT(12)"` CostPrice int64 `json:"cost_price" xorm:"not null default 0 comment('成本单价') BIGINT(11)"` CostAmount int64 `json:"cost_amount" xorm:"not null default 0 comment('成本金额') BIGINT(20)"` ParentId int `json:"parent_id" xorm:"not null default 0 comment('所属组合商品ID') INT(11)"` }
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:"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:"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"` }
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:"comment('商品编号') CHAR(100)"` Barcode string `json:"barcode" xorm:"comment('条形码') CHAR(32)"` Title string `json:"title" xorm:"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:"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"` }
type Tag ¶
type Template ¶
type Template struct { Id int `json:"id" xorm:"not null pk autoincr comment('模板ID') INT(11)"` Name string `json:"name" xorm:"comment('模板名称(中文)') VARCHAR(80)"` Mark string `json:"mark" xorm:"comment('模板名称标志(英文)(调用时使用)') VARCHAR(80)"` Title string `json:"title" xorm:"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:"TEXT"` Remark string `json:"remark" xorm:"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)"` }
type Type ¶
type Type struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` Name string `json:"name" xorm:"comment('名称') CHAR(100)"` NameEn string `json:"name_en" xorm:"comment('名称') CHAR(100)"` Code string `json:"code" xorm:"comment('代码') CHAR(32)"` Mark string `json:"mark" xorm:"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:"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:"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:"comment('模块') CHAR(50)"` Setting string `json:"setting" xorm:"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)"` }
type User ¶
type User struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` Mobile string `json:"mobile" xorm:"index CHAR(11)"` Username string `json:"username" xorm:"comment('用户名') index CHAR(30)"` Mail string `json:"mail" xorm:"comment('邮箱') index CHAR(32)"` Password string `json:"password" xorm:"comment('密码') CHAR(32)"` Salt string `json:"salt" xorm:"comment('干扰码') CHAR(6)"` RegIp string `json:"reg_ip" xorm:"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:"comment('真实姓名') VARCHAR(32)"` Name string `json:"name" xorm:"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"` }
type UserGroup ¶
type UserGroup struct { Id int `json:"id" xorm:"not null pk autoincr comment('会员用户组ID') INT(10)"` Name string `json:"name" xorm:"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:"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:"comment('标志') CHAR(15)"` Qq string `json:"qq" xorm:"comment('客服') VARCHAR(15)"` }
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:"comment('担任职务') VARCHAR(50)"` Qq string `json:"qq" xorm:"VARCHAR(20)"` Phone string `json:"phone" xorm:"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:"comment('地址') VARCHAR(255)"` Wechat string `json:"wechat" xorm:"comment('微信') VARCHAR(20)"` RemarkAdmin string `json:"remark_admin" xorm:"comment('客服备注') TEXT"` }
type UserStatus ¶
type UserStatus struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` RegIp string `json:"reg_ip" xorm:"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:"comment('最后登录IP') CHAR(15)"` LastLoginTime time.Time `json:"last_login_time" xorm:"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)"` }
Source Files ¶
- admin.go
- admin_menu.go
- admin_role_access.go
- admin_role_priv.go
- admin_status.go
- app.go
- area.go
- area_ext.go
- attachment.go
- cart.go
- casbin_rule.go
- connect.go
- goods.go
- goods_brand.go
- goods_category.go
- goods_collect_price.go
- goods_combined.go
- goods_content.go
- goods_price.go
- goods_statistics.go
- log.go
- news.go
- news_statistics.go
- news_sync_mapping.go
- news_sync_queue.go
- news_tag.go
- order.go
- order_collect_data.go
- order_consignee.go
- order_ext.go
- order_goods.go
- order_goods_data.go
- order_goods_structure.go
- session.go
- stock.go
- tag.go
- template.go
- type.go
- user.go
- user_group.go
- user_profile.go
- user_status.go
Click to show internal directories.
Click to hide internal directories.