修复gorm的默认值
This commit is contained in:
parent
de4ef54384
commit
2399c2deeb
42
model/gmodel/fs_address_gen.go
Executable file → Normal file
42
model/gmodel/fs_address_gen.go
Executable file → Normal file
|
@ -1,28 +1,26 @@
|
|||
package gmodel
|
||||
|
||||
import "gorm.io/gorm"
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_address 用户地址表
|
||||
type FsAddress struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"`
|
||||
UserId *int64 `gorm:"default:0" json:"user_id"` // 用户ID
|
||||
Name *string `gorm:"default:''" json:"name"` // 地址名称
|
||||
FirstName *string `gorm:"default:''" json:"first_name"` // FirstName
|
||||
LastName *string `gorm:"default:''" json:"last_name"` // LastName
|
||||
Mobile *string `gorm:"default:''" json:"mobile"` // 手机号码
|
||||
Street *string `gorm:"default:''" json:"street"` // 街道
|
||||
Suite *string `gorm:"default:''" json:"suite"` // 房号
|
||||
City *string `gorm:"default:''" json:"city"` // 城市
|
||||
State *string `gorm:"default:''" json:"state"` // 州名
|
||||
Country *string `gorm:"default:''" json:"country"` // 国家
|
||||
ZipCode *string `gorm:"default:''" json:"zip_code"` // 邮编
|
||||
Status *int64 `gorm:"default:1" json:"status"` // 1正常 0异常
|
||||
IsDefault *int64 `gorm:"default:0" json:"is_default"` // 1默认地址,0非默认地址
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
UserId *uint64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
|
||||
Name *string `gorm:"default:'';" json:"name"` // 地址名称
|
||||
FirstName *string `gorm:"default:'';" json:"first_name"` // FirstName
|
||||
LastName *string `gorm:"default:'';" json:"last_name"` // LastName
|
||||
Mobile *string `gorm:"default:'';" json:"mobile"` // 手机号码
|
||||
Street *string `gorm:"default:'';" json:"street"` // 街道
|
||||
Suite *string `gorm:"default:'';" json:"suite"` // 房号
|
||||
City *string `gorm:"default:'';" json:"city"` // 城市
|
||||
State *string `gorm:"default:'';" json:"state"` // 州名
|
||||
Country *string `gorm:"default:'';" json:"country"` // 国家
|
||||
ZipCode *string `gorm:"default:'';" json:"zip_code"` // 邮编
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 1正常 0异常
|
||||
IsDefault *int64 `gorm:"default:0;" json:"is_default"` // 1默认地址,0非默认地址
|
||||
}
|
||||
type FsAddressModel struct{ db *gorm.DB }
|
||||
|
||||
type FsAddressModel struct {
|
||||
db *gorm.DB
|
||||
}
|
||||
|
||||
func NewFsAddressModel(db *gorm.DB) *FsAddressModel {
|
||||
return &FsAddressModel{db}
|
||||
}
|
||||
func NewFsAddressModel(db *gorm.DB) *FsAddressModel { return &FsAddressModel{db} }
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
type FsAuthAssignment struct {
|
||||
ItemName *string `gorm:"index;default:'';" json:"item_name"` // 角色或权限名称
|
||||
UserId *string `gorm:"index;default:'';" json:"user_id"` // 用户ID
|
||||
CreatedAt *int64 `gorm:"default:'0';" json:"created_at"` // 创建时间
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
||||
// FsAuthAssignmentIbfk1 foreign `gorm:"" json:"fs_auth_assignment_ibfk_1"`//
|
||||
}
|
||||
type FsAuthAssignmentModel struct{ db *gorm.DB }
|
||||
|
|
|
@ -7,12 +7,12 @@ import (
|
|||
// fs_auth_item 用户角色和权限信息
|
||||
type FsAuthItem struct {
|
||||
Name string `gorm:"primary_key;default:'';" json:"name"` // 角色或权限名称
|
||||
Type *int64 `gorm:"index;default:'0';" json:"type"` // 权限类型:1 表示角色,2 表示权限
|
||||
Type *int64 `gorm:"index;default:0;" json:"type"` // 权限类型:1 表示角色,2 表示权限
|
||||
Description *string `gorm:"default:'';" json:"description"` // 角色或权限描述
|
||||
RuleName *string `gorm:"index;default:'';" json:"rule_name"` //
|
||||
Data *[]byte `gorm:"default:'';" json:"data"` // 角色或权限的额外数据
|
||||
CreatedAt *int64 `gorm:"default:'0';" json:"created_at"` //
|
||||
UpdatedAt *int64 `gorm:"default:'0';" json:"updated_at"` //
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` //
|
||||
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` //
|
||||
// FsAuthItemIbfk1 foreign `gorm:"" json:"fs_auth_item_ibfk_1"`//
|
||||
}
|
||||
type FsAuthItemModel struct{ db *gorm.DB }
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
type FsAuthRule struct {
|
||||
Name string `gorm:"primary_key;default:'';" json:"name"` // 规则名称
|
||||
Data *[]byte `gorm:"default:'';" json:"data"` // 规则的额外数据
|
||||
CreatedAt *int64 `gorm:"default:'0';" json:"created_at"` //
|
||||
UpdatedAt *int64 `gorm:"default:'0';" json:"updated_at"` //
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` //
|
||||
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` //
|
||||
}
|
||||
type FsAuthRuleModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
26
model/gmodel/fs_canteen_product_gen.go
Executable file → Normal file
26
model/gmodel/fs_canteen_product_gen.go
Executable file → Normal file
|
@ -4,21 +4,17 @@ import (
|
|||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_canteen_product 餐厅类别产品对应表
|
||||
type FsCanteenProduct struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"` // ID
|
||||
CanteenType *int64 `gorm:"default:0" json:"canteen_type"` // 餐厅类别id
|
||||
ProductId *int64 `gorm:"default:0" json:"product_id"` // 产品id
|
||||
SizeId *int64 `gorm:"default:0" json:"size_id"` // 尺寸id
|
||||
Sort *int64 `gorm:"default:0" json:"sort"` // 排序
|
||||
Status *int64 `gorm:"default:1" json:"status"` // 状态位 1启用0停用
|
||||
Ctime *int64 `gorm:"default:0" json:"ctime"` // 添加时间
|
||||
Sid *string `gorm:"default:''" json:"sid"` // 前端带入的id
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
CanteenType *int64 `gorm:"index;default:0;" json:"canteen_type"` // 餐厅类别id
|
||||
ProductId *int64 `gorm:"default:0;" json:"product_id"` // 产品id
|
||||
SizeId *int64 `gorm:"default:0;" json:"size_id"` // 尺寸id
|
||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 1启用0停用
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Sid *string `gorm:"default:'';" json:"sid"` // 前端带入的id
|
||||
}
|
||||
type FsCanteenProductModel struct{ db *gorm.DB }
|
||||
|
||||
type FsCanteenProductModel struct {
|
||||
db *gorm.DB
|
||||
}
|
||||
|
||||
func NewFsCanteenProductModel(db *gorm.DB) *FsCanteenProductModel {
|
||||
return &FsCanteenProductModel{db}
|
||||
}
|
||||
func NewFsCanteenProductModel(db *gorm.DB) *FsCanteenProductModel { return &FsCanteenProductModel{db} }
|
||||
|
|
|
@ -4,14 +4,14 @@ import (
|
|||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_canteen_type 餐厅类型表
|
||||
type FsCanteenType struct {
|
||||
Id int64 `gorm:"primary_key;" json:"id"` // ID
|
||||
Name *string `gorm:"default:''" json:"name"` // 餐厅名字
|
||||
Sort *int64 `gorm:"default:0" json:"sort"` // 排序
|
||||
Status *int64 `gorm:"default:0" json:"status"` // 状态位 1启用0停用
|
||||
Ctime *int64 `gorm:"default:0" json:"ctime"` // 添加时间
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
Name *string `gorm:"default:'';" json:"name"` // 餐厅名字
|
||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 1启用0停用
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
|
||||
type FsCanteenTypeModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsCanteenTypeModel(db *gorm.DB) *FsCanteenTypeModel { return &FsCanteenTypeModel{db} }
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
|
||||
// fs_card 卡号表
|
||||
type FsCard struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // Id
|
||||
CardNo *string `gorm:"default:'';" json:"card_no"` // 卡号
|
||||
GroupId *int64 `gorm:"default:'0';" json:"group_id"` // 分组id
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 创建时间
|
||||
CardNum *string `gorm:"default:'';" json:"card_num"` // 卡号 无空格
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // Id
|
||||
CardNo *string `gorm:"default:'';" json:"card_no"` // 卡号
|
||||
GroupId *int64 `gorm:"default:0;" json:"group_id"` // 分组id
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||
CardNum *string `gorm:"default:'';" json:"card_num"` // 卡号 无空格
|
||||
}
|
||||
type FsCardModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
|
||||
// fs_card_group 卡号分组表
|
||||
type FsCardGroup struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||||
GroupName *string `gorm:"default:'';" json:"group_name"` // 分组名字
|
||||
PreNo *string `gorm:"default:'';" json:"pre_no"` // 规则前几位数
|
||||
Num *int64 `gorm:"default:'0';" json:"num"` // 生成数量
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` //
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
GroupName *string `gorm:"default:'';" json:"group_name"` // 分组名字
|
||||
PreNo *string `gorm:"default:'';" json:"pre_no"` // 规则前几位数
|
||||
Num *int64 `gorm:"default:0;" json:"num"` // 生成数量
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
}
|
||||
type FsCardGroupModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
43
model/gmodel/fs_cart_gen.go
Executable file → Normal file
43
model/gmodel/fs_cart_gen.go
Executable file → Normal file
|
@ -1,5 +1,3 @@
|
|||
// Code generated by goctl. DO NOT EDIT.
|
||||
|
||||
package gmodel
|
||||
|
||||
import (
|
||||
|
@ -7,28 +5,25 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
// fs_cart 购物车
|
||||
type FsCart struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"` // id
|
||||
UserId *int64 `gorm:"default:0" json:"user_id"` // 用户ID
|
||||
ProductId *int64 `gorm:"default:0" json:"product_id"` // 产品ID
|
||||
TemplateId *int64 `gorm:"default:0" json:"template_id"` // 模板ID
|
||||
PriceId *int64 `gorm:"default:0" json:"price_id"` // 价格ID
|
||||
MaterialId *int64 `gorm:"default:0" json:"material_id"` // 材质ID
|
||||
SizeId *int64 `gorm:"default:0" json:"size_id"` // 尺寸ID
|
||||
BuyNum *int64 `gorm:"default:0" json:"buy_num"` // 购买数量
|
||||
Cover *string `gorm:"default:''" json:"cover"` // 截图
|
||||
DesignId *int64 `gorm:"default:0" json:"design_id"` // 设计ID
|
||||
Ctime *int64 `gorm:"default:0" json:"ctime"` // 添加时间
|
||||
Status *int64 `gorm:"default:1" json:"status"` // 状态位
|
||||
OptionalId *int64 `gorm:"default:0" json:"optional_id"` // 选项ID
|
||||
IsCheck *int64 `gorm:"default:0" json:"is_check"` // 是否选中状态(0:未选中,1:选中)
|
||||
TsTime *time.Time `gorm:"-" json:"ts_time"`
|
||||
IsEmail *int64 `gorm:"default:0" json:"is_email"` // 是否发送邮件
|
||||
}
|
||||
type FsCartModel struct {
|
||||
db *gorm.DB
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
UserId *uint64 `gorm:"index;default:0;" json:"user_id"` //
|
||||
ProductId *uint64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
TemplateId *uint64 `gorm:"index;default:0;" json:"template_id"` // 模板ID
|
||||
PriceId *uint64 `gorm:"index;default:0;" json:"price_id"` // 价格ID
|
||||
MaterialId *uint64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
||||
SizeId *uint64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
||||
BuyNum *uint64 `gorm:"default:0;" json:"buy_num"` // 购买数量
|
||||
Cover *string `gorm:"default:'';" json:"cover"` // 截图
|
||||
DesignId *uint64 `gorm:"index;default:0;" json:"design_id"` // 设计ID
|
||||
Ctime *uint64 `gorm:"default:0;" json:"ctime"` //
|
||||
Status *uint64 `gorm:"default:0;" json:"status"` // 状态位
|
||||
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
||||
IsCheck *int64 `gorm:"default:0;" json:"is_check"` // 是否选中状态(0:未选中,1:选中)
|
||||
TsTime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ts_time"` //
|
||||
IsEmail *int64 `gorm:"default:0;" json:"is_email"` // 是否发送邮件
|
||||
}
|
||||
type FsCartModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsCartModel(db *gorm.DB) *FsCartModel {
|
||||
return &FsCartModel{db}
|
||||
}
|
||||
func NewFsCartModel(db *gorm.DB) *FsCartModel { return &FsCartModel{db} }
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
|
||||
// fs_change_code 忘记密码code表
|
||||
type FsChangeCode struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||||
Email *string `gorm:"default:'';" json:"email"` //
|
||||
Code *string `gorm:"default:'';" json:"code"` //
|
||||
CreatedAt *int64 `gorm:"default:'0';" json:"created_at"` // 创建时间
|
||||
IsUse *int64 `gorm:"default:'0';" json:"is_use"` // 是否使用 1已使用 0未使用
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
Email *string `gorm:"default:'';" json:"email"` //
|
||||
Code *string `gorm:"default:'';" json:"code"` //
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
||||
IsUse *int64 `gorm:"default:0;" json:"is_use"` // 是否使用 1已使用 0未使用
|
||||
}
|
||||
type FsChangeCodeModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,12 +6,12 @@ import (
|
|||
|
||||
// fs_cloud_deliver_every_tmp
|
||||
type FsCloudDeliverEveryTmp struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
AdminId *int64 `gorm:"default:'0';" json:"admin_id"` // 管理员
|
||||
CloudId *int64 `gorm:"default:'0';" json:"cloud_id"` // 云仓ID 暂且只有一个默认为 1
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
AdminId *int64 `gorm:"default:0;" json:"admin_id"` // 管理员
|
||||
CloudId *int64 `gorm:"default:0;" json:"cloud_id"` // 云仓ID 暂且只有一个默认为 1
|
||||
OrderDetailTemplateSn *string `gorm:"default:'';" json:"order_detail_template_sn"` // 详情modelSn
|
||||
Num *int64 `gorm:"default:'0';" json:"num"` // 发货数量
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Num *int64 `gorm:"default:0;" json:"num"` // 发货数量
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsCloudDeliverEveryTmpModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,17 +6,17 @@ import (
|
|||
|
||||
// fs_cloud_deliver_tmp
|
||||
type FsCloudDeliverTmp struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||||
CloudId *int64 `gorm:"default:'0';" json:"cloud_id"` // 云仓id
|
||||
UserId *int64 `gorm:"default:'0';" json:"user_id"` // 用户id
|
||||
AdminId *int64 `gorm:"default:'0';" json:"admin_id"` // 操作员id
|
||||
DeliveryType *int64 `gorm:"default:'1';" json:"delivery_type"` // 发货公司 之后配置,默认1
|
||||
Fee *int64 `gorm:"default:'0';" json:"fee"` // 价格
|
||||
AddressId *int64 `gorm:"default:'0';" json:"address_id"` // 地址
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 创建时间
|
||||
IsDeliver *int64 `gorm:"default:'0';" json:"is_deliver"` // 0未发货,1已发货
|
||||
IsEnd *int64 `gorm:"default:'0';" json:"is_end"` // 0未完成,1已完成
|
||||
DeliverId *int64 `gorm:"default:'0';" json:"deliver_id"` // 发货总表id
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
CloudId *int64 `gorm:"default:0;" json:"cloud_id"` // 云仓id
|
||||
UserId *int64 `gorm:"default:0;" json:"user_id"` // 用户id
|
||||
AdminId *int64 `gorm:"default:0;" json:"admin_id"` // 操作员id
|
||||
DeliveryType *int64 `gorm:"default:1;" json:"delivery_type"` // 发货公司 之后配置,默认1
|
||||
Fee *int64 `gorm:"default:0;" json:"fee"` // 价格
|
||||
AddressId *int64 `gorm:"default:0;" json:"address_id"` // 地址
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||
IsDeliver *int64 `gorm:"default:0;" json:"is_deliver"` // 0未发货,1已发货
|
||||
IsEnd *int64 `gorm:"default:0;" json:"is_end"` // 0未完成,1已完成
|
||||
DeliverId *int64 `gorm:"default:0;" json:"deliver_id"` // 发货总表id
|
||||
}
|
||||
type FsCloudDeliverTmpModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
|
||||
// fs_cloud 云仓表
|
||||
type FsCloud struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||||
Address *string `gorm:"default:'';" json:"address"` // 云仓地址
|
||||
Title *string `gorm:"default:'';" json:"title"` // 云仓名称
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
Address *string `gorm:"default:'';" json:"address"` // 云仓地址
|
||||
Title *string `gorm:"default:'';" json:"title"` // 云仓名称
|
||||
}
|
||||
type FsCloudModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,12 +6,12 @@ import (
|
|||
|
||||
// fs_cloud_pick_up_detail 云仓提货单-详情
|
||||
type FsCloudPickUpDetail struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` // Id
|
||||
PickId *int64 `gorm:"index;default:'0';" json:"pick_id"` // 提货单id
|
||||
StockId *int64 `gorm:"default:'0';" json:"stock_id"` // 用户云仓记录id
|
||||
Num *int64 `gorm:"default:'0';" json:"num"` // 提取数量
|
||||
Boxes *int64 `gorm:"default:'0';" json:"boxes"` // 提取箱数
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // Id
|
||||
PickId *int64 `gorm:"index;default:0;" json:"pick_id"` // 提货单id
|
||||
StockId *int64 `gorm:"default:0;" json:"stock_id"` // 用户云仓记录id
|
||||
Num *int64 `gorm:"default:0;" json:"num"` // 提取数量
|
||||
Boxes *int64 `gorm:"default:0;" json:"boxes"` // 提取箱数
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsCloudPickUpDetailModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,17 +6,17 @@ import (
|
|||
|
||||
// fs_cloud_pick_up 云仓提货单
|
||||
type FsCloudPickUp struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` // Id
|
||||
UserId *int64 `gorm:"index;default:'0';" json:"user_id"` // 用户id
|
||||
TrackNum *string `gorm:"default:'';" json:"track_num"` // 运输号
|
||||
AddressId *int64 `gorm:"default:'0';" json:"address_id"` // 地址id
|
||||
AddressInfo *string `gorm:"default:'';" json:"address_info"` // 地址信息 json
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 运输状态 1 draw 2shipping 3ups 4arrival
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
ShippingTime *int64 `gorm:"default:'0';" json:"shipping_time"` // 发货时间
|
||||
UpsTime *int64 `gorm:"default:'0';" json:"ups_time"` // 提货时间
|
||||
ArrivalTime *int64 `gorm:"default:'0';" json:"arrival_time"` // 到达时间
|
||||
UpsSn *string `gorm:"default:'';" json:"ups_sn"` // 运输单号
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // Id
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户id
|
||||
TrackNum *string `gorm:"default:'';" json:"track_num"` // 运输号
|
||||
AddressId *int64 `gorm:"default:0;" json:"address_id"` // 地址id
|
||||
AddressInfo *string `gorm:"default:'';" json:"address_info"` // 地址信息 json
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 运输状态 1 draw 2shipping 3ups 4arrival
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
ShippingTime *int64 `gorm:"default:0;" json:"shipping_time"` // 发货时间
|
||||
UpsTime *int64 `gorm:"default:0;" json:"ups_time"` // 提货时间
|
||||
ArrivalTime *int64 `gorm:"default:0;" json:"arrival_time"` // 到达时间
|
||||
UpsSn *string `gorm:"default:'';" json:"ups_sn"` // 运输单号
|
||||
}
|
||||
type FsCloudPickUpModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
|
||||
// fs_cloud_receive_every
|
||||
type FsCloudReceiveEvery struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
DeliveryId *int64 `gorm:"index;default:'0';" json:"delivery_id"` // 云仓收货单id
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
DeliveryId *int64 `gorm:"index;default:0;" json:"delivery_id"` // 云仓收货单id
|
||||
OrderDetailTemplateSn *string `gorm:"index;default:'';" json:"order_detail_template_sn"` // 详情modelSn
|
||||
Num *int64 `gorm:"default:'0';" json:"num"` // 收到的数量
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Num *int64 `gorm:"default:0;" json:"num"` // 收到的数量
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsCloudReceiveEveryModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,15 +6,15 @@ import (
|
|||
|
||||
// fs_cloud_receive 云仓接收工厂总单
|
||||
type FsCloudReceive struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
CloudId *int64 `gorm:"index;default:'0';" json:"cloud_id"` // 入库云仓id
|
||||
AdminId *int64 `gorm:"index;default:'0';" json:"admin_id"` // 操作员id
|
||||
UserId *int64 `gorm:"index;default:'0';" json:"user_id"` // 用户id
|
||||
OrderId *int64 `gorm:"index;default:'0';" json:"order_id"` // 入库云仓的订单
|
||||
Fee *int64 `gorm:"default:'0';" json:"fee"` // 运费
|
||||
Delivery *string `gorm:"default:'';" json:"delivery"` // 运单号
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 创建时间
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 0未收到 1收到
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
CloudId *int64 `gorm:"index;default:0;" json:"cloud_id"` // 入库云仓id
|
||||
AdminId *int64 `gorm:"index;default:0;" json:"admin_id"` // 操作员id
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户id
|
||||
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 入库云仓的订单
|
||||
Fee *int64 `gorm:"default:0;" json:"fee"` // 运费
|
||||
Delivery *string `gorm:"default:'';" json:"delivery"` // 运单号
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 0未收到 1收到
|
||||
}
|
||||
type FsCloudReceiveModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,15 +6,15 @@ import (
|
|||
|
||||
// fs_cloud_render_log 云渲染日志表
|
||||
type FsCloudRenderLog struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // ID
|
||||
UserId *int64 `gorm:"default:'0';" json:"user_id"` // 用户id
|
||||
PostData *string `gorm:"default:'';" json:"post_data"` //
|
||||
PostUrl *string `gorm:"default:'';" json:"post_url"` //
|
||||
Title *string `gorm:"index;default:'';" json:"title"` //
|
||||
Time *int64 `gorm:"default:'0';" json:"time"` // 所用时间
|
||||
Result *string `gorm:"default:'';" json:"result"` // 返回结果
|
||||
Tag *string `gorm:"index;default:'';" json:"tag"` // 标识
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
UserId *int64 `gorm:"default:0;" json:"user_id"` // 用户id
|
||||
PostData *string `gorm:"default:'';" json:"post_data"` //
|
||||
PostUrl *string `gorm:"default:'';" json:"post_url"` //
|
||||
Title *string `gorm:"index;default:'';" json:"title"` //
|
||||
Time *int64 `gorm:"default:0;" json:"time"` // 所用时间
|
||||
Result *string `gorm:"default:'';" json:"result"` // 返回结果
|
||||
Tag *string `gorm:"index;default:'';" json:"tag"` // 标识
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsCloudRenderLogModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,14 +6,14 @@ import (
|
|||
|
||||
// fs_cloud_user_apply_back 该表废弃
|
||||
type FsCloudUserApplyBack struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
UserHash *string `gorm:"default:'';" json:"user_hash"` //
|
||||
OrderDetailTemplateId *int64 `gorm:"default:'0';" json:"order_detail_template_id"` // 详情modelID
|
||||
Num *int64 `gorm:"default:'0';" json:"num"` // 发货数量
|
||||
AddressTo *string `gorm:"default:'';" json:"address_to"` // 收获地址
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
StorageFee *int64 `gorm:"default:'0';" json:"storage_fee"` // 存储费用
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态位 是否已发货 是否处理 是否删除 是否推送
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
UserHash *string `gorm:"default:'';" json:"user_hash"` //
|
||||
OrderDetailTemplateId *int64 `gorm:"default:0;" json:"order_detail_template_id"` // 详情modelID
|
||||
Num *int64 `gorm:"default:0;" json:"num"` // 发货数量
|
||||
AddressTo *string `gorm:"default:'';" json:"address_to"` // 收获地址
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
StorageFee *int64 `gorm:"default:0;" json:"storage_fee"` // 存储费用
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否已发货 是否处理 是否删除 是否推送
|
||||
}
|
||||
type FsCloudUserApplyBackModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,14 +6,14 @@ import (
|
|||
|
||||
// fs_contact 该表暂未使用
|
||||
type FsContact struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
Name *string `gorm:"default:'';" json:"name"` // 名字
|
||||
Email *string `gorm:"index;default:'';" json:"email"` // 邮箱
|
||||
Subject *int64 `gorm:"default:'0';" json:"subject"` // 主题
|
||||
Message *string `gorm:"default:'';" json:"message"` // 消息
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` //
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` //
|
||||
Mark *string `gorm:"default:'';" json:"mark"` // 后台订单备注
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Name *string `gorm:"default:'';" json:"name"` // 名字
|
||||
Email *string `gorm:"index;default:'';" json:"email"` // 邮箱
|
||||
Subject *int64 `gorm:"default:0;" json:"subject"` // 主题
|
||||
Message *string `gorm:"default:'';" json:"message"` // 消息
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
Status *int64 `gorm:"default:0;" json:"status"` //
|
||||
Mark *string `gorm:"default:'';" json:"mark"` // 后台订单备注
|
||||
}
|
||||
type FsContactModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,19 +6,19 @@ import (
|
|||
|
||||
// fs_contact_service
|
||||
type FsContactService struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
Type *string `gorm:"default:'';" json:"type"` // 类型
|
||||
RelationId *int64 `gorm:"index;default:'0';" json:"relation_id"` // 关联id
|
||||
UserId *int64 `gorm:"index;default:'0';" json:"user_id"` // 用户id
|
||||
Name *string `gorm:"default:'';" json:"name"` // 联系人姓名
|
||||
Email *string `gorm:"index;default:'';" json:"email"` // 联系人邮箱
|
||||
Phone *string `gorm:"default:'';" json:"phone"` //
|
||||
Remark *string `gorm:"default:'';" json:"remark"` // 备注内容
|
||||
IsHandle *int64 `gorm:"default:'0';" json:"is_handle"` // 是否被处理(0:未处理,1:已处理)
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` //
|
||||
HandleRemark *string `gorm:"default:'';" json:"handle_remark"` // 处理备注
|
||||
HandleUid *int64 `gorm:"default:'0';" json:"handle_uid"` // 处理人
|
||||
HandleTime *int64 `gorm:"default:'0';" json:"handle_time"` // 处理时间
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Type *string `gorm:"default:'';" json:"type"` // 类型
|
||||
RelationId *int64 `gorm:"index;default:0;" json:"relation_id"` // 关联id
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户id
|
||||
Name *string `gorm:"default:'';" json:"name"` // 联系人姓名
|
||||
Email *string `gorm:"index;default:'';" json:"email"` // 联系人邮箱
|
||||
Phone *string `gorm:"default:'';" json:"phone"` //
|
||||
Remark *string `gorm:"default:'';" json:"remark"` // 备注内容
|
||||
IsHandle *int64 `gorm:"default:0;" json:"is_handle"` // 是否被处理(0:未处理,1:已处理)
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
HandleRemark *string `gorm:"default:'';" json:"handle_remark"` // 处理备注
|
||||
HandleUid *int64 `gorm:"default:0;" json:"handle_uid"` // 处理人
|
||||
HandleTime *int64 `gorm:"default:0;" json:"handle_time"` // 处理时间
|
||||
}
|
||||
type FsContactServiceModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,19 +6,19 @@ import (
|
|||
|
||||
// fs_coupon 代金券(暂未使用)
|
||||
type FsCoupon struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
UserId *int64 `gorm:"default:'0';" json:"user_id"` //
|
||||
Sn *string `gorm:"default:'';" json:"sn"` // 优惠券码
|
||||
Type *int64 `gorm:"default:'0';" json:"type"` // 类型 1:代金券 2:折扣券 3:满减券
|
||||
Amount *int64 `gorm:"default:'0';" json:"amount"` // 代金券金额、折扣比例、满减金额
|
||||
MinAmount *int64 `gorm:"default:'0';" json:"min_amount"` // 满足条件的最小金额 0:不限制
|
||||
MaxAmount *int64 `gorm:"default:'0';" json:"max_amount"` // 最多优惠的金额 0:不限制
|
||||
Stime *int64 `gorm:"default:'0';" json:"stime"` // 开始时间 0:立即生效
|
||||
Etime *int64 `gorm:"default:'0';" json:"etime"` // 结束时间 0:永久有效
|
||||
Exclude *int64 `gorm:"default:'2';" json:"exclude"` // 是否可以与其他优惠券同时使用 1:可以 2:不可以
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` //
|
||||
GetTime *int64 `gorm:"default:'0';" json:"get_time"` //
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态 是否可用 是否已绑定到订单
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
UserId *int64 `gorm:"default:0;" json:"user_id"` //
|
||||
Sn *string `gorm:"default:'';" json:"sn"` // 优惠券码
|
||||
Type *int64 `gorm:"default:0;" json:"type"` // 类型 1:代金券 2:折扣券 3:满减券
|
||||
Amount *int64 `gorm:"default:0;" json:"amount"` // 代金券金额、折扣比例、满减金额
|
||||
MinAmount *int64 `gorm:"default:0;" json:"min_amount"` // 满足条件的最小金额 0:不限制
|
||||
MaxAmount *int64 `gorm:"default:0;" json:"max_amount"` // 最多优惠的金额 0:不限制
|
||||
Stime *int64 `gorm:"default:0;" json:"stime"` // 开始时间 0:立即生效
|
||||
Etime *int64 `gorm:"default:0;" json:"etime"` // 结束时间 0:永久有效
|
||||
Exclude *int64 `gorm:"default:2;" json:"exclude"` // 是否可以与其他优惠券同时使用 1:可以 2:不可以
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
GetTime *int64 `gorm:"default:0;" json:"get_time"` //
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态 是否可用 是否已绑定到订单
|
||||
}
|
||||
type FsCouponModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,10 +6,10 @@ import (
|
|||
|
||||
// fs_deliver_every 发货详细表(已废弃)
|
||||
type FsDeliverEvery struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
DeliverId *int64 `gorm:"index;default:'0';" json:"deliver_id"` // 发货ID
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
DeliverId *int64 `gorm:"index;default:0;" json:"deliver_id"` // 发货ID
|
||||
OrderDetailTemplateSn *string `gorm:"index;default:'';" json:"order_detail_template_sn"` // 订单详情模板sn
|
||||
Num *int64 `gorm:"default:'0';" json:"num"` //
|
||||
Num *int64 `gorm:"default:0;" json:"num"` //
|
||||
}
|
||||
type FsDeliverEveryModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -7,24 +7,24 @@ import (
|
|||
|
||||
// fs_deliver 发货表 云仓 直发 通用(已废弃)
|
||||
type FsDeliver struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
Type *int64 `gorm:"default:'0';" json:"type"` // 1直接发货,2云仓发货
|
||||
UserId *int64 `gorm:"index;default:'0';" json:"user_id"` // 用户ID
|
||||
AdminId *int64 `gorm:"index;default:'0';" json:"admin_id"` // 操作人id
|
||||
Fee *int64 `gorm:"default:'0';" json:"fee"` // 运费价格
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Type *int64 `gorm:"default:0;" json:"type"` // 1直接发货,2云仓发货
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
|
||||
AdminId *int64 `gorm:"index;default:0;" json:"admin_id"` // 操作人id
|
||||
Fee *int64 `gorm:"default:0;" json:"fee"` // 运费价格
|
||||
Tel *string `gorm:"default:'';" json:"tel"` // 电话
|
||||
DeliveryType *int64 `gorm:"default:'0';" json:"delivery_type"` // 发货公司
|
||||
AddressId *int64 `gorm:"index;default:'0';" json:"address_id"` // 地址id
|
||||
DeliveryType *int64 `gorm:"default:0;" json:"delivery_type"` // 发货公司
|
||||
AddressId *int64 `gorm:"index;default:0;" json:"address_id"` // 地址id
|
||||
AddressInfo *string `gorm:"default:'';" json:"address_info"` // 地址信息
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` //
|
||||
OrderId *int64 `gorm:"default:'0';" json:"order_id"` // 云仓发货order_id为0
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
OrderId *int64 `gorm:"default:0;" json:"order_id"` // 云仓发货order_id为0
|
||||
WarehouseDeliverSn *string `gorm:"index;default:'';" json:"warehouse_deliver_sn"` //
|
||||
IsConfirm *int64 `gorm:"default:'0';" json:"is_confirm"` // 0未确认 1已确认
|
||||
IsDeliver *int64 `gorm:"default:'0';" json:"is_deliver"` // 0未发货 1已发货
|
||||
IsPort *int64 `gorm:"default:'0';" json:"is_port"` // 是否到达港口 0未到达 1:已到达
|
||||
IsPickUp *int64 `gorm:"default:'0';" json:"is_pick_up"` // 美国运输是否已收货 0:未提货 1:已提货
|
||||
IsEnd *int64 `gorm:"default:'0';" json:"is_end"` // 0未收货 1已签收
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态值:(0:默认未确认,1:已确认,2:已发货,3:到港口,4:运输中,5:已签收)
|
||||
IsConfirm *int64 `gorm:"default:0;" json:"is_confirm"` // 0未确认 1已确认
|
||||
IsDeliver *int64 `gorm:"default:0;" json:"is_deliver"` // 0未发货 1已发货
|
||||
IsPort *int64 `gorm:"default:0;" json:"is_port"` // 是否到达港口 0未到达 1:已到达
|
||||
IsPickUp *int64 `gorm:"default:0;" json:"is_pick_up"` // 美国运输是否已收货 0:未提货 1:已提货
|
||||
IsEnd *int64 `gorm:"default:0;" json:"is_end"` // 0未收货 1已签收
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态值:(0:默认未确认,1:已确认,2:已发货,3:到港口,4:运输中,5:已签收)
|
||||
ConfirmAt *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"confirm_at"` //
|
||||
DeliverAt *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"deliver_at"` //
|
||||
PortAt *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"port_at"` //
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
|
||||
// fs_department 部门表
|
||||
type FsDepartment struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||||
Name *string `gorm:"default:'';" json:"name"` // 部门名称
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态 1正常0停用
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
ParentId *int64 `gorm:"default:'0';" json:"parent_id"` // 父级id
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
Name *string `gorm:"default:'';" json:"name"` // 部门名称
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态 1正常0停用
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
ParentId *int64 `gorm:"default:0;" json:"parent_id"` // 父级id
|
||||
}
|
||||
type FsDepartmentModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,13 +6,13 @@ import (
|
|||
|
||||
// fs_email_logs 邮件日志表
|
||||
type FsEmailLogs struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // ID
|
||||
Type *int64 `gorm:"default:'0';" json:"type"` // 邮件分类
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 发送时间
|
||||
Email *string `gorm:"default:'';" json:"email"` // 发送邮箱
|
||||
EmailSubject *string `gorm:"default:'';" json:"email_subject"` // 发送标题
|
||||
Result *string `gorm:"default:'';" json:"result"` // 发送结果
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态 1成功0失败
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
Type *int64 `gorm:"default:0;" json:"type"` // 邮件分类
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 发送时间
|
||||
Email *string `gorm:"default:'';" json:"email"` // 发送邮箱
|
||||
EmailSubject *string `gorm:"default:'';" json:"email_subject"` // 发送标题
|
||||
Result *string `gorm:"default:'';" json:"result"` // 发送结果
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态 1成功0失败
|
||||
}
|
||||
type FsEmailLogsModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,14 +6,14 @@ import (
|
|||
|
||||
// fs_email_template 邮件模板表(暂未使用)
|
||||
type FsEmailTemplate struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
Type *int64 `gorm:"default:'0';" json:"type"` // 模板类型
|
||||
Name *string `gorm:"default:'';" json:"name"` // 模板名称
|
||||
Title *string `gorm:"default:'';" json:"title"` // 模板标题
|
||||
ReplaceFields *string `gorm:"default:'';" json:"replace_fields"` //
|
||||
Content *string `gorm:"default:'';" json:"content"` // 模板内容
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态值(0:禁用,1:启用)
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` //
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Type *int64 `gorm:"default:0;" json:"type"` // 模板类型
|
||||
Name *string `gorm:"default:'';" json:"name"` // 模板名称
|
||||
Title *string `gorm:"default:'';" json:"title"` // 模板标题
|
||||
ReplaceFields *string `gorm:"default:'';" json:"replace_fields"` //
|
||||
Content *string `gorm:"default:'';" json:"content"` // 模板内容
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态值(0:禁用,1:启用)
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
}
|
||||
type FsEmailTemplateModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
|
||||
// fs_factory_deliver_every 该表废弃
|
||||
type FsFactoryDeliverEvery struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
FactoryDeliverId *int64 `gorm:"index;default:'0';" json:"factory_deliver_id"` // 工厂发货表ID
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
FactoryDeliverId *int64 `gorm:"index;default:0;" json:"factory_deliver_id"` // 工厂发货表ID
|
||||
OrderDetailTemplateSn *string `gorm:"index;default:'';" json:"order_detail_template_sn"` // 订单产品模板sn
|
||||
Num *int64 `gorm:"default:'0';" json:"num"` // 发货数量
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Num *int64 `gorm:"default:0;" json:"num"` // 发货数量
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsFactoryDeliverEveryModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,13 +6,13 @@ import (
|
|||
|
||||
// fs_factory_deliver 工厂发货主表(废弃)
|
||||
type FsFactoryDeliver struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
Sn *string `gorm:"index;default:'';" json:"sn"` // 工厂发货编号sn
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 创建时间
|
||||
DeliveryMethod *int64 `gorm:"default:'0';" json:"delivery_method"` // 发货方式( 1:直接发货到收获地址 2:云仓)
|
||||
OrderId *int64 `gorm:"index;default:'0';" json:"order_id"` // 订单id
|
||||
IsArriveCloud *int64 `gorm:"default:'0';" json:"is_arrive_cloud"` // 是否到达云仓 0:未到达,1已到达
|
||||
IsArriveAgent *int64 `gorm:"default:'0';" json:"is_arrive_agent"` // 是否到达货代公司 0:未到达,1已到达
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Sn *string `gorm:"index;default:'';" json:"sn"` // 工厂发货编号sn
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||
DeliveryMethod *int64 `gorm:"default:0;" json:"delivery_method"` // 发货方式( 1:直接发货到收获地址 2:云仓)
|
||||
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 订单id
|
||||
IsArriveCloud *int64 `gorm:"default:0;" json:"is_arrive_cloud"` // 是否到达云仓 0:未到达,1已到达
|
||||
IsArriveAgent *int64 `gorm:"default:0;" json:"is_arrive_agent"` // 是否到达货代公司 0:未到达,1已到达
|
||||
}
|
||||
type FsFactoryDeliverModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,12 +6,12 @@ import (
|
|||
|
||||
// fs_factory 该表废弃
|
||||
type FsFactory struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
Name *string `gorm:"default:'';" json:"name"` // 名字
|
||||
Addr *string `gorm:"default:'';" json:"addr"` // 地址
|
||||
Contact *string `gorm:"default:'';" json:"contact"` // 联系人
|
||||
Mobile *string `gorm:"default:'';" json:"mobile"` // 联系电话
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态位 是否禁用
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Name *string `gorm:"default:'';" json:"name"` // 名字
|
||||
Addr *string `gorm:"default:'';" json:"addr"` // 地址
|
||||
Contact *string `gorm:"default:'';" json:"contact"` // 联系人
|
||||
Mobile *string `gorm:"default:'';" json:"mobile"` // 联系电话
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否禁用
|
||||
}
|
||||
type FsFactoryModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,15 +6,15 @@ import (
|
|||
|
||||
// fs_factory_product 工厂生产表(废弃)
|
||||
type FsFactoryProduct struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
FactoryId *int64 `gorm:"index;default:'0';" json:"factory_id"` // 工厂id
|
||||
OrderId *int64 `gorm:"index;default:'0';" json:"order_id"` // 订单id
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
FactoryId *int64 `gorm:"index;default:0;" json:"factory_id"` // 工厂id
|
||||
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 订单id
|
||||
OrderDetailTemplateSn *string `gorm:"index;default:'';" json:"order_detail_template_sn"` // 产品模板sn
|
||||
Num *int64 `gorm:"default:'0';" json:"num"` // 数量
|
||||
IsProduct *int64 `gorm:"default:'0';" json:"is_product"` // 是否开始生产( 0:未开始 ,1:已开始)
|
||||
IsEnd *int64 `gorm:"default:'0';" json:"is_end"` // 是否完成(0:未完成,1:已完成)
|
||||
IsDeliver *int64 `gorm:"default:'0';" json:"is_deliver"` // 是否已发货(0:未发货,1:已发货)
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 创建时间
|
||||
Num *int64 `gorm:"default:0;" json:"num"` // 数量
|
||||
IsProduct *int64 `gorm:"default:0;" json:"is_product"` // 是否开始生产( 0:未开始 ,1:已开始)
|
||||
IsEnd *int64 `gorm:"default:0;" json:"is_end"` // 是否完成(0:未完成,1:已完成)
|
||||
IsDeliver *int64 `gorm:"default:0;" json:"is_deliver"` // 是否已发货(0:未发货,1:已发货)
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||
}
|
||||
type FsFactoryProductModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,17 +6,17 @@ import (
|
|||
|
||||
// fs_factory_ship_tmp
|
||||
type FsFactoryShipTmp struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Sn *string `gorm:"default:'';" json:"sn"` // 运单号码
|
||||
FactoryId *int64 `gorm:"default:'0';" json:"factory_id"` // 工厂ID
|
||||
FactoryId *int64 `gorm:"default:0;" json:"factory_id"` // 工厂ID
|
||||
OrderDetailTemplateSn *string `gorm:"default:'';" json:"order_detail_template_sn"` // 详情modelSn
|
||||
UserId *int64 `gorm:"default:'0';" json:"user_id"` //
|
||||
UserId *int64 `gorm:"default:0;" json:"user_id"` //
|
||||
AddressSent *string `gorm:"default:'';" json:"address_sent"` // 发货地址
|
||||
AddressTo *string `gorm:"default:'';" json:"address_to"` // 收获地址 始终是货代公司
|
||||
Num *int64 `gorm:"default:'0';" json:"num"` // 发货数量
|
||||
Fee *int64 `gorm:"default:'0';" json:"fee"` // 运费
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态位 是否到达 是否通知货代公司 是否是发到云仓
|
||||
Num *int64 `gorm:"default:0;" json:"num"` // 发货数量
|
||||
Fee *int64 `gorm:"default:0;" json:"fee"` // 运费
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否到达 是否通知货代公司 是否是发到云仓
|
||||
}
|
||||
type FsFactoryShipTmpModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,14 +6,14 @@ import (
|
|||
|
||||
// fs_faq 常见问题
|
||||
type FsFaq struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
TagId *int64 `gorm:"default:'0';" json:"tag_id"` // 分类ID
|
||||
TagName *string `gorm:"default:'';" json:"tag_name"` // 分类名称
|
||||
Title *string `gorm:"default:'';" json:"title"` // 标题
|
||||
Content *string `gorm:"default:'';" json:"content"` // 内容
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态(0:禁用,1:启用)
|
||||
Sort *int64 `gorm:"default:'1';" json:"sort"` // 排序
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` //
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
TagId *int64 `gorm:"default:0;" json:"tag_id"` // 分类ID
|
||||
TagName *string `gorm:"default:'';" json:"tag_name"` // 分类名称
|
||||
Title *string `gorm:"default:'';" json:"title"` // 标题
|
||||
Content *string `gorm:"default:'';" json:"content"` // 内容
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态(0:禁用,1:启用)
|
||||
Sort *int64 `gorm:"default:1;" json:"sort"` // 排序
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
}
|
||||
type FsFaqModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -4,14 +4,14 @@ import (
|
|||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_font 字体配置
|
||||
type FsFont struct {
|
||||
Id int64 `gorm:"primary_key;" json:"id"` // id
|
||||
Title *string `gorm:"default:''" json:"title"` // 字体名字
|
||||
LinuxFontname *string `gorm:"default:''" json:"linux_fontname"` // linux对应字体名
|
||||
FilePath *string `gorm:"default:''" json:"file_path"` // 字体文件路径
|
||||
Sort *int64 `gorm:"default:0" json:"sort"` // 排序
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
Title *string `gorm:"default:'';" json:"title"` // 字体名字
|
||||
LinuxFontname *string `gorm:"default:'';" json:"linux_fontname"` // linux对应字体名
|
||||
FilePath *string `gorm:"default:'';" json:"file_path"` // 字体文件路径
|
||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
}
|
||||
|
||||
type FsFontModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsFontModel(db *gorm.DB) *FsFontModel { return &FsFontModel{db} }
|
||||
|
|
|
@ -6,17 +6,17 @@ import (
|
|||
|
||||
// fs_gerent 管理员表
|
||||
type FsGerent struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // ID
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
Username *string `gorm:"unique_key;default:'';" json:"username"` // 用户名
|
||||
AuthKey *string `gorm:"default:'';" json:"auth_key"` // token
|
||||
PasswordHash *string `gorm:"default:'';" json:"password_hash"` // 加密密码
|
||||
PasswordResetToken *string `gorm:"unique_key;default:'';" json:"password_reset_token"` //
|
||||
Email *string `gorm:"unique_key;default:'';" json:"email"` // 邮箱
|
||||
Status *int64 `gorm:"default:'10';" json:"status"` // 状态
|
||||
CreatedAt *int64 `gorm:"default:'0';" json:"created_at"` // 创建时间
|
||||
UpdatedAt *int64 `gorm:"default:'0';" json:"updated_at"` // 更新时间
|
||||
Status *int64 `gorm:"default:10;" json:"status"` // 状态
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
||||
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` // 更新时间
|
||||
Icon *string `gorm:"default:'';" json:"icon"` //
|
||||
DepartmentId *int64 `gorm:"default:'0';" json:"department_id"` // 部门id
|
||||
DepartmentId *int64 `gorm:"default:0;" json:"department_id"` // 部门id
|
||||
}
|
||||
type FsGerentModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,16 +6,16 @@ import (
|
|||
|
||||
// fs_guest 游客表
|
||||
type FsGuest struct {
|
||||
GuestId uint64 `gorm:"primary_key;default:'0';" json:"guest_id"` // ID
|
||||
AuthKey *string `gorm:"default:'';" json:"auth_key"` // jwt token
|
||||
Status *uint64 `gorm:"index;default:'1';" json:"status"` // 1正常 0不正常
|
||||
IsDel *int64 `gorm:"index;default:'0';" json:"is_del"` // 是否删除 1删除
|
||||
CreatedAt *int64 `gorm:"index;default:'0';" json:"created_at"` // 添加时间
|
||||
UpdatedAt *int64 `gorm:"default:'0';" json:"updated_at"` // 更新时间
|
||||
IsOpenRender *int64 `gorm:"default:'0';" json:"is_open_render"` // 是否打开个性化渲染(1:开启,0:关闭)
|
||||
IsThousandFace *int64 `gorm:"default:'0';" json:"is_thousand_face"` // 是否已经存在千人千面(1:存在,0:不存在)
|
||||
IsLowRendering *int64 `gorm:"default:'0';" json:"is_low_rendering"` // 是否开启低渲染模型渲染
|
||||
IsRemoveBg *int64 `gorm:"default:'1';" json:"is_remove_bg"` // 用户上传logo是否去除背景
|
||||
GuestId uint64 `gorm:"primary_key;default:0;" json:"guest_id"` // ID
|
||||
AuthKey *string `gorm:"default:'';" json:"auth_key"` // jwt token
|
||||
Status *uint64 `gorm:"index;default:1;" json:"status"` // 1正常 0不正常
|
||||
IsDel *int64 `gorm:"index;default:0;" json:"is_del"` // 是否删除 1删除
|
||||
CreatedAt *int64 `gorm:"index;default:0;" json:"created_at"` // 添加时间
|
||||
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` // 更新时间
|
||||
IsOpenRender *int64 `gorm:"default:0;" json:"is_open_render"` // 是否打开个性化渲染(1:开启,0:关闭)
|
||||
IsThousandFace *int64 `gorm:"default:0;" json:"is_thousand_face"` // 是否已经存在千人千面(1:存在,0:不存在)
|
||||
IsLowRendering *int64 `gorm:"default:0;" json:"is_low_rendering"` // 是否开启低渲染模型渲染
|
||||
IsRemoveBg *int64 `gorm:"default:1;" json:"is_remove_bg"` // 用户上传logo是否去除背景
|
||||
}
|
||||
type FsGuestModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,14 +6,14 @@ import (
|
|||
|
||||
// fs_log 日志表
|
||||
type FsLog struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` // ID
|
||||
Action *string `gorm:"default:'';" json:"action"` // 执行的动作
|
||||
Table *string `gorm:"default:'';" json:"table"` // 表明
|
||||
DataChanged *string `gorm:"default:'';" json:"data_changed"` // 修改后的数据
|
||||
DataOld *string `gorm:"default:'';" json:"data_old"` // 变动的数据
|
||||
Ctime *uint64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Uid *uint64 `gorm:"default:'0';" json:"uid"` // 操作人ID
|
||||
Uname *string `gorm:"default:'';" json:"uname"` // 操作人名字
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
Action *string `gorm:"default:'';" json:"action"` // 执行的动作
|
||||
Table *string `gorm:"default:'';" json:"table"` // 表明
|
||||
DataChanged *string `gorm:"default:'';" json:"data_changed"` // 修改后的数据
|
||||
DataOld *string `gorm:"default:'';" json:"data_old"` // 变动的数据
|
||||
Ctime *uint64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Uid *uint64 `gorm:"default:0;" json:"uid"` // 操作人ID
|
||||
Uname *string `gorm:"default:'';" json:"uname"` // 操作人名字
|
||||
}
|
||||
type FsLogModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
23
model/gmodel/fs_map_library_gen.go
Executable file → Normal file
23
model/gmodel/fs_map_library_gen.go
Executable file → Normal file
|
@ -4,19 +4,16 @@ import (
|
|||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_map_library 贴图库
|
||||
type FsMapLibrary struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"` // Id
|
||||
Title *string `gorm:"default:''" json:"title"` // 名称
|
||||
Info *string `gorm:"default:''" json:"info"` // 贴图数据
|
||||
Sort *int64 `gorm:"default:0" json:"sort"` // 排序
|
||||
Status *int64 `gorm:"default:1" json:"status"` // 状态 1启用 0未启用
|
||||
Ctime *int64 `gorm:"default:0" json:"ctime"` // 创建时间
|
||||
TagId *int64 `gorm:"default:0" json:"tag_id"` // 模板标签id
|
||||
}
|
||||
type FsMapLibraryModel struct {
|
||||
db *gorm.DB
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // Id
|
||||
Title *string `gorm:"default:'';" json:"title"` // 名称
|
||||
Info *string `gorm:"default:'';" json:"info"` // 贴图数据
|
||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态 1启用
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||
TagId *int64 `gorm:"default:0;" json:"tag_id"` // 模板标签id
|
||||
}
|
||||
type FsMapLibraryModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsMapLibraryModel(db *gorm.DB) *FsMapLibraryModel {
|
||||
return &FsMapLibraryModel{db}
|
||||
}
|
||||
func NewFsMapLibraryModel(db *gorm.DB) *FsMapLibraryModel { return &FsMapLibraryModel{db} }
|
||||
|
|
|
@ -6,12 +6,12 @@ import (
|
|||
|
||||
// fs_menu 后台菜单
|
||||
type FsMenu struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||||
Name *string `gorm:"default:'';" json:"name"` // 菜单名
|
||||
Parent *int64 `gorm:"index;default:'0';" json:"parent"` //
|
||||
Route *string `gorm:"default:'';" json:"route"` //
|
||||
Order *int64 `gorm:"default:'0';" json:"order"` //
|
||||
Data *[]byte `gorm:"default:'';" json:"data"` // 其他信息(图标等)
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
Name *string `gorm:"default:'';" json:"name"` // 菜单名
|
||||
Parent *int64 `gorm:"index;default:0;" json:"parent"` //
|
||||
Route *string `gorm:"default:'';" json:"route"` //
|
||||
Order *int64 `gorm:"default:0;" json:"order"` //
|
||||
Data *[]byte `gorm:"default:'';" json:"data"` // 其他信息(图标等)
|
||||
}
|
||||
type FsMenuModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
// fs_migration 版本库
|
||||
type FsMigration struct {
|
||||
Version string `gorm:"primary_key;default:'';" json:"version"` // 版本信息
|
||||
ApplyTime *int64 `gorm:"default:'0';" json:"apply_time"` //
|
||||
ApplyTime *int64 `gorm:"default:0;" json:"apply_time"` //
|
||||
}
|
||||
type FsMigrationModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,16 +6,16 @@ import (
|
|||
|
||||
// fs_order_affiliate 订单附属表-流程控制时间等
|
||||
type FsOrderAffiliate struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||||
OrderId *uint64 `gorm:"unique_key;default:'0';" json:"order_id"` // 订单id
|
||||
SureTime *uint64 `gorm:"default:'0';" json:"sure_time"` // 确认时间
|
||||
ProductTime *uint64 `gorm:"default:'0';" json:"product_time"` // 生产时间
|
||||
ProductEndtime *uint64 `gorm:"default:'0';" json:"product_endtime"` // 生成完成时间
|
||||
DeliverTime *uint64 `gorm:"default:'0';" json:"deliver_time"` // 发货时间
|
||||
UpsDeliverTime *uint64 `gorm:"default:'0';" json:"ups_deliver_time"` // ups发货时间
|
||||
UpsTime *uint64 `gorm:"default:'0';" json:"ups_time"` // UPS提货时间
|
||||
ArrivalTime *uint64 `gorm:"default:'0';" json:"arrival_time"` // 到达云仓的时间
|
||||
RecevieTime *uint64 `gorm:"default:'0';" json:"recevie_time"` // 云仓收货时间
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
OrderId *uint64 `gorm:"unique_key;default:0;" json:"order_id"` // 订单id
|
||||
SureTime *uint64 `gorm:"default:0;" json:"sure_time"` // 确认时间
|
||||
ProductTime *uint64 `gorm:"default:0;" json:"product_time"` // 生产时间
|
||||
ProductEndtime *uint64 `gorm:"default:0;" json:"product_endtime"` // 生成完成时间
|
||||
DeliverTime *uint64 `gorm:"default:0;" json:"deliver_time"` // 发货时间
|
||||
UpsDeliverTime *uint64 `gorm:"default:0;" json:"ups_deliver_time"` // ups发货时间
|
||||
UpsTime *uint64 `gorm:"default:0;" json:"ups_time"` // UPS提货时间
|
||||
ArrivalTime *uint64 `gorm:"default:0;" json:"arrival_time"` // 到达云仓的时间
|
||||
RecevieTime *uint64 `gorm:"default:0;" json:"recevie_time"` // 云仓收货时间
|
||||
}
|
||||
type FsOrderAffiliateModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
57
model/gmodel/fs_order_detail_gen.go
Executable file → Normal file
57
model/gmodel/fs_order_detail_gen.go
Executable file → Normal file
|
@ -4,36 +4,33 @@ import (
|
|||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_order_detail 订单详细表
|
||||
type FsOrderDetail struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"`
|
||||
Sn *string `gorm:"default:''" json:"sn"` // 唯一编码
|
||||
OrderId *int64 `gorm:"default:0" json:"order_id"` // 订单ID
|
||||
UserId *int64 `gorm:"default:0" json:"user_id"` // 用户ID
|
||||
FactoryId *int64 `gorm:"default:0" json:"factory_id"` // 工厂ID
|
||||
OrderDetailTemplateId *int64 `gorm:"default:0" json:"order_detail_template_id"` // 详情templateID
|
||||
ProductId *int64 `gorm:"default:0" json:"product_id"` // 产品ID
|
||||
BuyNum *int64 `gorm:"default:0" json:"buy_num"` // 购买数量
|
||||
PushNum *int64 `gorm:"default:0" json:"push_num"` // 已发数量
|
||||
Amount *int64 `gorm:"default:0" json:"amount"` // 单价
|
||||
Cover *string `gorm:"default:''" json:"cover"` // 截图
|
||||
Ctime *int64 `gorm:"default:0" json:"ctime"` // 添加时间
|
||||
Status *int64 `gorm:"default:0" json:"status"` // 状态位 是否推送到厂家 是否生产完成 是否发货完成
|
||||
OptionalId *int64 `gorm:"default:0" json:"optional_id"` // 选项ID
|
||||
OptionalTitle *string `gorm:"default:''" json:"optional_title"` // 选项名称
|
||||
OptionPrice *int64 `gorm:"default:0" json:"option_price"` // 配件价格
|
||||
IsTofactory *int64 `gorm:"default:0" json:"is_tofactory"` // 是否推送到工厂
|
||||
IsProduct *int64 `gorm:"default:0" json:"is_product"` // 是否生产中
|
||||
IsProductCompletion *int64 `gorm:"default:0" json:"is_product_completion"` // 是否生产完成
|
||||
IsCloud *int64 `gorm:"default:0" json:"is_cloud"` // 是否是云仓订单
|
||||
IsTocloud *int64 `gorm:"default:0" json:"is_tocloud"` // 是否已发云仓(云仓单要发货到云仓,直接发到用户的不需要发到云仓)
|
||||
IsDeliver *int64 `gorm:"default:0" json:"is_deliver"` // 是否已发货
|
||||
IsEnd *int64 `gorm:"default:0" json:"is_end"` // 是否完成订单(签收)
|
||||
CartId *int64 `gorm:"default:0" json:"cart_id"` // 购物车编号
|
||||
}
|
||||
type FsOrderDetailModel struct {
|
||||
db *gorm.DB
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 唯一编码
|
||||
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 订单ID
|
||||
UserId *int64 `gorm:"default:0;" json:"user_id"` //
|
||||
FactoryId *int64 `gorm:"default:0;" json:"factory_id"` // 工厂ID
|
||||
OrderDetailTemplateId *int64 `gorm:"default:0;" json:"order_detail_template_id"` // 详情templateID
|
||||
ProductId *int64 `gorm:"default:0;" json:"product_id"` // 产品ID
|
||||
BuyNum *int64 `gorm:"default:0;" json:"buy_num"` // 购买数量
|
||||
PushNum *int64 `gorm:"default:0;" json:"push_num"` // 已发数量
|
||||
Amount *int64 `gorm:"default:0;" json:"amount"` // 单价
|
||||
Cover *string `gorm:"default:'';" json:"cover"` // 截图
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否推送到厂家 是否生产完成 是否发货完成
|
||||
OptionalId *int64 `gorm:"default:0;" json:"optional_id"` // 选项ID
|
||||
OptionalTitle *string `gorm:"default:'';" json:"optional_title"` // 选项名称
|
||||
OptionPrice *int64 `gorm:"default:0;" json:"option_price"` // 配件价格
|
||||
IsTofactory *int64 `gorm:"default:0;" json:"is_tofactory"` // 是否推送到工厂
|
||||
IsProduct *int64 `gorm:"default:0;" json:"is_product"` // 是否生产中
|
||||
IsProductCompletion *int64 `gorm:"default:0;" json:"is_product_completion"` // 是否生产完成
|
||||
IsCloud *int64 `gorm:"default:0;" json:"is_cloud"` // 是否是云仓订单
|
||||
IsTocloud *int64 `gorm:"default:0;" json:"is_tocloud"` // 是否已发云仓(云仓单要发货到云仓,直接发到用户的不需要发到云仓)
|
||||
IsDeliver *int64 `gorm:"default:0;" json:"is_deliver"` // 是否已发货
|
||||
IsEnd *int64 `gorm:"default:0;" json:"is_end"` // 是否完成订单(签收)
|
||||
CartId *int64 `gorm:"index;default:0;" json:"cart_id"` // 购物车编号
|
||||
}
|
||||
type FsOrderDetailModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsOrderDetailModel(db *gorm.DB) *FsOrderDetailModel {
|
||||
return &FsOrderDetailModel{db}
|
||||
}
|
||||
func NewFsOrderDetailModel(db *gorm.DB) *FsOrderDetailModel { return &FsOrderDetailModel{db} }
|
||||
|
|
27
model/gmodel/fs_order_detail_template_gen.go
Executable file → Normal file
27
model/gmodel/fs_order_detail_template_gen.go
Executable file → Normal file
|
@ -4,22 +4,21 @@ import (
|
|||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_order_detail_template 订单模板详细表
|
||||
type FsOrderDetailTemplate struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"`
|
||||
Sn *string `gorm:"default:''" json:"sn"` // 唯一编码
|
||||
ProductId *int64 `gorm:"default:0" json:"product_id"` // 产品ID
|
||||
ModelId *int64 `gorm:"default:0" json:"model_id"` // 模型ID
|
||||
TemplateId *int64 `gorm:"default:0" json:"template_id"` // 模板ID
|
||||
MaterialId *int64 `gorm:"default:0" json:"material_id"` // 材质id
|
||||
SizeId *int64 `gorm:"default:0" json:"size_id"` // 尺寸id
|
||||
EachBoxNum *int64 `gorm:"default:0" json:"each_box_num"` // 每一箱的个数
|
||||
EachBoxWeight *float64 `gorm:"default:0.00" json:"each_box_weight"` // 每一箱的重量 单位KG
|
||||
DesignId *int64 `gorm:"default:0" json:"design_id"` // 设计ID
|
||||
Ctime *int64 `gorm:"default:0" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsOrderDetailTemplateModel struct {
|
||||
db *gorm.DB
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 唯一编码
|
||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
ModelId *int64 `gorm:"default:0;" json:"model_id"` // 模型ID
|
||||
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模板ID
|
||||
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质id
|
||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸id
|
||||
EachBoxNum *int64 `gorm:"default:0;" json:"each_box_num"` // 每一箱的个数
|
||||
EachBoxWeight *float64 `gorm:"default:0.00;" json:"each_box_weight"` // 每一箱的重量 单位KG
|
||||
DesignId *int64 `gorm:"index;default:0;" json:"design_id"` // 设计ID
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
}
|
||||
type FsOrderDetailTemplateModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsOrderDetailTemplateModel(db *gorm.DB) *FsOrderDetailTemplateModel {
|
||||
return &FsOrderDetailTemplateModel{db}
|
||||
|
|
84
model/gmodel/fs_order_gen.go
Executable file → Normal file
84
model/gmodel/fs_order_gen.go
Executable file → Normal file
|
@ -1,53 +1,49 @@
|
|||
package gmodel
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
||||
|
||||
// fs_order
|
||||
type FsOrder struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"`
|
||||
Sn *string `gorm:"default:''" json:"sn"` // 订单编号 FS211224OL2XDKNP
|
||||
UserId *int64 `gorm:"default:0" json:"user_id"` // 用户ID
|
||||
SellerUserId *int64 `gorm:"default:0" json:"seller_user_id"` // 销售员ID 0:自主下单
|
||||
TotalAmount *int64 `gorm:"default:0" json:"total_amount"` // 总价
|
||||
PayedAmount *int64 `gorm:"default:0" json:"payed_amount"` // 已支付金额
|
||||
PayMethod *int64 `gorm:"default:0" json:"pay_method"` // 支付方式 1paypal 2strip
|
||||
Ctime *int64 `gorm:"default:0" json:"ctime"` // 添加时间
|
||||
Utime *int64 `gorm:"default:0" json:"utime"` // 更新时间
|
||||
Ptime *int64 `gorm:"default:0" json:"ptime"` // 最后一次 支付时间(可能多次支付)
|
||||
AddressId *int64 `gorm:"default:0" json:"address_id"` // 地址ID或者云仓ID
|
||||
DeliveryMethod *int64 `gorm:"default:0" json:"delivery_method"` // 配送方式 1:直接发货到收获地址 2:云仓
|
||||
CustomerMark *string `gorm:"default:''" json:"customer_mark"` // 客户备注
|
||||
Mark *string `gorm:"default:''" json:"mark"` // 后台订单备注
|
||||
AddressInfo *string `gorm:"default:''" json:"address_info"` // 详细地址信息JSON
|
||||
IsSup *int64 `gorm:"default:0" json:"is_sup"` // 0不是补货 1是补货
|
||||
Status *int64 `gorm:"default:0" json:"status"` // 状态位(0:未支付,1:部分支付,2:支付完成,3:部分生产,4:部分生产完成,5:全部生产,6:全部生产完成,7:部分发货,8:发货完成,9:完成订单,10:取消订单,11:退款中,12:退款完成,13:订单已删除,14:订单已关闭)
|
||||
IsPartPay *int64 `gorm:"default:0" json:"is_part_pay"` // 是否部分支付(0:否,1:是)
|
||||
IsPayCompleted *int64 `gorm:"default:0" json:"is_pay_completed"` // 是否支付完成(0:否,1:是)
|
||||
IsPartProduct *int64 `gorm:"default:0" json:"is_part_product"` // 是否部分生产(0:否,1:是)
|
||||
IsPartProductCompleted *int64 `gorm:"default:0" json:"is_part_product_completed"` // 是否部分生产完成(0:否,1:是)
|
||||
IsAllProduct *int64 `gorm:"default:0" json:"is_all_product"` // 是否全部生产(0:否,1:是)
|
||||
IsAllProductCompleted *int64 `gorm:"default:0" json:"is_all_product_completed"` // 是否全部生产完成(0:否,1:是)
|
||||
IsPartDelivery *int64 `gorm:"default:0" json:"is_part_delivery"` // 是否部分发货(0:否,1:是)
|
||||
IsDeliveryCompleted *int64 `gorm:"default:0" json:"is_delivery_completed"` // 是否发货完成(0:否,1:是)
|
||||
IsComplated *int64 `gorm:"default:0" json:"is_complated"` // 是否完成订单(0:否,1:是)
|
||||
IsCancel *int64 `gorm:"default:0" json:"is_cancel"` // 是否取消订单(0:否,1:是)
|
||||
IsRefunding *int64 `gorm:"default:0" json:"is_refunding"` // 是否退款中(0:否,1:是)
|
||||
IsRefunded *int64 `gorm:"default:0" json:"is_refunded"` // 是否退款完成(0:否,1:是)
|
||||
IsDeleted *int64 `gorm:"default:0" json:"is_deleted"` // 是否删除(0:否,1:是)
|
||||
RefundReasonId *int64 `gorm:"default:0" json:"refund_reason_id"` // 取消订单原因ID
|
||||
RefundReason *string `gorm:"default:''" json:"refund_reason"` // 取消订单原因
|
||||
TsTime *time.Time `gorm:"-" json:"ts_time"`
|
||||
IsSure *int64 `gorm:"default:0" json:"is_sure"` // 是否确认订单 1确认0未确认
|
||||
DeliverSn *string `gorm:"default:''" json:"deliver_sn"` // 发货单号
|
||||
EmailTime *int64 `gorm:"default:0" json:"email_time"` // 邮件发送时间
|
||||
}
|
||||
type FsOrderModel struct {
|
||||
db *gorm.DB
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 订单编号 FS211224OL2XDKNP
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` //
|
||||
SellerUserId *int64 `gorm:"default:0;" json:"seller_user_id"` //
|
||||
TotalAmount *int64 `gorm:"default:0;" json:"total_amount"` // 总价
|
||||
PayedAmount *int64 `gorm:"default:0;" json:"payed_amount"` // 已支付金额
|
||||
PayMethod *int64 `gorm:"default:0;" json:"pay_method"` // 支付方式 1paypal 2strip
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
Utime *int64 `gorm:"default:0;" json:"utime"` //
|
||||
Ptime *int64 `gorm:"default:0;" json:"ptime"` //
|
||||
AddressId *int64 `gorm:"index;default:0;" json:"address_id"` // 地址ID或者云仓ID
|
||||
DeliveryMethod *int64 `gorm:"default:0;" json:"delivery_method"` // 配送方式 1:直接发货到收获地址 2:云仓
|
||||
CustomerMark *string `gorm:"default:'';" json:"customer_mark"` //
|
||||
Mark *string `gorm:"default:'';" json:"mark"` // 后台订单备注
|
||||
AddressInfo *string `gorm:"default:'';" json:"address_info"` // 详细地址信息JSON
|
||||
IsSup *int64 `gorm:"default:0;" json:"is_sup"` // 0不是补货 1是补货
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位(0:未支付,1:部分支付,2:支付完成,3:部分生产,4:部分生产完成,5:全部生产,6:全部生产完成,7:部分发货,8:发货完成,9:完成订单,10:取消订单,11:退款中,12:退款完成,13:订单已删除,14:订单已关闭)
|
||||
IsPartPay *int64 `gorm:"default:0;" json:"is_part_pay"` // 是否部分支付(0:否,1:是)
|
||||
IsPayCompleted *int64 `gorm:"default:0;" json:"is_pay_completed"` // 是否支付完成(0:否,1:是)
|
||||
IsPartProduct *int64 `gorm:"default:0;" json:"is_part_product"` // 是否部分生产(0:否,1:是)
|
||||
IsPartProductCompleted *int64 `gorm:"default:0;" json:"is_part_product_completed"` // 是否部分生产完成(0:否,1:是)
|
||||
IsAllProduct *int64 `gorm:"default:0;" json:"is_all_product"` // 是否全部生产(0:否,1:是)
|
||||
IsAllProductCompleted *int64 `gorm:"default:0;" json:"is_all_product_completed"` // 是否全部生产完成(0:否,1:是)
|
||||
IsPartDelivery *int64 `gorm:"default:0;" json:"is_part_delivery"` // 是否部分发货(0:否,1:是)
|
||||
IsDeliveryCompleted *int64 `gorm:"default:0;" json:"is_delivery_completed"` // 是否发货完成(0:否,1:是)
|
||||
IsComplated *int64 `gorm:"default:0;" json:"is_complated"` // 是否完成订单(0:否,1:是)
|
||||
IsCancel *int64 `gorm:"default:0;" json:"is_cancel"` // 是否取消订单(0:否,1:是)
|
||||
IsRefunding *int64 `gorm:"default:0;" json:"is_refunding"` // 是否退款中(0:否,1:是)
|
||||
IsRefunded *int64 `gorm:"default:0;" json:"is_refunded"` // 是否退款完成(0:否,1:是)
|
||||
IsDeleted *int64 `gorm:"default:0;" json:"is_deleted"` // 是否删除(0:否,1:是)
|
||||
RefundReasonId *int64 `gorm:"default:0;" json:"refund_reason_id"` //
|
||||
RefundReason *string `gorm:"default:'';" json:"refund_reason"` //
|
||||
TsTime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ts_time"` //
|
||||
IsSure *int64 `gorm:"default:0;" json:"is_sure"` // 是否确认订单 1确认0未确认
|
||||
DeliverSn *string `gorm:"default:'';" json:"deliver_sn"` // 发货单号
|
||||
EmailTime *int64 `gorm:"default:0;" json:"email_time"` // 邮件发送时间
|
||||
}
|
||||
type FsOrderModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsOrderModel(db *gorm.DB) *FsOrderModel {
|
||||
return &FsOrderModel{db}
|
||||
}
|
||||
func NewFsOrderModel(db *gorm.DB) *FsOrderModel { return &FsOrderModel{db} }
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
|
||||
// fs_order_remark 订单备注表
|
||||
type FsOrderRemark struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||||
OrderId *int64 `gorm:"index;default:'0';" json:"order_id"` // 订单id
|
||||
Remark *string `gorm:"default:'';" json:"remark"` // 订单备注
|
||||
AdminId *int64 `gorm:"default:'0';" json:"admin_id"` // 后台操作人员
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 订单id
|
||||
Remark *string `gorm:"default:'';" json:"remark"` // 订单备注
|
||||
AdminId *int64 `gorm:"default:0;" json:"admin_id"` // 后台操作人员
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsOrderRemarkModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -4,24 +4,24 @@ import (
|
|||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_pay 支付记录
|
||||
type FsPay struct {
|
||||
Id int64 `gorm:"primary_key;" json:"id"`
|
||||
UserId *int64 `gorm:"default:0" json:"user_id"` // 用户id
|
||||
OrderNumber *string `gorm:"default:''" json:"order_number"` // 订单编号
|
||||
TradeNo *string `gorm:"default:''" json:"trade_no"` // 第三方支付编号
|
||||
PayAmount *int64 `gorm:"default:0" json:"pay_amount"` // 支付金额 (分)
|
||||
PayStatus *int64 `gorm:"default:0" json:"pay_status"` // 支付状态 0 不成功 1 成功
|
||||
IsRefund *int64 `gorm:"default:0" json:"is_refund"` // 是否退款 0 未退款 1退款
|
||||
PaymentMethod *int64 `gorm:"default:0" json:"payment_method"` // 支付方式 1 stripe 2 paypal
|
||||
PayStage *int64 `gorm:"default:0" json:"pay_stage"` // 支付阶段 1首付 2尾款
|
||||
OrderSource *int64 `gorm:"default:1" json:"order_source"` // 订单来源 1pc
|
||||
PayTime *int64 `gorm:"" json:"pay_time"` // 支付时间
|
||||
CreatedAt *int64 `gorm:"default:0" json:"created_at"` // 创建时间
|
||||
UpdatedAt *int64 `gorm:"default:0" json:"updated_at"` // 更新时间
|
||||
CardNo *string `gorm:"default:''" json:"card_no"` // 卡后4位
|
||||
Brand *string `gorm:"default:''" json:"brand"` // 银行品牌
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户id
|
||||
OrderNumber *string `gorm:"default:'';" json:"order_number"` // 订单编号
|
||||
TradeNo *string `gorm:"index;default:'';" json:"trade_no"` // 第三方支付编号
|
||||
PayAmount *int64 `gorm:"default:0;" json:"pay_amount"` // 支付金额 (分)
|
||||
PayStatus *int64 `gorm:"default:0;" json:"pay_status"` // 支付状态 0 不成功 1 成功
|
||||
IsRefund *int64 `gorm:"default:0;" json:"is_refund"` // 是否退款 0 未退款 1退款
|
||||
PaymentMethod *int64 `gorm:"default:0;" json:"payment_method"` // 支付方式 1 stripe 2 paypal
|
||||
PayStage *int64 `gorm:"default:0;" json:"pay_stage"` // 支付阶段 1首付 2尾款
|
||||
OrderSource *int64 `gorm:"default:1;" json:"order_source"` // 订单来源 1pc
|
||||
PayTime *int64 `gorm:"default:0;" json:"pay_time"` // 支付时间
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
||||
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` // 更新时间
|
||||
CardNo *string `gorm:"default:'';" json:"card_no"` // 卡后4位
|
||||
Brand *string `gorm:"default:'';" json:"brand"` // 银行品牌
|
||||
}
|
||||
|
||||
type FsPayModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsPayModel(db *gorm.DB) *FsPayModel { return &FsPayModel{db} }
|
||||
|
|
|
@ -6,32 +6,32 @@ import (
|
|||
|
||||
// fs_product_copy1 产品表
|
||||
type FsProductCopy1 struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 商品编号 P98f087j
|
||||
Type *int64 `gorm:"default:'0';" json:"type"` // 分类ID
|
||||
Title *string `gorm:"default:'';" json:"title"` // 名称
|
||||
TitleCn *string `gorm:"default:'';" json:"title_cn"` // 中文名称
|
||||
Cover *string `gorm:"default:'';" json:"cover"` // 封面图
|
||||
Imgs *string `gorm:"default:'';" json:"imgs"` // 一个或多个介绍图或视频
|
||||
Keywords *string `gorm:"default:'';" json:"keywords"` // 关键字
|
||||
Intro *string `gorm:"default:'';" json:"intro"` // 简要描述
|
||||
Sort *int64 `gorm:"default:'0';" json:"sort"` // 排序
|
||||
SelledNum *int64 `gorm:"default:'0';" json:"selled_num"` // 已卖数量
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` //
|
||||
View *int64 `gorm:"default:'0';" json:"view"` // 浏览量
|
||||
SizeIds *string `gorm:"default:'';" json:"size_ids"` //
|
||||
MaterialIds *string `gorm:"default:'';" json:"material_ids"` // 材质 1,2,3
|
||||
TagIds *string `gorm:"default:'';" json:"tag_ids"` //
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态位 是否上架 是否推荐 是否热销 是否环保 是否可加入微波炉 是否刪除
|
||||
ProduceDays *uint64 `gorm:"default:'0';" json:"produce_days"` // 生产天数
|
||||
DeliveryDays *uint64 `gorm:"default:'0';" json:"delivery_days"` // 运送天数
|
||||
CoverImg *string `gorm:"default:'';" json:"cover_img"` // 背景图
|
||||
IsShelf *int64 `gorm:"default:'1';" json:"is_shelf"` // 是否上架
|
||||
IsRecommend *int64 `gorm:"default:'1';" json:"is_recommend"` // 是否推荐
|
||||
IsHot *int64 `gorm:"default:'1';" json:"is_hot"` // 是否热销
|
||||
IsProtection *int64 `gorm:"default:'1';" json:"is_protection"` // 是否环保
|
||||
IsMicrowave *int64 `gorm:"default:'1';" json:"is_microwave"` // 是否可微波炉
|
||||
IsDel *int64 `gorm:"default:'0';" json:"is_del"` // 是否删除
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 商品编号 P98f087j
|
||||
Type *int64 `gorm:"default:0;" json:"type"` // 分类ID
|
||||
Title *string `gorm:"default:'';" json:"title"` // 名称
|
||||
TitleCn *string `gorm:"default:'';" json:"title_cn"` // 中文名称
|
||||
Cover *string `gorm:"default:'';" json:"cover"` // 封面图
|
||||
Imgs *string `gorm:"default:'';" json:"imgs"` // 一个或多个介绍图或视频
|
||||
Keywords *string `gorm:"default:'';" json:"keywords"` // 关键字
|
||||
Intro *string `gorm:"default:'';" json:"intro"` // 简要描述
|
||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
SelledNum *int64 `gorm:"default:0;" json:"selled_num"` // 已卖数量
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
View *int64 `gorm:"default:0;" json:"view"` // 浏览量
|
||||
SizeIds *string `gorm:"default:'';" json:"size_ids"` //
|
||||
MaterialIds *string `gorm:"default:'';" json:"material_ids"` // 材质 1,2,3
|
||||
TagIds *string `gorm:"default:'';" json:"tag_ids"` //
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否上架 是否推荐 是否热销 是否环保 是否可加入微波炉 是否刪除
|
||||
ProduceDays *uint64 `gorm:"default:0;" json:"produce_days"` // 生产天数
|
||||
DeliveryDays *uint64 `gorm:"default:0;" json:"delivery_days"` // 运送天数
|
||||
CoverImg *string `gorm:"default:'';" json:"cover_img"` // 背景图
|
||||
IsShelf *int64 `gorm:"default:1;" json:"is_shelf"` // 是否上架
|
||||
IsRecommend *int64 `gorm:"default:1;" json:"is_recommend"` // 是否推荐
|
||||
IsHot *int64 `gorm:"default:1;" json:"is_hot"` // 是否热销
|
||||
IsProtection *int64 `gorm:"default:1;" json:"is_protection"` // 是否环保
|
||||
IsMicrowave *int64 `gorm:"default:1;" json:"is_microwave"` // 是否可微波炉
|
||||
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除
|
||||
}
|
||||
type FsProductCopy1Model struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,20 +6,20 @@ import (
|
|||
|
||||
// fs_product_design_gather
|
||||
type FsProductDesignGather struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
Sn *string `gorm:"index;default:'';" json:"sn"` // 唯一标识
|
||||
UserId *int64 `gorm:"index;default:'0';" json:"user_id"` //
|
||||
ProductId *int64 `gorm:"index;default:'0';" json:"product_id"` // 产品ID
|
||||
TemplateId *int64 `gorm:"index;default:'0';" json:"template_id"` // 模型ID
|
||||
MaterialId *int64 `gorm:"index;default:'0';" json:"material_id"` // 材质ID
|
||||
SizeId *int64 `gorm:"index;default:'0';" json:"size_id"` // 尺寸ID
|
||||
OptionalId *int64 `gorm:"index;default:'0';" json:"optional_id"` // 选项ID
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
Info *string `gorm:"default:'';" json:"info"` // 保留的设计信息
|
||||
Utime *int64 `gorm:"default:'0';" json:"utime"` //
|
||||
Status *int64 `gorm:"default:'1';" json:"status"` // 状态位(1:显示,0:删除)
|
||||
ClientIp *string `gorm:"default:'';" json:"client_ip"` // 客户端ip
|
||||
ClientNo *string `gorm:"default:'';" json:"client_no"` // 客户端唯一标识
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Sn *string `gorm:"index;default:'';" json:"sn"` // 唯一标识
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` //
|
||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模型ID
|
||||
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
||||
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
Info *string `gorm:"default:'';" json:"info"` // 保留的设计信息
|
||||
Utime *int64 `gorm:"default:0;" json:"utime"` //
|
||||
Status *int64 `gorm:"default:1;" json:"status"` // 状态位(1:显示,0:删除)
|
||||
ClientIp *string `gorm:"default:'';" json:"client_ip"` // 客户端ip
|
||||
ClientNo *string `gorm:"default:'';" json:"client_no"` // 客户端唯一标识
|
||||
}
|
||||
type FsProductDesignGatherModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
44
model/gmodel/fs_product_design_gen.go
Executable file → Normal file
44
model/gmodel/fs_product_design_gen.go
Executable file → Normal file
|
@ -1,33 +1,29 @@
|
|||
package gmodel
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
||||
|
||||
// fs_product_design 产品设计表
|
||||
type FsProductDesign struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"`
|
||||
Sn *string `gorm:"default:''" json:"sn"` // 唯一标识
|
||||
UserId *int64 `gorm:"default:0" json:"user_id"` // 用户ID
|
||||
ProductId *int64 `gorm:"default:0" json:"product_id"` // 产品ID
|
||||
TemplateId *int64 `gorm:"default:0" json:"template_id"` // 模型ID
|
||||
MaterialId *int64 `gorm:"default:0" json:"material_id"` // 材质ID
|
||||
SizeId *int64 `gorm:"default:0" json:"size_id"` // 尺寸ID
|
||||
OptionalId *int64 `gorm:"default:0" json:"optional_id"` // 选项ID
|
||||
Cover *string `gorm:"default:''" json:"cover"` // 封面图
|
||||
Info *string `gorm:"default:''" json:"info"` // 保留的设计信息
|
||||
Utime *time.Time `gorm:"-" json:"utime"` // 更新时间
|
||||
Status *int64 `gorm:"default:1" json:"status"` // 状态
|
||||
IsDel *int64 `gorm:"default:0" json:"is_del"` // 是否删除 0未删除 1删除
|
||||
IsPay *int64 `gorm:"default:0" json:"is_pay"` // 是否已有支付 0 未 1 有
|
||||
LogoColor *string `gorm:"default:''" json:"logo_color"` // logo图片备选项
|
||||
PageGuid *string `gorm:"default:''" json:"page_guid"` // 页面识别id
|
||||
}
|
||||
type FsProductDesignModel struct {
|
||||
db *gorm.DB
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Sn *string `gorm:"index;default:'';" json:"sn"` // 唯一标识
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
|
||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模型ID
|
||||
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
||||
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
||||
Cover *string `gorm:"default:'';" json:"cover"` // 封面图
|
||||
Info *string `gorm:"default:'';" json:"info"` // 保留的设计信息
|
||||
Utime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"utime"` //
|
||||
Status *int64 `gorm:"default:1;" json:"status"` // 状态
|
||||
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除 0未删除 1删除
|
||||
IsPay *int64 `gorm:"default:0;" json:"is_pay"` // 是否已有支付 0 未 1 有
|
||||
LogoColor *string `gorm:"default:'';" json:"logo_color"` // logo图片备选项
|
||||
PageGuid *string `gorm:"default:'';" json:"page_guid"` // 页面识别id
|
||||
}
|
||||
type FsProductDesignModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsProductDesignModel(db *gorm.DB) *FsProductDesignModel {
|
||||
return &FsProductDesignModel{db}
|
||||
}
|
||||
func NewFsProductDesignModel(db *gorm.DB) *FsProductDesignModel { return &FsProductDesignModel{db} }
|
||||
|
|
67
model/gmodel/fs_product_gen.go
Executable file → Normal file
67
model/gmodel/fs_product_gen.go
Executable file → Normal file
|
@ -4,41 +4,38 @@ import (
|
|||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_product 产品表
|
||||
type FsProduct struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"`
|
||||
Sn *string `gorm:"default:''" json:"sn"` // 商品编号 P98f087j
|
||||
Type *int64 `gorm:"default:0" json:"type"` // 分类ID
|
||||
Title *string `gorm:"default:''" json:"title"` // 名称
|
||||
TitleCn *string `gorm:"default:''" json:"title_cn"` // 中文名称
|
||||
Cover *string `gorm:"default:''" json:"cover"` // 封面图
|
||||
Imgs *string `gorm:"default:''" json:"imgs"` // 一个或多个介绍图或视频
|
||||
Keywords *string `gorm:"default:''" json:"keywords"` // 关键字
|
||||
Intro *string `gorm:"default:''" json:"intro"` // 简要描述
|
||||
Sort *int64 `gorm:"default:0" json:"sort"` // 排序
|
||||
SelledNum *int64 `gorm:"default:0" json:"selled_num"` // 已卖数量
|
||||
Ctime *int64 `gorm:"default:0" json:"ctime"` // 添加时间
|
||||
View *int64 `gorm:"default:0" json:"view"` // 浏览量
|
||||
SizeIds *string `gorm:"default:''" json:"size_ids"` // 尺寸 1,2,3,4
|
||||
MaterialIds *string `gorm:"default:''" json:"material_ids"` // 材质 1,2,3
|
||||
TagIds *string `gorm:"default:''" json:"tag_ids"` // 标签 逗号间隔
|
||||
Status *int64 `gorm:"default:1" json:"status"` // 状态位 弃用
|
||||
ProduceDays *int64 `gorm:"default:0" json:"produce_days"` // 生产天数
|
||||
DeliveryDays *int64 `gorm:"default:0" json:"delivery_days"` // 运送天数
|
||||
CoverImg *string `gorm:"default:''" json:"cover_img"` // 背景图
|
||||
IsShelf *int64 `gorm:"default:1" json:"is_shelf"` // 是否上架
|
||||
IsRecommend *int64 `gorm:"default:1" json:"is_recommend"` // 是否推荐
|
||||
IsHot *int64 `gorm:"default:1" json:"is_hot"` // 是否热销
|
||||
IsProtection *int64 `gorm:"default:1" json:"is_protection"` // 是否环保
|
||||
IsMicrowave *int64 `gorm:"default:1" json:"is_microwave"` // 是否可微波炉
|
||||
IsDel *int64 `gorm:"default:0" json:"is_del"` // 是否删除
|
||||
RecommendProduct *string `gorm:"default:''" json:"recommend_product"` // 推荐产品id例如: 1,3,4,5
|
||||
RecommendProductSort *string `gorm:"default:''" json:"recommend_product_sort"` // 推荐排序例如:1324
|
||||
SceneIds *string `gorm:"default:''" json:"scene_ids"` // 关联的场景id
|
||||
}
|
||||
type FsProductModel struct {
|
||||
db *gorm.DB
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 商品编号 P98f087j
|
||||
Type *int64 `gorm:"default:0;" json:"type"` // 分类ID
|
||||
Title *string `gorm:"default:'';" json:"title"` // 名称
|
||||
TitleCn *string `gorm:"default:'';" json:"title_cn"` // 中文名称
|
||||
Cover *string `gorm:"default:'';" json:"cover"` // 封面图
|
||||
Imgs *string `gorm:"default:'';" json:"imgs"` // 一个或多个介绍图或视频
|
||||
Keywords *string `gorm:"default:'';" json:"keywords"` // 关键字
|
||||
Intro *string `gorm:"default:'';" json:"intro"` // 简要描述
|
||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
SelledNum *int64 `gorm:"default:0;" json:"selled_num"` // 已卖数量
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
View *int64 `gorm:"default:0;" json:"view"` // 浏览量
|
||||
SizeIds *string `gorm:"default:'';" json:"size_ids"` //
|
||||
MaterialIds *string `gorm:"default:'';" json:"material_ids"` // 材质 1,2,3
|
||||
TagIds *string `gorm:"default:'';" json:"tag_ids"` //
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 弃用
|
||||
ProduceDays *uint64 `gorm:"default:0;" json:"produce_days"` // 生产天数
|
||||
DeliveryDays *uint64 `gorm:"default:0;" json:"delivery_days"` // 运送天数
|
||||
CoverImg *string `gorm:"default:'';" json:"cover_img"` // 背景图
|
||||
IsShelf *int64 `gorm:"default:1;" json:"is_shelf"` // 是否上架
|
||||
IsRecommend *int64 `gorm:"default:1;" json:"is_recommend"` // 是否推荐
|
||||
IsHot *int64 `gorm:"default:1;" json:"is_hot"` // 是否热销
|
||||
IsProtection *int64 `gorm:"default:1;" json:"is_protection"` // 是否环保
|
||||
IsMicrowave *int64 `gorm:"default:1;" json:"is_microwave"` // 是否可微波炉
|
||||
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除
|
||||
RecommendProduct *string `gorm:"default:'';" json:"recommend_product"` //
|
||||
RecommendProductSort *string `gorm:"default:'';" json:"recommend_product_sort"` //
|
||||
SceneIds *string `gorm:"default:'';" json:"scene_ids"` //
|
||||
}
|
||||
type FsProductModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsProductModel(db *gorm.DB) *FsProductModel {
|
||||
return &FsProductModel{db}
|
||||
}
|
||||
func NewFsProductModel(db *gorm.DB) *FsProductModel { return &FsProductModel{db} }
|
||||
|
|
45
model/gmodel/fs_product_model3d_gen.go
Executable file → Normal file
45
model/gmodel/fs_product_model3d_gen.go
Executable file → Normal file
|
@ -4,30 +4,27 @@ import (
|
|||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_product_model3d 产品模型表
|
||||
type FsProductModel3d struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"`
|
||||
ProductId *int64 `gorm:"default:0" json:"product_id"` // 产品ID
|
||||
Tag *int64 `gorm:"default:1" json:"tag"` // 类别(1:模型,2:配件,3:场景)
|
||||
Title *string `gorm:"default:''" json:"title"` // 标题
|
||||
Name *string `gorm:"default:''" json:"name"` // 详情页展示名称
|
||||
ModelInfo *string `gorm:"default:''" json:"model_info"` // 模型详情
|
||||
MaterialId *int64 `gorm:"default:0" json:"material_id"` // 材质ID
|
||||
SizeId *int64 `gorm:"default:0" json:"size_id"` // 尺寸ID
|
||||
Sort *int64 `gorm:"default:0" json:"sort"` // 排序
|
||||
Light *int64 `gorm:"default:0" json:"light"` // 灯光组
|
||||
LightList *string `gorm:"default:''" json:"light_list"` // 灯光备选项
|
||||
PartId *int64 `gorm:"default:0" json:"part_id"` // 配件选项id(配件就是模型的id)
|
||||
PartList *string `gorm:"default:''" json:"part_list"` // 配件备选项
|
||||
Status *int64 `gorm:"default:1" json:"status"` // 状态位 1显示 0删除
|
||||
Ctime *int64 `gorm:"default:0" json:"ctime"` // 添加时间
|
||||
OptionTemplate *int64 `gorm:"default:0" json:"option_template"` // 配件绑定的公共模板
|
||||
Price *int64 `gorm:"default:0" json:"price"` // 仅配件用,配件的价格, 单位:美分
|
||||
Sku *string `gorm:"default:''" json:"sku"` // sku
|
||||
}
|
||||
type FsProductModel3dModel struct {
|
||||
db *gorm.DB
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
ProductId *uint64 `gorm:"index;default:0;" json:"product_id"` //
|
||||
Tag *int64 `gorm:"default:1;" json:"tag"` // 类别(1:模型,2:配件,3:场景)
|
||||
Title *string `gorm:"default:'';" json:"title"` // 标题
|
||||
Name *string `gorm:"default:'';" json:"name"` // 详情页展示名称
|
||||
ModelInfo *string `gorm:"default:'';" json:"model_info"` // 模型详情
|
||||
MaterialId *uint64 `gorm:"default:0;" json:"material_id"` // 材质ID
|
||||
SizeId *uint64 `gorm:"default:0;" json:"size_id"` // 尺寸ID
|
||||
Sort *uint64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
Light *int64 `gorm:"default:0;" json:"light"` //
|
||||
LightList *string `gorm:"default:'';" json:"light_list"` //
|
||||
PartId *int64 `gorm:"default:0;" json:"part_id"` //
|
||||
PartList *string `gorm:"default:'';" json:"part_list"` //
|
||||
Status *uint64 `gorm:"default:0;" json:"status"` // 状态位 显示 删除
|
||||
Ctime *uint64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
OptionTemplate *int64 `gorm:"default:0;" json:"option_template"` //
|
||||
Price *int64 `gorm:"default:0;" json:"price"` // 仅配件用,配件的价格, 单位:美分
|
||||
Sku *string `gorm:"default:'';" json:"sku"` // sku
|
||||
}
|
||||
type FsProductModel3dModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsProductModel3dModel(db *gorm.DB) *FsProductModel3dModel {
|
||||
return &FsProductModel3dModel{db}
|
||||
}
|
||||
func NewFsProductModel3dModel(db *gorm.DB) *FsProductModel3dModel { return &FsProductModel3dModel{db} }
|
||||
|
|
19
model/gmodel/fs_product_model3d_light_gen.go
Executable file → Normal file
19
model/gmodel/fs_product_model3d_light_gen.go
Executable file → Normal file
|
@ -1,17 +1,18 @@
|
|||
package gmodel
|
||||
|
||||
import "gorm.io/gorm"
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_product_model3d_light 模型-灯光组表
|
||||
type FsProductModel3dLight struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"`
|
||||
Name *string `gorm:"default:''" json:"name"` // 灯光名称
|
||||
Info *string `gorm:"default:''" json:"info"` // 灯光数据(json格式)
|
||||
Status *int64 `gorm:"default:1" json:"status"` // 状态值(1:显示,0:删除)
|
||||
Ctime *int64 `gorm:"default:0" json:"ctime"` // 创建时间
|
||||
}
|
||||
type FsProductModel3dLightModel struct {
|
||||
db *gorm.DB
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Name *string `gorm:"default:'';" json:"name"` // 灯光名称
|
||||
Info *string `gorm:"default:'';" json:"info"` // 灯光数据(json格式)
|
||||
Status *int64 `gorm:"default:1;" json:"status"` // 状态值(1:显示,0:删除)
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
}
|
||||
type FsProductModel3dLightModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsProductModel3dLightModel(db *gorm.DB) *FsProductModel3dLightModel {
|
||||
return &FsProductModel3dLightModel{db}
|
||||
|
|
|
@ -6,13 +6,13 @@ import (
|
|||
|
||||
// fs_product_option 产品选项表(已废弃)
|
||||
type FsProductOption struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
Title *string `gorm:"default:'';" json:"title"` // 名称
|
||||
ProductId *int64 `gorm:"index;default:'0';" json:"product_id"` // 产品id
|
||||
Price *int64 `gorm:"default:'0';" json:"price"` // 产品单价
|
||||
SizeId *int64 `gorm:"index;default:'0';" json:"size_id"` // 尺寸id
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态值(0:禁用,1:启用)
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` //
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Title *string `gorm:"default:'';" json:"title"` // 名称
|
||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品id
|
||||
Price *int64 `gorm:"default:0;" json:"price"` // 产品单价
|
||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸id
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态值(0:禁用,1:启用)
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
}
|
||||
type FsProductOptionModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
35
model/gmodel/fs_product_price_gen.go
Executable file → Normal file
35
model/gmodel/fs_product_price_gen.go
Executable file → Normal file
|
@ -4,25 +4,22 @@ import (
|
|||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_product_price 阶梯价格表
|
||||
type FsProductPrice struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"`
|
||||
Sn *string `gorm:"default:''" json:"sn"` // 唯一编码
|
||||
Title *string `gorm:"default:''" json:"title"` // 标题描述
|
||||
ProductId *int64 `gorm:"default:0" json:"product_id"` // 产品ID
|
||||
MaterialId *int64 `gorm:"default:0" json:"material_id"` // 材质ID
|
||||
SizeId *int64 `gorm:"default:0" json:"size_id"` // 尺寸ID
|
||||
EachBoxNum *int64 `gorm:"default:0" json:"each_box_num"` // 每一箱的个数
|
||||
EachBoxWeight *float64 `gorm:"default:0" json:"each_box_weight"` // 每一箱的重量 单位KG
|
||||
MinBuyNum *int64 `gorm:"default:0" json:"min_buy_num"` // 最少购买量
|
||||
StepNum *string `gorm:"default:''" json:"step_num"` // 数量阶梯 eg:10,20,30
|
||||
StepPrice *string `gorm:"default:''" json:"step_price"` // 价格阶梯 eg:100,50,25
|
||||
Status *int64 `gorm:"default:1" json:"status"` // 是否可用
|
||||
IsDefault *int64 `gorm:"default:0" json:"is_default"` // 是否默认
|
||||
}
|
||||
type FsProductPriceModel struct {
|
||||
db *gorm.DB
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Sn *string `gorm:"default:'';" json:"sn"` // 唯一编码
|
||||
Title *string `gorm:"default:'';" json:"title"` // 标题描述
|
||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
||||
EachBoxNum *int64 `gorm:"default:0;" json:"each_box_num"` // 每一箱的个数
|
||||
EachBoxWeight *float64 `gorm:"default:0.00;" json:"each_box_weight"` // 每一箱的重量 单位KG
|
||||
MinBuyNum *int64 `gorm:"default:0;" json:"min_buy_num"` // 最少购买量
|
||||
StepNum *string `gorm:"default:'';" json:"step_num"` // 数量阶梯 eg:10,20,30
|
||||
StepPrice *string `gorm:"default:'';" json:"step_price"` // 价格阶梯 eg:100,50,25
|
||||
Status *int64 `gorm:"default:1;" json:"status"` // 是否可用
|
||||
IsDefault *int64 `gorm:"default:0;" json:"is_default"` // 是否默认
|
||||
}
|
||||
type FsProductPriceModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsProductPriceModel(db *gorm.DB) *FsProductPriceModel {
|
||||
return &FsProductPriceModel{db}
|
||||
}
|
||||
func NewFsProductPriceModel(db *gorm.DB) *FsProductPriceModel { return &FsProductPriceModel{db} }
|
||||
|
|
|
@ -6,21 +6,21 @@ import (
|
|||
|
||||
// fs_product_render_design
|
||||
type FsProductRenderDesign struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
Sn *string `gorm:"index;default:'';" json:"sn"` // 唯一标识
|
||||
UserId *int64 `gorm:"index;default:'0';" json:"user_id"` //
|
||||
ProductId *int64 `gorm:"index;default:'0';" json:"product_id"` // 产品ID
|
||||
TemplateId *int64 `gorm:"index;default:'0';" json:"template_id"` // 模型ID
|
||||
MaterialId *int64 `gorm:"index;default:'0';" json:"material_id"` // 材质ID
|
||||
SizeId *int64 `gorm:"index;default:'0';" json:"size_id"` // 尺寸ID
|
||||
OptionalId *int64 `gorm:"index;default:'0';" json:"optional_id"` // 选项ID
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
Info *string `gorm:"default:'';" json:"info"` // 保留的设计信息
|
||||
Utime *int64 `gorm:"default:'0';" json:"utime"` //
|
||||
Status *int64 `gorm:"default:'1';" json:"status"` // 状态位(1:显示,0:删除)
|
||||
ClientIp *string `gorm:"default:'';" json:"client_ip"` // 客户端ip
|
||||
ClientNo *string `gorm:"default:'';" json:"client_no"` // 客户端唯一标识
|
||||
LogoColor *string `gorm:"default:'';" json:"logo_color"` // logo图片备选颜色
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Sn *string `gorm:"index;default:'';" json:"sn"` // 唯一标识
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` //
|
||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模型ID
|
||||
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
||||
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
Info *string `gorm:"default:'';" json:"info"` // 保留的设计信息
|
||||
Utime *int64 `gorm:"default:0;" json:"utime"` //
|
||||
Status *int64 `gorm:"default:1;" json:"status"` // 状态位(1:显示,0:删除)
|
||||
ClientIp *string `gorm:"default:'';" json:"client_ip"` // 客户端ip
|
||||
ClientNo *string `gorm:"default:'';" json:"client_no"` // 客户端唯一标识
|
||||
LogoColor *string `gorm:"default:'';" json:"logo_color"` // logo图片备选颜色
|
||||
}
|
||||
type FsProductRenderDesignModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,12 +6,12 @@ import (
|
|||
|
||||
// fs_product_scene 产品场景表
|
||||
type FsProductScene struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` // ID
|
||||
Name *string `gorm:"default:'';" json:"name"` // 场景名
|
||||
Info *string `gorm:"default:'';" json:"info"` // 场景详情
|
||||
ModelIds *string `gorm:"default:'';" json:"model_ids"` // 该场景涉及的模型id
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态1正常
|
||||
Ctime *uint64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
Name *string `gorm:"default:'';" json:"name"` // 场景名
|
||||
Info *string `gorm:"default:'';" json:"info"` // 场景详情
|
||||
ModelIds *string `gorm:"default:'';" json:"model_ids"` // 该场景涉及的模型id
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态1正常
|
||||
Ctime *uint64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsProductSceneModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
29
model/gmodel/fs_product_size_gen.go
Executable file → Normal file
29
model/gmodel/fs_product_size_gen.go
Executable file → Normal file
|
@ -4,22 +4,19 @@ import (
|
|||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_product_size 产品尺寸表
|
||||
type FsProductSize struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"`
|
||||
ProductId *int64 `gorm:"default:0" json:"product_id"` // 产品ID
|
||||
Title *string `gorm:"default:''" json:"title"` // 标题 10*10*20
|
||||
Cover *string `gorm:"default:''" json:"cover"` // 封面图
|
||||
CoverImg *string `gorm:"default:''" json:"cover_img"` // 背景图
|
||||
Capacity *string `gorm:"default:''" json:"capacity"` // 自己填的尺寸名称
|
||||
Status *int64 `gorm:"default:1" json:"status"` // 状态位 1显示 0删除
|
||||
Sort *int64 `gorm:"default:50" json:"sort"` // 排序
|
||||
Remark *string `gorm:"default:''" json:"remark"` // 备注信息
|
||||
PartsCanDeleted *int64 `gorm:"default:1" json:"parts_can_deleted"` // 配件是否可移除 1是0否
|
||||
}
|
||||
type FsProductSizeModel struct {
|
||||
db *gorm.DB
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
ProductId *uint64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
Title *string `gorm:"default:'';" json:"title"` // 标题 10*10*20
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
CoverImg *string `gorm:"default:'';" json:"cover_img"` //
|
||||
Capacity *string `gorm:"default:'';" json:"capacity"` // 自己填的尺寸名称
|
||||
Status *uint64 `gorm:"default:0;" json:"status"` // 状态位 显示 删除
|
||||
Sort *int64 `gorm:"default:50;" json:"sort"` // 排序
|
||||
Remark *string `gorm:"default:'';" json:"remark"` //
|
||||
PartsCanDeleted *int64 `gorm:"default:1;" json:"parts_can_deleted"` // 配件是否可移除 1是0否
|
||||
}
|
||||
type FsProductSizeModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsProductSizeModel(db *gorm.DB) *FsProductSizeModel {
|
||||
return &FsProductSizeModel{db}
|
||||
}
|
||||
func NewFsProductSizeModel(db *gorm.DB) *FsProductSizeModel { return &FsProductSizeModel{db} }
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
|
||||
// fs_product_template_basemap 模板底图表
|
||||
type FsProductTemplateBasemap struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` // Id
|
||||
Name *string `gorm:"default:'';" json:"name"` // 底图名称
|
||||
Url *string `gorm:"default:'';" json:"url"` // 底图地址
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Status *int64 `gorm:"default:'1';" json:"status"` // 状态值,1正常0删除
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // Id
|
||||
Name *string `gorm:"default:'';" json:"name"` // 底图名称
|
||||
Url *string `gorm:"default:'';" json:"url"` // 底图地址
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Status *int64 `gorm:"default:1;" json:"status"` // 状态值,1正常0删除
|
||||
}
|
||||
type FsProductTemplateBasemapModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,26 +6,26 @@ import (
|
|||
|
||||
// fs_product_template_element 云渲染配置表
|
||||
type FsProductTemplateElement struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||||
Title *string `gorm:"default:'';" json:"title"` // 产品模板名称
|
||||
ProductTemplateId *int64 `gorm:"index;default:'0';" json:"product_template_id"` // 产品模板id
|
||||
Main *string `gorm:"default:'';" json:"main"` //
|
||||
Second *string `gorm:"default:'';" json:"second"` //
|
||||
Base *string `gorm:"default:'';" json:"base"` //
|
||||
Paper *string `gorm:"default:'';" json:"paper"` //
|
||||
Spoon *string `gorm:"default:'';" json:"spoon"` //
|
||||
Fork *string `gorm:"default:'';" json:"fork"` //
|
||||
Toothpick *string `gorm:"default:'';" json:"toothpick"` //
|
||||
Chopsticks *string `gorm:"default:'';" json:"chopsticks"` //
|
||||
Shadow *string `gorm:"default:'';" json:"shadow"` //
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
Cover1 *string `gorm:"default:'';" json:"cover1"` //
|
||||
Mode *string `gorm:"default:'';" json:"mode"` //
|
||||
Light *int64 `gorm:"default:'0';" json:"light"` //
|
||||
Rotation *string `gorm:"default:'';" json:"rotation"` //
|
||||
Scale *string `gorm:"default:'';" json:"scale"` //
|
||||
ModelP *string `gorm:"default:'';" json:"model_p"` // 配件对应的云渲染贴图数据
|
||||
Refletion *string `gorm:"default:'';" json:"refletion"` // 反射探头组
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
Title *string `gorm:"default:'';" json:"title"` // 产品模板名称
|
||||
ProductTemplateId *int64 `gorm:"index;default:0;" json:"product_template_id"` // 产品模板id
|
||||
Main *string `gorm:"default:'';" json:"main"` //
|
||||
Second *string `gorm:"default:'';" json:"second"` //
|
||||
Base *string `gorm:"default:'';" json:"base"` //
|
||||
Paper *string `gorm:"default:'';" json:"paper"` //
|
||||
Spoon *string `gorm:"default:'';" json:"spoon"` //
|
||||
Fork *string `gorm:"default:'';" json:"fork"` //
|
||||
Toothpick *string `gorm:"default:'';" json:"toothpick"` //
|
||||
Chopsticks *string `gorm:"default:'';" json:"chopsticks"` //
|
||||
Shadow *string `gorm:"default:'';" json:"shadow"` //
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
Cover1 *string `gorm:"default:'';" json:"cover1"` //
|
||||
Mode *string `gorm:"default:'';" json:"mode"` //
|
||||
Light *int64 `gorm:"default:0;" json:"light"` //
|
||||
Rotation *string `gorm:"default:'';" json:"rotation"` //
|
||||
Scale *string `gorm:"default:'';" json:"scale"` //
|
||||
ModelP *string `gorm:"default:'';" json:"model_p"` // 配件对应的云渲染贴图数据
|
||||
Refletion *string `gorm:"default:'';" json:"refletion"` // 反射探头组
|
||||
}
|
||||
type FsProductTemplateElementModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,17 +6,17 @@ import (
|
|||
|
||||
// fs_product_template 产品模板表(已废弃)
|
||||
type FsProductTemplate struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
ProductId *uint64 `gorm:"index;default:'0';" json:"product_id"` // 产品ID
|
||||
Title *string `gorm:"default:'';" json:"title"` // 标题描述
|
||||
Sort *uint64 `gorm:"default:'0';" json:"sort"` // 排序
|
||||
Ctime *uint64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
ModelInfo *string `gorm:"default:'';" json:"model_info"` // 模型详情
|
||||
MaterialId *uint64 `gorm:"default:'0';" json:"material_id"` // 材质ID
|
||||
SizeId *uint64 `gorm:"default:'0';" json:"size_id"` // 尺寸ID
|
||||
Status *uint64 `gorm:"default:'0';" json:"status"` // 状态位 显示 删除
|
||||
LogoWidth *int64 `gorm:"default:'0';" json:"logo_width"` // logo图最大宽度
|
||||
LogoHeight *int64 `gorm:"default:'0';" json:"logo_height"` // logo图最大高度
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
ProductId *uint64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
Title *string `gorm:"default:'';" json:"title"` // 标题描述
|
||||
Sort *uint64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
Ctime *uint64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
ModelInfo *string `gorm:"default:'';" json:"model_info"` // 模型详情
|
||||
MaterialId *uint64 `gorm:"default:0;" json:"material_id"` // 材质ID
|
||||
SizeId *uint64 `gorm:"default:0;" json:"size_id"` // 尺寸ID
|
||||
Status *uint64 `gorm:"default:0;" json:"status"` // 状态位 显示 删除
|
||||
LogoWidth *int64 `gorm:"default:0;" json:"logo_width"` // logo图最大宽度
|
||||
LogoHeight *int64 `gorm:"default:0;" json:"logo_height"` // logo图最大高度
|
||||
}
|
||||
type FsProductTemplateModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
13
model/gmodel/fs_product_template_tags_gen.go
Executable file → Normal file
13
model/gmodel/fs_product_template_tags_gen.go
Executable file → Normal file
|
@ -4,15 +4,14 @@ import (
|
|||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_product_template_tags 模板标签表
|
||||
type FsProductTemplateTags struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"` // ID
|
||||
Title *string `gorm:"default:''" json:"title"` // 标题
|
||||
Status *int64 `gorm:"default:1" json:"status"` // 状态 1:可用 0不可用
|
||||
CreateAt *int64 `gorm:"default:0" json:"create_at"` // 创建时间
|
||||
}
|
||||
type FsProductTemplateTagsModel struct {
|
||||
db *gorm.DB
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
Title *string `gorm:"default:'';" json:"title"` // 标题
|
||||
Status *uint64 `gorm:"default:0;" json:"status"` // 状态 1:可用
|
||||
CreateAt *uint64 `gorm:"default:0;" json:"create_at"` // 创建时间
|
||||
}
|
||||
type FsProductTemplateTagsModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsProductTemplateTagsModel(db *gorm.DB) *FsProductTemplateTagsModel {
|
||||
return &FsProductTemplateTagsModel{db}
|
||||
|
|
37
model/gmodel/fs_product_template_v2_gen.go
Executable file → Normal file
37
model/gmodel/fs_product_template_v2_gen.go
Executable file → Normal file
|
@ -4,27 +4,26 @@ import (
|
|||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_product_template_v2 产品-模型-模板表
|
||||
type FsProductTemplateV2 struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"`
|
||||
ProductId *int64 `gorm:"default:0" json:"product_id"` // 产品ID
|
||||
ModelId *int64 `gorm:"default:0" json:"model_id"` // 模型ID
|
||||
Title *string `gorm:"default:''" json:"title"` // 模板(sku),预留字段
|
||||
Name *string `gorm:"default:''" json:"name"` // 名称
|
||||
CoverImg *string `gorm:"default:''" json:"cover_img"` // 模板背景图
|
||||
TemplateInfo *string `gorm:"default:''" json:"template_info"` // 模板详情
|
||||
MaterialImg *string `gorm:"default:''" json:"material_img"` // 合成好的贴图
|
||||
Sort *int64 `gorm:"default:0" json:"sort"` // 排序
|
||||
LogoWidth *int64 `gorm:"default:0" json:"logo_width"` // logo图最大宽度
|
||||
LogoHeight *int64 `gorm:"default:0" json:"logo_height"` // logo图最大高度
|
||||
IsPublic *int64 `gorm:"default:0" json:"is_public"` // 是否可公用(1:可以,0:不可以)
|
||||
Status *int64 `gorm:"default:1" json:"status"` // 状态1正常 2异常
|
||||
Ctime *int64 `gorm:"default:0" json:"ctime"` // 添加时间
|
||||
Tag *string `gorm:"default:''" json:"tag"` // 标签(用户自填)
|
||||
IsDel *int64 `gorm:"default:0" json:"is_del"` // 是否删除 1删除
|
||||
}
|
||||
type FsProductTemplateV2Model struct {
|
||||
db *gorm.DB
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
ProductId *uint64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
ModelId *int64 `gorm:"default:0;" json:"model_id"` // 模型ID
|
||||
Title *string `gorm:"default:'';" json:"title"` // 模板(sku),预留字段
|
||||
Name *string `gorm:"default:'';" json:"name"` // 名称
|
||||
CoverImg *string `gorm:"default:'';" json:"cover_img"` //
|
||||
TemplateInfo *string `gorm:"default:'';" json:"template_info"` // 模板详情
|
||||
MaterialImg *string `gorm:"default:'';" json:"material_img"` //
|
||||
Sort *uint64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
LogoWidth *int64 `gorm:"default:0;" json:"logo_width"` // logo图最大宽度
|
||||
LogoHeight *int64 `gorm:"default:0;" json:"logo_height"` // logo图最大高度
|
||||
IsPublic *int64 `gorm:"default:0;" json:"is_public"` // 是否可公用(1:可以,0:不可以)
|
||||
Status *uint64 `gorm:"default:0;" json:"status"` // 状态1正常 2异常
|
||||
Ctime *uint64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Tag *string `gorm:"default:'';" json:"tag"` // 标签(用户自填)
|
||||
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除 1删除
|
||||
}
|
||||
type FsProductTemplateV2Model struct{ db *gorm.DB }
|
||||
|
||||
func NewFsProductTemplateV2Model(db *gorm.DB) *FsProductTemplateV2Model {
|
||||
return &FsProductTemplateV2Model{db}
|
||||
|
|
|
@ -6,30 +6,30 @@ import (
|
|||
|
||||
// fs_product_v2_tmp 产品表
|
||||
type FsProductV2Tmp struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 商品编号 P98f087j
|
||||
Type *int64 `gorm:"default:'0';" json:"type"` // 分类ID
|
||||
Type *int64 `gorm:"default:0;" json:"type"` // 分类ID
|
||||
Title *string `gorm:"default:'';" json:"title"` // 名称
|
||||
TitleCn *string `gorm:"default:'';" json:"title_cn"` // 中文名称
|
||||
Imgs *string `gorm:"default:'';" json:"imgs"` // 一个或多个介绍图或视频
|
||||
Keywords *string `gorm:"default:'';" json:"keywords"` // 关键字
|
||||
Intro *string `gorm:"default:'';" json:"intro"` // 简要描述
|
||||
Sort *int64 `gorm:"default:'0';" json:"sort"` // 排序
|
||||
SelledNum *int64 `gorm:"default:'0';" json:"selled_num"` // 已卖数量
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` //
|
||||
View *int64 `gorm:"default:'0';" json:"view"` // 浏览量
|
||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
SelledNum *int64 `gorm:"default:0;" json:"selled_num"` // 已卖数量
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
View *int64 `gorm:"default:0;" json:"view"` // 浏览量
|
||||
SizeIds *string `gorm:"default:'';" json:"size_ids"` //
|
||||
MaterialIds *string `gorm:"default:'';" json:"material_ids"` // 材质 1,2,3
|
||||
TagIds *string `gorm:"default:'';" json:"tag_ids"` //
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态位 弃用
|
||||
ProduceDays *uint64 `gorm:"default:'0';" json:"produce_days"` // 生产天数
|
||||
DeliveryDays *uint64 `gorm:"default:'0';" json:"delivery_days"` // 运送天数
|
||||
IsShelf *int64 `gorm:"default:'1';" json:"is_shelf"` // 是否上架
|
||||
IsRecommend *int64 `gorm:"default:'1';" json:"is_recommend"` // 是否推荐
|
||||
IsHot *int64 `gorm:"default:'1';" json:"is_hot"` // 是否热销
|
||||
IsProtection *int64 `gorm:"default:'1';" json:"is_protection"` // 是否环保
|
||||
IsMicrowave *int64 `gorm:"default:'1';" json:"is_microwave"` // 是否可微波炉
|
||||
IsDel *int64 `gorm:"default:'0';" json:"is_del"` // 是否删除
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 弃用
|
||||
ProduceDays *uint64 `gorm:"default:0;" json:"produce_days"` // 生产天数
|
||||
DeliveryDays *uint64 `gorm:"default:0;" json:"delivery_days"` // 运送天数
|
||||
IsShelf *int64 `gorm:"default:1;" json:"is_shelf"` // 是否上架
|
||||
IsRecommend *int64 `gorm:"default:1;" json:"is_recommend"` // 是否推荐
|
||||
IsHot *int64 `gorm:"default:1;" json:"is_hot"` // 是否热销
|
||||
IsProtection *int64 `gorm:"default:1;" json:"is_protection"` // 是否环保
|
||||
IsMicrowave *int64 `gorm:"default:1;" json:"is_microwave"` // 是否可微波炉
|
||||
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除
|
||||
RecommendProduct *string `gorm:"default:'';" json:"recommend_product"` //
|
||||
RecommendProductSort *string `gorm:"default:'';" json:"recommend_product_sort"` //
|
||||
}
|
||||
|
|
|
@ -6,15 +6,15 @@ import (
|
|||
|
||||
// fs_qrcode
|
||||
type FsQrcode struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
Title *string `gorm:"default:'';" json:"title"` // 名称
|
||||
TagId *uint64 `gorm:"index;default:'0';" json:"tag_id"` // 用户id
|
||||
ScanTimes *uint64 `gorm:"default:'0';" json:"scan_times"` // 扫码次数
|
||||
CreateAt *uint64 `gorm:"default:'0';" json:"create_at"` // 添加时间
|
||||
Link *string `gorm:"index;default:'';" json:"link"` // 跳转链接
|
||||
SvgPath *string `gorm:"default:'';" json:"svg_path"` // svg地址
|
||||
Status *uint64 `gorm:"default:'1';" json:"status"` // 状态:1:正常 0:下架
|
||||
ProductId *int64 `gorm:"default:'0';" json:"product_id"` // 0
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Title *string `gorm:"default:'';" json:"title"` // 名称
|
||||
TagId *uint64 `gorm:"index;default:0;" json:"tag_id"` // 用户id
|
||||
ScanTimes *uint64 `gorm:"default:0;" json:"scan_times"` // 扫码次数
|
||||
CreateAt *uint64 `gorm:"default:0;" json:"create_at"` // 添加时间
|
||||
Link *string `gorm:"index;default:'';" json:"link"` // 跳转链接
|
||||
SvgPath *string `gorm:"default:'';" json:"svg_path"` // svg地址
|
||||
Status *uint64 `gorm:"default:1;" json:"status"` // 状态:1:正常 0:下架
|
||||
ProductId *int64 `gorm:"default:0;" json:"product_id"` // 0
|
||||
}
|
||||
type FsQrcodeModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,13 +6,13 @@ import (
|
|||
|
||||
// fs_qrcode_log 二维码扫描日志
|
||||
type FsQrcodeLog struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` // ID
|
||||
Title *string `gorm:"default:'';" json:"title"` // 二维码名称
|
||||
QrcodeId *uint64 `gorm:"default:'0';" json:"qrcode_id"` // 二维码ID
|
||||
TagId *uint64 `gorm:"default:'0';" json:"tag_id"` // 分组ID
|
||||
CreateAt *uint64 `gorm:"default:'0';" json:"create_at"` // 创建时间
|
||||
Platform *string `gorm:"default:'';" json:"platform"` //
|
||||
UserAgent *string `gorm:"default:'';" json:"user_agent"` //
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
Title *string `gorm:"default:'';" json:"title"` // 二维码名称
|
||||
QrcodeId *uint64 `gorm:"default:0;" json:"qrcode_id"` // 二维码ID
|
||||
TagId *uint64 `gorm:"default:0;" json:"tag_id"` // 分组ID
|
||||
CreateAt *uint64 `gorm:"default:0;" json:"create_at"` // 创建时间
|
||||
Platform *string `gorm:"default:'';" json:"platform"` //
|
||||
UserAgent *string `gorm:"default:'';" json:"user_agent"` //
|
||||
}
|
||||
type FsQrcodeLogModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
33
model/gmodel/fs_qrcode_set_gen.go
Executable file → Normal file
33
model/gmodel/fs_qrcode_set_gen.go
Executable file → Normal file
|
@ -4,24 +4,21 @@ import (
|
|||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_qrcode_set 二维码边框配置表
|
||||
type FsQrcodeSet struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"` // id
|
||||
Name *string `gorm:"default:''" json:"name"` // 二维码组件名称
|
||||
Size *int64 `gorm:"default:0" json:"size"` // 二维码内容尺寸
|
||||
IndexX *int64 `gorm:"default:0" json:"index_x"` // x偏移量
|
||||
IndexY *int64 `gorm:"default:0" json:"index_y"` // y偏移量
|
||||
SvgWebsite *string `gorm:"default:''" json:"svg_website"` // website d数据
|
||||
SvgInstagram *string `gorm:"default:''" json:"svg_instagram"` // svg instagram d数据
|
||||
SvgFacebook *string `gorm:"default:''" json:"svg_facebook"` // svg facebook d数据
|
||||
Status *int64 `gorm:"default:1" json:"status"` // 状态 1正常 1删除
|
||||
AdminId *int64 `gorm:"default:0" json:"admin_id"` // 操作人
|
||||
Ctime *int64 `gorm:"default:0" json:"ctime"` // 添加时间
|
||||
Utime *int64 `gorm:"default:0" json:"utime"` // 更新时间
|
||||
}
|
||||
type FsQrcodeSetModel struct {
|
||||
db *gorm.DB
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
Name *string `gorm:"default:'';" json:"name"` // 二维码组件名称
|
||||
Size *int64 `gorm:"default:0;" json:"size"` // 二维码内容尺寸
|
||||
IndexX *int64 `gorm:"default:0;" json:"index_x"` // x偏移量
|
||||
IndexY *int64 `gorm:"default:0;" json:"index_y"` // y偏移量
|
||||
SvgWebsite *string `gorm:"default:'';" json:"svg_website"` // website d数据
|
||||
SvgInstagram *string `gorm:"default:'';" json:"svg_instagram"` // svg instagram d数据
|
||||
SvgFacebook *string `gorm:"default:'';" json:"svg_facebook"` // svg facebook d数据
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态
|
||||
AdminId *int64 `gorm:"default:0;" json:"admin_id"` // 操作人
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Utime *int64 `gorm:"default:0;" json:"utime"` // 更新时间
|
||||
}
|
||||
type FsQrcodeSetModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsQrcodeSetModel(db *gorm.DB) *FsQrcodeSetModel {
|
||||
return &FsQrcodeSetModel{db}
|
||||
}
|
||||
func NewFsQrcodeSetModel(db *gorm.DB) *FsQrcodeSetModel { return &FsQrcodeSetModel{db} }
|
||||
|
|
|
@ -6,10 +6,10 @@ import (
|
|||
|
||||
// fs_qrcode_user 二维码-用户名表
|
||||
type FsQrcodeUser struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||||
Name *string `gorm:"index;default:'';" json:"name"` // 用户名
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态 1正常0删除
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
Name *string `gorm:"index;default:'';" json:"name"` // 用户名
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态 1正常0删除
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsQrcodeUserModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,20 +6,20 @@ import (
|
|||
|
||||
// fs_quotation 报价单信息表
|
||||
type FsQuotation struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // ID
|
||||
CanteenName *string `gorm:"index;default:'';" json:"canteen_name"` // 餐厅名
|
||||
CanteenType *int64 `gorm:"index;default:'0';" json:"canteen_type"` // 餐厅类别id
|
||||
SalerId *int64 `gorm:"index;default:'0';" json:"saler_id"` // 业务员id
|
||||
Cover *string `gorm:"default:'';" json:"cover"` // 合集图
|
||||
PageNum *int64 `gorm:"default:'0';" json:"page_num"` // 页数
|
||||
ProductNum *int64 `gorm:"default:'0';" json:"product_num"` // 产品数量
|
||||
GiftNum *int64 `gorm:"default:'0';" json:"gift_num"` // 赠品数
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态位 0停用 1待设计 2设计中 3待报价 4报价中 5完成
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
DesignId *int64 `gorm:"default:'0';" json:"design_id"` // 设计人员
|
||||
QuotationId *int64 `gorm:"default:'0';" json:"quotation_id"` // 报价人员
|
||||
IsMark *int64 `gorm:"default:'0';" json:"is_mark"` // 星标
|
||||
Qid *int64 `gorm:"default:'0';" json:"qid"` //
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
CanteenName *string `gorm:"index;default:'';" json:"canteen_name"` // 餐厅名
|
||||
CanteenType *int64 `gorm:"index;default:0;" json:"canteen_type"` // 餐厅类别id
|
||||
SalerId *int64 `gorm:"index;default:0;" json:"saler_id"` // 业务员id
|
||||
Cover *string `gorm:"default:'';" json:"cover"` // 合集图
|
||||
PageNum *int64 `gorm:"default:0;" json:"page_num"` // 页数
|
||||
ProductNum *int64 `gorm:"default:0;" json:"product_num"` // 产品数量
|
||||
GiftNum *int64 `gorm:"default:0;" json:"gift_num"` // 赠品数
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 0停用 1待设计 2设计中 3待报价 4报价中 5完成
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
DesignId *int64 `gorm:"default:0;" json:"design_id"` // 设计人员
|
||||
QuotationId *int64 `gorm:"default:0;" json:"quotation_id"` // 报价人员
|
||||
IsMark *int64 `gorm:"default:0;" json:"is_mark"` // 星标
|
||||
Qid *int64 `gorm:"default:0;" json:"qid"` //
|
||||
}
|
||||
type FsQuotationModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,20 +6,20 @@ import (
|
|||
|
||||
// fs_quotation_product 报价单产品表
|
||||
type FsQuotationProduct struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // ID
|
||||
QuotationId *int64 `gorm:"index;default:'0';" json:"quotation_id"` // 报价单id
|
||||
Name *string `gorm:"default:'';" json:"name"` // 产品名
|
||||
Size *string `gorm:"default:'';" json:"size"` // 产品规格
|
||||
Cycle *int64 `gorm:"default:'0';" json:"cycle"` // 交付周期
|
||||
IsGift *int64 `gorm:"default:'0';" json:"is_gift"` // 是否赠品
|
||||
Img *string `gorm:"default:'';" json:"img"` // 效果图
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态位 1启用0停用
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Sort *int64 `gorm:"default:'0';" json:"sort"` // 排序
|
||||
Sid *string `gorm:"default:'';" json:"sid"` // 前端sid
|
||||
PriceInfo *string `gorm:"default:'';" json:"price_info"` // 价格信息
|
||||
Remark *string `gorm:"default:'';" json:"remark"` // 备注
|
||||
Num *int64 `gorm:"default:'0';" json:"num"` // 产品数量
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
QuotationId *int64 `gorm:"index;default:0;" json:"quotation_id"` // 报价单id
|
||||
Name *string `gorm:"default:'';" json:"name"` // 产品名
|
||||
Size *string `gorm:"default:'';" json:"size"` // 产品规格
|
||||
Cycle *int64 `gorm:"default:0;" json:"cycle"` // 交付周期
|
||||
IsGift *int64 `gorm:"default:0;" json:"is_gift"` // 是否赠品
|
||||
Img *string `gorm:"default:'';" json:"img"` // 效果图
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 1启用0停用
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
Sid *string `gorm:"default:'';" json:"sid"` // 前端sid
|
||||
PriceInfo *string `gorm:"default:'';" json:"price_info"` // 价格信息
|
||||
Remark *string `gorm:"default:'';" json:"remark"` // 备注
|
||||
Num *int64 `gorm:"default:0;" json:"num"` // 产品数量
|
||||
}
|
||||
type FsQuotationProductModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,10 +6,10 @@ import (
|
|||
|
||||
// fs_quotation_remark_template 报价单备注模板
|
||||
type FsQuotationRemarkTemplate struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // ID
|
||||
Content *string `gorm:"default:'';" json:"content"` //
|
||||
Status *int64 `gorm:"default:'1';" json:"status"` // 状态 1启用0停用
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
Content *string `gorm:"default:'';" json:"content"` //
|
||||
Status *int64 `gorm:"default:1;" json:"status"` // 状态 1启用0停用
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsQuotationRemarkTemplateModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,12 +6,12 @@ import (
|
|||
|
||||
// fs_quotation_saler 报价单业务员表
|
||||
type FsQuotationSaler struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // ID
|
||||
Name *string `gorm:"default:'';" json:"name"` // 业务员姓名
|
||||
Phone *string `gorm:"default:'';" json:"phone"` // 联系电话
|
||||
Email *string `gorm:"default:'';" json:"email"` // 联系邮箱
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态位 1启用0停用
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
Name *string `gorm:"default:'';" json:"name"` // 业务员姓名
|
||||
Phone *string `gorm:"default:'';" json:"phone"` // 联系电话
|
||||
Email *string `gorm:"default:'';" json:"email"` // 联系邮箱
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 1启用0停用
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsQuotationSalerModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,16 +6,16 @@ import (
|
|||
|
||||
// fs_refund_reason
|
||||
type FsRefundReason struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
RefundReasonId *int64 `gorm:"index;default:'0';" json:"refund_reason_id"` // 退款原因id
|
||||
RefundReason *string `gorm:"default:'';" json:"refund_reason"` // 退款原因
|
||||
OrderId *int64 `gorm:"default:'0';" json:"order_id"` // 订单id
|
||||
IsRefund *int64 `gorm:"default:'0';" json:"is_refund"` // 0未退款 1已退款
|
||||
CreatedAt *int64 `gorm:"default:'0';" json:"created_at"` // 创建时间
|
||||
IsHandle *int64 `gorm:"default:'0';" json:"is_handle"` // 是否处理(后台)
|
||||
HandleRemark *string `gorm:"default:'';" json:"handle_remark"` // 处理结果
|
||||
HandleUid *int64 `gorm:"default:'0';" json:"handle_uid"` // 处理人
|
||||
HandleTime *int64 `gorm:"default:'0';" json:"handle_time"` // 处理时间
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
RefundReasonId *int64 `gorm:"index;default:0;" json:"refund_reason_id"` // 退款原因id
|
||||
RefundReason *string `gorm:"default:'';" json:"refund_reason"` // 退款原因
|
||||
OrderId *int64 `gorm:"default:0;" json:"order_id"` // 订单id
|
||||
IsRefund *int64 `gorm:"default:0;" json:"is_refund"` // 0未退款 1已退款
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
||||
IsHandle *int64 `gorm:"default:0;" json:"is_handle"` // 是否处理(后台)
|
||||
HandleRemark *string `gorm:"default:'';" json:"handle_remark"` // 处理结果
|
||||
HandleUid *int64 `gorm:"default:0;" json:"handle_uid"` // 处理人
|
||||
HandleTime *int64 `gorm:"default:0;" json:"handle_time"` // 处理时间
|
||||
}
|
||||
type FsRefundReasonModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
19
model/gmodel/fs_standard_logo_gen.go
Executable file → Normal file
19
model/gmodel/fs_standard_logo_gen.go
Executable file → Normal file
|
@ -4,17 +4,14 @@ import (
|
|||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_standard_logo 标准logo
|
||||
type FsStandardLogo struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"` // ID
|
||||
Name *string `gorm:"default:''" json:"name"` // logo名称
|
||||
Image *string `gorm:"default:''" json:"image"` // 图片地址
|
||||
Ctime *int64 `gorm:"default:0" json:"ctime"` // 添加时间
|
||||
Status *int64 `gorm:"default:1" json:"status"` // 状态 1正常 0删除
|
||||
}
|
||||
type FsStandardLogoModel struct {
|
||||
db *gorm.DB
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
Name *string `gorm:"default:'';" json:"name"` //
|
||||
Image *string `gorm:"default:'';" json:"image"` //
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Status *int64 `gorm:"default:1;" json:"status"` // 状态 1正常 0删除
|
||||
}
|
||||
type FsStandardLogoModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsStandardLogoModel(db *gorm.DB) *FsStandardLogoModel {
|
||||
return &FsStandardLogoModel{db}
|
||||
}
|
||||
func NewFsStandardLogoModel(db *gorm.DB) *FsStandardLogoModel { return &FsStandardLogoModel{db} }
|
||||
|
|
31
model/gmodel/fs_tags_gen.go
Executable file → Normal file
31
model/gmodel/fs_tags_gen.go
Executable file → Normal file
|
@ -4,23 +4,20 @@ import (
|
|||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_tags 产品分类表
|
||||
type FsTags struct {
|
||||
Id int64 `gorm:"primary_key" json:"id"` // ID
|
||||
Title *string `gorm:"default:''" json:"title"` // 标题
|
||||
Level *int64 `gorm:"default:0" json:"level"` // 层级、分类 1 => 二维码分类
|
||||
ClickNum *int64 `gorm:"default:0" json:"click_num"` // 点击次数
|
||||
Sort *int64 `gorm:"default:0" json:"sort"` // 排序(从大到小)
|
||||
CreateAt *int64 `gorm:"default:0" json:"create_at"` // 创建时间
|
||||
Icon *string `gorm:"default:''" json:"icon"` // 标签图标
|
||||
Status *int64 `gorm:"default:1" json:"status"` // 状态 1:可用
|
||||
Description *string `gorm:"default:''" json:"description"` // 介绍 Seo
|
||||
RecommendProduct *string `gorm:"default:''" json:"recommend_product"` // 推荐产品id例如: 1,3,4,5
|
||||
RecommendProductSort *string `gorm:"default:''" json:"recommend_product_sort"` // 推荐排序例如:1324
|
||||
}
|
||||
type FsTagsModel struct {
|
||||
db *gorm.DB
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
Title *string `gorm:"default:'';" json:"title"` // 标题
|
||||
Level *uint64 `gorm:"default:0;" json:"level"` // 层级、分类 1 => 二维码分类
|
||||
ClickNum *uint64 `gorm:"default:0;" json:"click_num"` // 点击次数
|
||||
Sort *uint64 `gorm:"default:0;" json:"sort"` // 排序(从大到小)
|
||||
CreateAt *uint64 `gorm:"default:0;" json:"create_at"` // 创建时间
|
||||
Icon *string `gorm:"default:'';" json:"icon"` //
|
||||
Status *uint64 `gorm:"default:1;" json:"status"` // 状态 1:可用
|
||||
Description *string `gorm:"default:'';" json:"description"` // 介绍 Seo
|
||||
RecommendProduct *string `gorm:"default:'';" json:"recommend_product"` //
|
||||
RecommendProductSort *string `gorm:"default:'';" json:"recommend_product_sort"` //
|
||||
}
|
||||
type FsTagsModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsTagsModel(db *gorm.DB) *FsTagsModel {
|
||||
return &FsTagsModel{db}
|
||||
}
|
||||
func NewFsTagsModel(db *gorm.DB) *FsTagsModel { return &FsTagsModel{db} }
|
||||
|
|
|
@ -6,15 +6,15 @@ import (
|
|||
|
||||
// fs_tool_logs 3d设计工具日志表
|
||||
type FsToolLogs struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // ID
|
||||
ProductId *int64 `gorm:"default:'0';" json:"product_id"` // 产品id
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
Img *string `gorm:"default:'';" json:"img"` //
|
||||
ModelId *int64 `gorm:"default:'0';" json:"model_id"` // 模型id
|
||||
PartId *int64 `gorm:"default:'0';" json:"part_id"` // 配件id
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Uid *int64 `gorm:"index;default:'0';" json:"uid"` // 3d设计用户
|
||||
Name *string `gorm:"default:'';" json:"name"` // 产品名称
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
ProductId *int64 `gorm:"default:0;" json:"product_id"` // 产品id
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
Img *string `gorm:"default:'';" json:"img"` //
|
||||
ModelId *int64 `gorm:"default:0;" json:"model_id"` // 模型id
|
||||
PartId *int64 `gorm:"default:0;" json:"part_id"` // 配件id
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Uid *int64 `gorm:"index;default:0;" json:"uid"` // 3d设计用户
|
||||
Name *string `gorm:"default:'';" json:"name"` // 产品名称
|
||||
}
|
||||
type FsToolLogsModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,16 +6,16 @@ import (
|
|||
|
||||
// fs_tool_template 设计工具模板(废弃)
|
||||
type FsToolTemplate struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` // ID
|
||||
Tid *uint64 `gorm:"default:'0';" json:"tid"` // 类别ID
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
Tid *uint64 `gorm:"default:0;" json:"tid"` // 类别ID
|
||||
Name *string `gorm:"unique_key;default:'';" json:"name"` // 名称
|
||||
Model *string `gorm:"default:'';" json:"model"` // 模板
|
||||
Material *string `gorm:"default:'';" json:"material"` // 材质图
|
||||
Aomap *string `gorm:"default:'';" json:"aoMap"` // ao材质图
|
||||
Normalmap *string `gorm:"default:'';" json:"normalMap"` // 法线材质图
|
||||
Roughnessmap *string `gorm:"default:'';" json:"roughnessMap"` // 粗糙材质图
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 1正常 0:禁用
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 1正常 0:禁用
|
||||
}
|
||||
type FsToolTemplateModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
|
||||
// fs_tool_user 3d设计工具用户表
|
||||
type FsToolUser struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // ID
|
||||
Username *string `gorm:"default:'';" json:"username"` // 用户名
|
||||
Password *string `gorm:"default:'';" json:"password"` // 密码
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态位 1正常0删除
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 创建时间
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
Username *string `gorm:"default:'';" json:"username"` // 用户名
|
||||
Password *string `gorm:"default:'';" json:"password"` // 密码
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 1正常0删除
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||
}
|
||||
type FsToolUserModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,17 +6,17 @@ import (
|
|||
|
||||
// fs_trade
|
||||
type FsTrade struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 本地交易号
|
||||
Type *int64 `gorm:"default:'0';" json:"type"` // 类型 运费 云仓费用 退款 等
|
||||
Type *int64 `gorm:"default:0;" json:"type"` // 类型 运费 云仓费用 退款 等
|
||||
PayType *string `gorm:"default:'';" json:"pay_type"` // 支付方式
|
||||
TradeSn *string `gorm:"unique_key;default:'';" json:"trade_sn"` // 三方交易号
|
||||
OrderId *int64 `gorm:"index;default:'0';" json:"order_id"` // 订单ID
|
||||
Amount *int64 `gorm:"default:'0';" json:"amount"` // 支付金额
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` //
|
||||
Utime *int64 `gorm:"default:'0';" json:"utime"` //
|
||||
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 订单ID
|
||||
Amount *int64 `gorm:"default:0;" json:"amount"` // 支付金额
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
Utime *int64 `gorm:"default:0;" json:"utime"` //
|
||||
Desc *string `gorm:"default:'';" json:"desc"` //
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` //
|
||||
Status *int64 `gorm:"default:0;" json:"status"` //
|
||||
}
|
||||
type FsTradeModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,14 +6,14 @@ import (
|
|||
|
||||
// fs_user_design 废弃表
|
||||
type FsUserDesign struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
UserId *int64 `gorm:"index;default:'0';" json:"user_id"` //
|
||||
ProductId *int64 `gorm:"index;default:'0';" json:"product_id"` // 产品ID
|
||||
TemplateId *int64 `gorm:"index;default:'0';" json:"template_id"` // 模型ID
|
||||
MaterialId *int64 `gorm:"index;default:'0';" json:"material_id"` // 材质ID
|
||||
SizeId *int64 `gorm:"index;default:'0';" json:"size_id"` // 尺寸ID
|
||||
Info *string `gorm:"default:'';" json:"info"` // 其他设计信息
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` //
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` //
|
||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模型ID
|
||||
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
||||
Info *string `gorm:"default:'';" json:"info"` // 其他设计信息
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
}
|
||||
type FsUserDesignModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -1,36 +1,38 @@
|
|||
package gmodel
|
||||
|
||||
import "gorm.io/gorm"
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_user 用户表
|
||||
type FsUser struct {
|
||||
Id int64 `gorm:"primary_key;" json:"id"` // ID
|
||||
FaceId *int64 `gorm:"default:0" json:"face_id"` // facebook的userid
|
||||
Sub *int64 `gorm:"default:0" json:"sub"` // google的sub
|
||||
FirstName *string `gorm:"default:''" json:"first_name"` // FirstName
|
||||
LastName *string `gorm:"default:''" json:"last_name"` // LastName
|
||||
Username *string `gorm:"default:''" json:"username"` // 用户名
|
||||
Company *string `gorm:"default:''" json:"company"` // 公司名称
|
||||
Mobile *string `gorm:"default:''" json:"mobile"` // 手机号码
|
||||
AuthKey *string `gorm:"default:''" json:"auth_key"`
|
||||
PasswordHash *string `gorm:"default:''" json:"password_hash"`
|
||||
VerificationToken *string `gorm:"default:''" json:"verification_token"`
|
||||
PasswordResetToken *string `gorm:"default:''" json:"password_reset_token"`
|
||||
Email *string `gorm:"default:''" json:"email"` // 邮箱
|
||||
Type *int64 `gorm:"default:1" json:"type"` // 1普通餐厅 2连锁餐厅
|
||||
Status *int64 `gorm:"default:1" json:"status"` // 1正常 0不正常
|
||||
IsDel *int64 `gorm:"default:0" json:"is_del"` // 是否删除 1删除
|
||||
CreatedAt *int64 `gorm:"default:0" json:"created_at"` // 添加时间
|
||||
UpdatedAt *int64 `gorm:"default:0" json:"updated_at"` // 更新时间
|
||||
IsOrderStatusEmail *int64 `gorm:"default:0" json:"is_order_status_email"` // 订单状态改变时是否接收邮件
|
||||
IsEmailAdvertisement *int64 `gorm:"default:0" json:"is_email_advertisement"` // 是否接收邮件广告
|
||||
IsOrderStatusPhone *int64 `gorm:"default:0" json:"is_order_status_phone"` // 订单状态改变是是否接收电话
|
||||
IsPhoneAdvertisement *int64 `gorm:"default:0" json:"is_phone_advertisement"` // 是否接收短信广告
|
||||
IsOpenRender *int64 `gorm:"default:0" json:"is_open_render"` // 是否打开个性化渲染(1:开启,0:关闭)
|
||||
IsThousandFace *int64 `gorm:"default:0" json:"is_thousand_face"` // 是否已经存在千人千面(1:存在,0:不存在)
|
||||
IsLowRendering *int64 `gorm:"default:0" json:"is_low_rendering"` // 是否开启低渲染模型渲染
|
||||
IsRemoveBg *int64 `gorm:"default:1" json:"is_remove_bg"` // 用户上传logo是否去除背景
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
FaceId *int64 `gorm:"default:0;" json:"face_id"` // facebook的userid
|
||||
Sub *int64 `gorm:"default:0;" json:"sub"` // google的sub
|
||||
FirstName *string `gorm:"default:'';" json:"first_name"` //
|
||||
LastName *string `gorm:"default:'';" json:"last_name"` //
|
||||
Username *string `gorm:"unique_key;default:'';" json:"username"` //
|
||||
Company *string `gorm:"default:'';" json:"company"` //
|
||||
Mobile *string `gorm:"default:'';" json:"mobile"` //
|
||||
AuthKey *string `gorm:"default:'';" json:"auth_key"` //
|
||||
PasswordHash *string `gorm:"default:'';" json:"password_hash"` //
|
||||
VerificationToken *string `gorm:"default:'';" json:"verification_token"` //
|
||||
PasswordResetToken *string `gorm:"unique_key;default:'';" json:"password_reset_token"` //
|
||||
Email *string `gorm:"unique_key;default:'';" json:"email"` // 邮箱
|
||||
Type *int64 `gorm:"default:0;" json:"type"` // 1普通餐厅 2连锁餐厅
|
||||
Status *uint64 `gorm:"default:1;" json:"status"` // 1正常 0不正常
|
||||
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除 1删除
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 添加时间
|
||||
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` // 更新时间
|
||||
IsOrderStatusEmail *int64 `gorm:"default:0;" json:"is_order_status_email"` // 订单状态改变时是否接收邮件
|
||||
IsEmailAdvertisement *int64 `gorm:"default:0;" json:"is_email_advertisement"` // 是否接收邮件广告
|
||||
IsOrderStatusPhone *int64 `gorm:"default:0;" json:"is_order_status_phone"` // 订单状态改变是是否接收电话
|
||||
IsPhoneAdvertisement *int64 `gorm:"default:0;" json:"is_phone_advertisement"` // 是否接收短信广告
|
||||
IsOpenRender *int64 `gorm:"default:0;" json:"is_open_render"` // 是否打开个性化渲染(1:开启,0:关闭)
|
||||
IsThousandFace *int64 `gorm:"default:0;" json:"is_thousand_face"` // 是否已经存在千人千面(1:存在,0:不存在)
|
||||
IsLowRendering *uint64 `gorm:"default:0;" json:"is_low_rendering"` //
|
||||
IsRemoveBg *int64 `gorm:"default:1;" json:"is_remove_bg"` // 用户上传logo是否去除背景
|
||||
}
|
||||
|
||||
type FsUserModel struct{ db *gorm.DB }
|
||||
|
||||
func NewFsUserModel(db *gorm.DB) *FsUserModel { return &FsUserModel{db} }
|
||||
|
|
|
@ -6,20 +6,20 @@ import (
|
|||
|
||||
// fs_user_stock 用户云仓库存
|
||||
type FsUserStock struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
CloudId *int64 `gorm:"index;default:'1';" json:"cloud_id"` // 云仓id
|
||||
UserId *int64 `gorm:"index;default:'0';" json:"user_id"` // user_id
|
||||
Production *int64 `gorm:"default:'0';" json:"production"` // 生产数量
|
||||
Stick *int64 `gorm:"default:'0';" json:"stick"` // 库存量
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
CloudId *int64 `gorm:"index;default:1;" json:"cloud_id"` // 云仓id
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // user_id
|
||||
Production *int64 `gorm:"default:0;" json:"production"` // 生产数量
|
||||
Stick *int64 `gorm:"default:0;" json:"stick"` // 库存量
|
||||
OrderDetailTemplateSn *string `gorm:"default:'';" json:"order_detail_template_sn"` // 订单模板表sn
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 是否显示 0不正常 1正常(显示)
|
||||
DesignId *int64 `gorm:"default:'0';" json:"design_id"` // 设计id
|
||||
EachBoxNum *int64 `gorm:"default:'0';" json:"each_box_num"` // 每箱个数
|
||||
EachBoxWeight *float64 `gorm:"default:'0.00';" json:"each_box_weight"` // 每箱重量
|
||||
TransNum *uint64 `gorm:"default:'0';" json:"trans_num"` // 在途数量
|
||||
ProductId *int64 `gorm:"default:'0';" json:"product_id"` // 产品id
|
||||
IsEmail *int64 `gorm:"default:'0';" json:"is_email"` // 是否发送邮件
|
||||
Utime *int64 `gorm:"default:'0';" json:"utime"` // 更新时间
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 是否显示 0不正常 1正常(显示)
|
||||
DesignId *int64 `gorm:"default:0;" json:"design_id"` // 设计id
|
||||
EachBoxNum *int64 `gorm:"default:0;" json:"each_box_num"` // 每箱个数
|
||||
EachBoxWeight *float64 `gorm:"default:0.00;" json:"each_box_weight"` // 每箱重量
|
||||
TransNum *uint64 `gorm:"default:0;" json:"trans_num"` // 在途数量
|
||||
ProductId *int64 `gorm:"default:0;" json:"product_id"` // 产品id
|
||||
IsEmail *int64 `gorm:"default:0;" json:"is_email"` // 是否发送邮件
|
||||
Utime *int64 `gorm:"default:0;" json:"utime"` // 更新时间
|
||||
}
|
||||
type FsUserStockModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
|
||||
// fs_web_set 网站配置表
|
||||
type FsWebSet struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||||
Key *string `gorm:"index;default:'';" json:"key"` // key值
|
||||
Value *string `gorm:"default:'';" json:"value"` // 具体内容
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 创建时间
|
||||
ExpTime *int64 `gorm:"default:'0';" json:"exp_time"` //
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
Key *string `gorm:"index;default:'';" json:"key"` // key值
|
||||
Value *string `gorm:"default:'';" json:"value"` // 具体内容
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||
ExpTime *int64 `gorm:"default:0;" json:"exp_time"` //
|
||||
}
|
||||
type FsWebSetModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,20 +6,20 @@ import (
|
|||
|
||||
// fs_address 用户地址表
|
||||
type FsAddress struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
UserId *uint64 `gorm:"index;default:'0';" json:"user_id"` // 用户ID
|
||||
Name *string `gorm:"default:'';" json:"name"` // 地址名称
|
||||
FirstName *string `gorm:"default:'';" json:"first_name"` // FirstName
|
||||
LastName *string `gorm:"default:'';" json:"last_name"` // LastName
|
||||
Mobile *string `gorm:"default:'';" json:"mobile"` // 手机号码
|
||||
Street *string `gorm:"default:'';" json:"street"` // 街道
|
||||
Suite *string `gorm:"default:'';" json:"suite"` // 房号
|
||||
City *string `gorm:"default:'';" json:"city"` // 城市
|
||||
State *string `gorm:"default:'';" json:"state"` // 州名
|
||||
Country *string `gorm:"default:'';" json:"country"` // 国家
|
||||
ZipCode *string `gorm:"default:'';" json:"zip_code"` // 邮编
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 1正常 0异常
|
||||
IsDefault *int64 `gorm:"default:'0';" json:"is_default"` // 1默认地址,0非默认地址
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
UserId *uint64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
|
||||
Name *string `gorm:"default:'';" json:"name"` // 地址名称
|
||||
FirstName *string `gorm:"default:'';" json:"first_name"` // FirstName
|
||||
LastName *string `gorm:"default:'';" json:"last_name"` // LastName
|
||||
Mobile *string `gorm:"default:'';" json:"mobile"` // 手机号码
|
||||
Street *string `gorm:"default:'';" json:"street"` // 街道
|
||||
Suite *string `gorm:"default:'';" json:"suite"` // 房号
|
||||
City *string `gorm:"default:'';" json:"city"` // 城市
|
||||
State *string `gorm:"default:'';" json:"state"` // 州名
|
||||
Country *string `gorm:"default:'';" json:"country"` // 国家
|
||||
ZipCode *string `gorm:"default:'';" json:"zip_code"` // 邮编
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 1正常 0异常
|
||||
IsDefault *int64 `gorm:"default:0;" json:"is_default"` // 1默认地址,0非默认地址
|
||||
}
|
||||
type FsAddressModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
type FsAuthAssignment struct {
|
||||
ItemName *string `gorm:"index;default:'';" json:"item_name"` // 角色或权限名称
|
||||
UserId *string `gorm:"index;default:'';" json:"user_id"` // 用户ID
|
||||
CreatedAt *int64 `gorm:"default:'0';" json:"created_at"` // 创建时间
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
||||
// FsAuthAssignmentIbfk1 foreign `gorm:"" json:"fs_auth_assignment_ibfk_1"`//
|
||||
}
|
||||
type FsAuthAssignmentModel struct{ db *gorm.DB }
|
||||
|
|
|
@ -7,12 +7,12 @@ import (
|
|||
// fs_auth_item 用户角色和权限信息
|
||||
type FsAuthItem struct {
|
||||
Name string `gorm:"primary_key;default:'';" json:"name"` // 角色或权限名称
|
||||
Type *int64 `gorm:"index;default:'0';" json:"type"` // 权限类型:1 表示角色,2 表示权限
|
||||
Type *int64 `gorm:"index;default:0;" json:"type"` // 权限类型:1 表示角色,2 表示权限
|
||||
Description *string `gorm:"default:'';" json:"description"` // 角色或权限描述
|
||||
RuleName *string `gorm:"index;default:'';" json:"rule_name"` //
|
||||
Data *[]byte `gorm:"default:'';" json:"data"` // 角色或权限的额外数据
|
||||
CreatedAt *int64 `gorm:"default:'0';" json:"created_at"` //
|
||||
UpdatedAt *int64 `gorm:"default:'0';" json:"updated_at"` //
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` //
|
||||
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` //
|
||||
// FsAuthItemIbfk1 foreign `gorm:"" json:"fs_auth_item_ibfk_1"`//
|
||||
}
|
||||
type FsAuthItemModel struct{ db *gorm.DB }
|
||||
|
|
|
@ -8,8 +8,8 @@ import (
|
|||
type FsAuthRule struct {
|
||||
Name string `gorm:"primary_key;default:'';" json:"name"` // 规则名称
|
||||
Data *[]byte `gorm:"default:'';" json:"data"` // 规则的额外数据
|
||||
CreatedAt *int64 `gorm:"default:'0';" json:"created_at"` //
|
||||
UpdatedAt *int64 `gorm:"default:'0';" json:"updated_at"` //
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` //
|
||||
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` //
|
||||
}
|
||||
type FsAuthRuleModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,14 +6,14 @@ import (
|
|||
|
||||
// fs_canteen_product 餐厅类别产品对应表
|
||||
type FsCanteenProduct struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // ID
|
||||
CanteenType *int64 `gorm:"index;default:'0';" json:"canteen_type"` // 餐厅类别id
|
||||
ProductId *int64 `gorm:"default:'0';" json:"product_id"` // 产品id
|
||||
SizeId *int64 `gorm:"default:'0';" json:"size_id"` // 尺寸id
|
||||
Sort *int64 `gorm:"default:'0';" json:"sort"` // 排序
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态位 1启用0停用
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Sid *string `gorm:"default:'';" json:"sid"` // 前端带入的id
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
CanteenType *int64 `gorm:"index;default:0;" json:"canteen_type"` // 餐厅类别id
|
||||
ProductId *int64 `gorm:"default:0;" json:"product_id"` // 产品id
|
||||
SizeId *int64 `gorm:"default:0;" json:"size_id"` // 尺寸id
|
||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 1启用0停用
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Sid *string `gorm:"default:'';" json:"sid"` // 前端带入的id
|
||||
}
|
||||
type FsCanteenProductModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
|
||||
// fs_canteen_type 餐厅类型表
|
||||
type FsCanteenType struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // ID
|
||||
Name *string `gorm:"default:'';" json:"name"` // 餐厅名字
|
||||
Sort *int64 `gorm:"default:'0';" json:"sort"` // 排序
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 状态位 1启用0停用
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
Name *string `gorm:"default:'';" json:"name"` // 餐厅名字
|
||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 1启用0停用
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsCanteenTypeModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
|
||||
// fs_card 卡号表
|
||||
type FsCard struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // Id
|
||||
CardNo *string `gorm:"default:'';" json:"card_no"` // 卡号
|
||||
GroupId *int64 `gorm:"default:'0';" json:"group_id"` // 分组id
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 创建时间
|
||||
CardNum *string `gorm:"default:'';" json:"card_num"` // 卡号 无空格
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // Id
|
||||
CardNo *string `gorm:"default:'';" json:"card_no"` // 卡号
|
||||
GroupId *int64 `gorm:"default:0;" json:"group_id"` // 分组id
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||
CardNum *string `gorm:"default:'';" json:"card_num"` // 卡号 无空格
|
||||
}
|
||||
type FsCardModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
|
||||
// fs_card_group 卡号分组表
|
||||
type FsCardGroup struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||||
GroupName *string `gorm:"default:'';" json:"group_name"` // 分组名字
|
||||
PreNo *string `gorm:"default:'';" json:"pre_no"` // 规则前几位数
|
||||
Num *int64 `gorm:"default:'0';" json:"num"` // 生成数量
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` //
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
GroupName *string `gorm:"default:'';" json:"group_name"` // 分组名字
|
||||
PreNo *string `gorm:"default:'';" json:"pre_no"` // 规则前几位数
|
||||
Num *int64 `gorm:"default:0;" json:"num"` // 生成数量
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
}
|
||||
type FsCardGroupModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -7,22 +7,22 @@ import (
|
|||
|
||||
// fs_cart 购物车
|
||||
type FsCart struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||||
UserId *uint64 `gorm:"index;default:'0';" json:"user_id"` //
|
||||
ProductId *uint64 `gorm:"index;default:'0';" json:"product_id"` // 产品ID
|
||||
TemplateId *uint64 `gorm:"index;default:'0';" json:"template_id"` // 模板ID
|
||||
PriceId *uint64 `gorm:"index;default:'0';" json:"price_id"` // 价格ID
|
||||
MaterialId *uint64 `gorm:"index;default:'0';" json:"material_id"` // 材质ID
|
||||
SizeId *uint64 `gorm:"index;default:'0';" json:"size_id"` // 尺寸ID
|
||||
BuyNum *uint64 `gorm:"default:'0';" json:"buy_num"` // 购买数量
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
UserId *uint64 `gorm:"index;default:0;" json:"user_id"` //
|
||||
ProductId *uint64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
TemplateId *uint64 `gorm:"index;default:0;" json:"template_id"` // 模板ID
|
||||
PriceId *uint64 `gorm:"index;default:0;" json:"price_id"` // 价格ID
|
||||
MaterialId *uint64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
||||
SizeId *uint64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
||||
BuyNum *uint64 `gorm:"default:0;" json:"buy_num"` // 购买数量
|
||||
Cover *string `gorm:"default:'';" json:"cover"` // 截图
|
||||
DesignId *uint64 `gorm:"index;default:'0';" json:"design_id"` // 设计ID
|
||||
Ctime *uint64 `gorm:"default:'0';" json:"ctime"` //
|
||||
Status *uint64 `gorm:"default:'0';" json:"status"` // 状态位
|
||||
OptionalId *int64 `gorm:"index;default:'0';" json:"optional_id"` // 选项ID
|
||||
IsCheck *int64 `gorm:"default:'0';" json:"is_check"` // 是否选中状态(0:未选中,1:选中)
|
||||
DesignId *uint64 `gorm:"index;default:0;" json:"design_id"` // 设计ID
|
||||
Ctime *uint64 `gorm:"default:0;" json:"ctime"` //
|
||||
Status *uint64 `gorm:"default:0;" json:"status"` // 状态位
|
||||
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
||||
IsCheck *int64 `gorm:"default:0;" json:"is_check"` // 是否选中状态(0:未选中,1:选中)
|
||||
TsTime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ts_time"` //
|
||||
IsEmail *int64 `gorm:"default:'0';" json:"is_email"` // 是否发送邮件
|
||||
IsEmail *int64 `gorm:"default:0;" json:"is_email"` // 是否发送邮件
|
||||
}
|
||||
type FsCartModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
|
||||
// fs_change_code 忘记密码code表
|
||||
type FsChangeCode struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||||
Email *string `gorm:"default:'';" json:"email"` //
|
||||
Code *string `gorm:"default:'';" json:"code"` //
|
||||
CreatedAt *int64 `gorm:"default:'0';" json:"created_at"` // 创建时间
|
||||
IsUse *int64 `gorm:"default:'0';" json:"is_use"` // 是否使用 1已使用 0未使用
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
Email *string `gorm:"default:'';" json:"email"` //
|
||||
Code *string `gorm:"default:'';" json:"code"` //
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
||||
IsUse *int64 `gorm:"default:0;" json:"is_use"` // 是否使用 1已使用 0未使用
|
||||
}
|
||||
type FsChangeCodeModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,12 +6,12 @@ import (
|
|||
|
||||
// fs_cloud_deliver_every_tmp
|
||||
type FsCloudDeliverEveryTmp struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
AdminId *int64 `gorm:"default:'0';" json:"admin_id"` // 管理员
|
||||
CloudId *int64 `gorm:"default:'0';" json:"cloud_id"` // 云仓ID 暂且只有一个默认为 1
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
AdminId *int64 `gorm:"default:0;" json:"admin_id"` // 管理员
|
||||
CloudId *int64 `gorm:"default:0;" json:"cloud_id"` // 云仓ID 暂且只有一个默认为 1
|
||||
OrderDetailTemplateSn *string `gorm:"default:'';" json:"order_detail_template_sn"` // 详情modelSn
|
||||
Num *int64 `gorm:"default:'0';" json:"num"` // 发货数量
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Num *int64 `gorm:"default:0;" json:"num"` // 发货数量
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsCloudDeliverEveryTmpModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,17 +6,17 @@ import (
|
|||
|
||||
// fs_cloud_deliver_tmp
|
||||
type FsCloudDeliverTmp struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||||
CloudId *int64 `gorm:"default:'0';" json:"cloud_id"` // 云仓id
|
||||
UserId *int64 `gorm:"default:'0';" json:"user_id"` // 用户id
|
||||
AdminId *int64 `gorm:"default:'0';" json:"admin_id"` // 操作员id
|
||||
DeliveryType *int64 `gorm:"default:'1';" json:"delivery_type"` // 发货公司 之后配置,默认1
|
||||
Fee *int64 `gorm:"default:'0';" json:"fee"` // 价格
|
||||
AddressId *int64 `gorm:"default:'0';" json:"address_id"` // 地址
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 创建时间
|
||||
IsDeliver *int64 `gorm:"default:'0';" json:"is_deliver"` // 0未发货,1已发货
|
||||
IsEnd *int64 `gorm:"default:'0';" json:"is_end"` // 0未完成,1已完成
|
||||
DeliverId *int64 `gorm:"default:'0';" json:"deliver_id"` // 发货总表id
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
CloudId *int64 `gorm:"default:0;" json:"cloud_id"` // 云仓id
|
||||
UserId *int64 `gorm:"default:0;" json:"user_id"` // 用户id
|
||||
AdminId *int64 `gorm:"default:0;" json:"admin_id"` // 操作员id
|
||||
DeliveryType *int64 `gorm:"default:1;" json:"delivery_type"` // 发货公司 之后配置,默认1
|
||||
Fee *int64 `gorm:"default:0;" json:"fee"` // 价格
|
||||
AddressId *int64 `gorm:"default:0;" json:"address_id"` // 地址
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||
IsDeliver *int64 `gorm:"default:0;" json:"is_deliver"` // 0未发货,1已发货
|
||||
IsEnd *int64 `gorm:"default:0;" json:"is_end"` // 0未完成,1已完成
|
||||
DeliverId *int64 `gorm:"default:0;" json:"deliver_id"` // 发货总表id
|
||||
}
|
||||
type FsCloudDeliverTmpModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
|
||||
// fs_cloud 云仓表
|
||||
type FsCloud struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // id
|
||||
Address *string `gorm:"default:'';" json:"address"` // 云仓地址
|
||||
Title *string `gorm:"default:'';" json:"title"` // 云仓名称
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
||||
Address *string `gorm:"default:'';" json:"address"` // 云仓地址
|
||||
Title *string `gorm:"default:'';" json:"title"` // 云仓名称
|
||||
}
|
||||
type FsCloudModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,12 +6,12 @@ import (
|
|||
|
||||
// fs_cloud_pick_up_detail 云仓提货单-详情
|
||||
type FsCloudPickUpDetail struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` // Id
|
||||
PickId *int64 `gorm:"index;default:'0';" json:"pick_id"` // 提货单id
|
||||
StockId *int64 `gorm:"default:'0';" json:"stock_id"` // 用户云仓记录id
|
||||
Num *int64 `gorm:"default:'0';" json:"num"` // 提取数量
|
||||
Boxes *int64 `gorm:"default:'0';" json:"boxes"` // 提取箱数
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // Id
|
||||
PickId *int64 `gorm:"index;default:0;" json:"pick_id"` // 提货单id
|
||||
StockId *int64 `gorm:"default:0;" json:"stock_id"` // 用户云仓记录id
|
||||
Num *int64 `gorm:"default:0;" json:"num"` // 提取数量
|
||||
Boxes *int64 `gorm:"default:0;" json:"boxes"` // 提取箱数
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsCloudPickUpDetailModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,17 +6,17 @@ import (
|
|||
|
||||
// fs_cloud_pick_up 云仓提货单
|
||||
type FsCloudPickUp struct {
|
||||
Id uint64 `gorm:"primary_key;default:'0';" json:"id"` // Id
|
||||
UserId *int64 `gorm:"index;default:'0';" json:"user_id"` // 用户id
|
||||
TrackNum *string `gorm:"default:'';" json:"track_num"` // 运输号
|
||||
AddressId *int64 `gorm:"default:'0';" json:"address_id"` // 地址id
|
||||
AddressInfo *string `gorm:"default:'';" json:"address_info"` // 地址信息 json
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 运输状态 1 draw 2shipping 3ups 4arrival
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
ShippingTime *int64 `gorm:"default:'0';" json:"shipping_time"` // 发货时间
|
||||
UpsTime *int64 `gorm:"default:'0';" json:"ups_time"` // 提货时间
|
||||
ArrivalTime *int64 `gorm:"default:'0';" json:"arrival_time"` // 到达时间
|
||||
UpsSn *string `gorm:"default:'';" json:"ups_sn"` // 运输单号
|
||||
Id uint64 `gorm:"primary_key;default:0;" json:"id"` // Id
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户id
|
||||
TrackNum *string `gorm:"default:'';" json:"track_num"` // 运输号
|
||||
AddressId *int64 `gorm:"default:0;" json:"address_id"` // 地址id
|
||||
AddressInfo *string `gorm:"default:'';" json:"address_info"` // 地址信息 json
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 运输状态 1 draw 2shipping 3ups 4arrival
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
ShippingTime *int64 `gorm:"default:0;" json:"shipping_time"` // 发货时间
|
||||
UpsTime *int64 `gorm:"default:0;" json:"ups_time"` // 提货时间
|
||||
ArrivalTime *int64 `gorm:"default:0;" json:"arrival_time"` // 到达时间
|
||||
UpsSn *string `gorm:"default:'';" json:"ups_sn"` // 运输单号
|
||||
}
|
||||
type FsCloudPickUpModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,11 +6,11 @@ import (
|
|||
|
||||
// fs_cloud_receive_every
|
||||
type FsCloudReceiveEvery struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
DeliveryId *int64 `gorm:"index;default:'0';" json:"delivery_id"` // 云仓收货单id
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
DeliveryId *int64 `gorm:"index;default:0;" json:"delivery_id"` // 云仓收货单id
|
||||
OrderDetailTemplateSn *string `gorm:"index;default:'';" json:"order_detail_template_sn"` // 详情modelSn
|
||||
Num *int64 `gorm:"default:'0';" json:"num"` // 收到的数量
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Num *int64 `gorm:"default:0;" json:"num"` // 收到的数量
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsCloudReceiveEveryModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,15 +6,15 @@ import (
|
|||
|
||||
// fs_cloud_receive 云仓接收工厂总单
|
||||
type FsCloudReceive struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` //
|
||||
CloudId *int64 `gorm:"index;default:'0';" json:"cloud_id"` // 入库云仓id
|
||||
AdminId *int64 `gorm:"index;default:'0';" json:"admin_id"` // 操作员id
|
||||
UserId *int64 `gorm:"index;default:'0';" json:"user_id"` // 用户id
|
||||
OrderId *int64 `gorm:"index;default:'0';" json:"order_id"` // 入库云仓的订单
|
||||
Fee *int64 `gorm:"default:'0';" json:"fee"` // 运费
|
||||
Delivery *string `gorm:"default:'';" json:"delivery"` // 运单号
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 创建时间
|
||||
Status *int64 `gorm:"default:'0';" json:"status"` // 0未收到 1收到
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
||||
CloudId *int64 `gorm:"index;default:0;" json:"cloud_id"` // 入库云仓id
|
||||
AdminId *int64 `gorm:"index;default:0;" json:"admin_id"` // 操作员id
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户id
|
||||
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 入库云仓的订单
|
||||
Fee *int64 `gorm:"default:0;" json:"fee"` // 运费
|
||||
Delivery *string `gorm:"default:'';" json:"delivery"` // 运单号
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 0未收到 1收到
|
||||
}
|
||||
type FsCloudReceiveModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
|
@ -6,15 +6,15 @@ import (
|
|||
|
||||
// fs_cloud_render_log 云渲染日志表
|
||||
type FsCloudRenderLog struct {
|
||||
Id int64 `gorm:"primary_key;default:'0';" json:"id"` // ID
|
||||
UserId *int64 `gorm:"default:'0';" json:"user_id"` // 用户id
|
||||
PostData *string `gorm:"default:'';" json:"post_data"` //
|
||||
PostUrl *string `gorm:"default:'';" json:"post_url"` //
|
||||
Title *string `gorm:"index;default:'';" json:"title"` //
|
||||
Time *int64 `gorm:"default:'0';" json:"time"` // 所用时间
|
||||
Result *string `gorm:"default:'';" json:"result"` // 返回结果
|
||||
Tag *string `gorm:"index;default:'';" json:"tag"` // 标识
|
||||
Ctime *int64 `gorm:"default:'0';" json:"ctime"` // 添加时间
|
||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
||||
UserId *int64 `gorm:"default:0;" json:"user_id"` // 用户id
|
||||
PostData *string `gorm:"default:'';" json:"post_data"` //
|
||||
PostUrl *string `gorm:"default:'';" json:"post_url"` //
|
||||
Title *string `gorm:"index;default:'';" json:"title"` //
|
||||
Time *int64 `gorm:"default:0;" json:"time"` // 所用时间
|
||||
Result *string `gorm:"default:'';" json:"result"` // 返回结果
|
||||
Tag *string `gorm:"index;default:'';" json:"tag"` // 标识
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsCloudRenderLogModel struct{ db *gorm.DB }
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user