添加自增控制

This commit is contained in:
eson 2023-06-19 18:27:31 +08:00
parent 05363b1849
commit 640d3261e0
148 changed files with 1101 additions and 757 deletions

View File

@ -162,6 +162,10 @@ func GenFromPath(mdir string, cols []Column, tableName string, tableComment stri
typeName = typeName[1:]
}
if col.AutoIncrement {
}
tagstr := "`gorm:"
gormTag := ""
@ -170,6 +174,10 @@ func GenFromPath(mdir string, cols []Column, tableName string, tableComment stri
}
gormTag += defaultString
if col.AutoIncrement {
gormTag += "auto_increment;"
}
// if col.DefaultValue == "" {
// log.Panic(col, "需要默认值")
// }

View File

@ -6,20 +6,20 @@ import (
// fs_address 用户地址表
type FsAddress struct {
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
UserId *int64 `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;auto_increment;" json:"id"` //
UserId *int64 `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 }

View File

@ -8,13 +8,43 @@ import (
)
func (a *FsAddressModel) GetOne(ctx context.Context, id int64, userId int64) (resp FsAddress, err error) {
err = a.db.WithContext(ctx).Model(&FsAddress{}).Where("`id` = ? and `user_id` = ? and `status` = ? ", id, userId, 1).First(&resp).Error
err = a.db.WithContext(ctx).Model(&FsAddress{}).Where("`id` = ? and `user_id` = ? and `status` = ? ", id, userId, 1).Take(&resp).Error
if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) {
return FsAddress{}, err
}
return resp, nil
}
func (a *FsAddressModel) CreateOne(ctx context.Context, address *FsAddress) (resp *FsAddress, err error) {
err = a.db.WithContext(ctx).Transaction(func(tx *gorm.DB) error {
// now := time.Now().Unix()
resp = &FsAddress{
UserId: address.UserId,
Name: address.Name,
FirstName: address.FirstName,
LastName: address.LastName,
Mobile: address.Mobile,
Street: address.Street,
Suite: address.Suite,
City: address.City,
State: address.State,
Country: address.Country,
ZipCode: address.ZipCode,
Status: address.Status,
IsDefault: address.IsDefault,
}
return tx.Create(resp).Error
})
if err != nil {
return nil, err
}
return resp, nil
}
func (a *FsAddressModel) GetUserAllAddress(ctx context.Context, userId int64) (resp []FsAddress, err error) {
err = a.db.WithContext(ctx).Model(&FsAddress{}).Where("`user_id` = ? and `status` = ?", userId, 1).Order("`id` DESC").Find(&resp).Error
if err != nil {

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -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;auto_increment;" 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 }

View File

@ -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;auto_increment;" 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 }

View File

@ -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;auto_increment;" 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 }

View File

@ -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;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -7,22 +7,22 @@ import (
// fs_cart 购物车
type FsCart struct {
Id int64 `gorm:"primary_key;default:0;" json:"id"` // 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
PriceId *int64 `gorm:"index;default:0;" json:"price_id"` // 价格ID
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
BuyNum *int64 `gorm:"default:0;" json:"buy_num"` // 购买数量
Cover *string `gorm:"default:'';" json:"cover"` // 截图
DesignId *int64 `gorm:"index;default:0;" json:"design_id"` // 设计ID
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
Status *int64 `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"` // 是否发送邮件
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // 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
PriceId *int64 `gorm:"index;default:0;" json:"price_id"` // 价格ID
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
BuyNum *int64 `gorm:"default:0;" json:"buy_num"` // 购买数量
Cover *string `gorm:"default:'';" json:"cover"` // 截图
DesignId *int64 `gorm:"index;default:0;" json:"design_id"` // 设计ID
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
Status *int64 `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 }

View File

@ -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;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -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
OrderDetailTemplateSn *string `gorm:"default:'';" json:"order_detail_template_sn"` // 详情modelSn
Num *int64 `gorm:"default:0;" json:"num"` // 发货数量
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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"` // 添加时间
}
type FsCloudDeliverEveryTmpModel struct{ db *gorm.DB }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -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;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -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;auto_increment;" json:"id"` // id
Address *string `gorm:"default:'';" json:"address"` // 云仓地址
Title *string `gorm:"default:'';" json:"title"` // 云仓名称
}
type FsCloudModel struct{ db *gorm.DB }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,12 +6,12 @@ import (
// fs_cloud_pick_up_detail 云仓提货单-详情
type FsCloudPickUpDetail struct {
Id int64 `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 int64 `gorm:"primary_key;default:0;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,17 +6,17 @@ import (
// fs_cloud_pick_up 云仓提货单
type FsCloudPickUp struct {
Id int64 `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 int64 `gorm:"primary_key;default:0;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,7 +6,7 @@ import (
// fs_cloud_receive_every
type FsCloudReceiveEvery struct {
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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"` // 收到的数量

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -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;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -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;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -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;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -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;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,19 +6,19 @@ import (
// fs_contact_service
type FsContactService struct {
Id int64 `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 int64 `gorm:"primary_key;default:0;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -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;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,7 +6,7 @@ import (
// fs_deliver_every 发货详细表(已废弃)
type FsDeliverEvery struct {
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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"` //

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -7,7 +7,7 @@ import (
// fs_deliver 发货表 云仓 直发 通用(已废弃)
type FsDeliver struct {
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -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;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -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;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,14 +6,14 @@ import (
// fs_email_template 邮件模板表(暂未使用)
type FsEmailTemplate struct {
Id int64 `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 int64 `gorm:"primary_key;default:0;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,7 +6,7 @@ import (
// fs_factory_deliver_every 该表废弃
type FsFactoryDeliverEvery struct {
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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"` // 发货数量

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,13 +6,13 @@ import (
// fs_factory_deliver 工厂发货主表(废弃)
type FsFactoryDeliver struct {
Id int64 `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 int64 `gorm:"primary_key;default:0;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -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;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,7 +6,7 @@ import (
// fs_factory_product 工厂生产表(废弃)
type FsFactoryProduct struct {
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,17 +6,17 @@ import (
// fs_factory_ship_tmp
type FsFactoryShipTmp struct {
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
Sn *string `gorm:"default:'';" json:"sn"` // 运单号码
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"` //
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"` // 状态位 是否到达 是否通知货代公司 是否是发到云仓
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
Sn *string `gorm:"default:'';" json:"sn"` // 运单号码
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"` //
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"` // 状态位 是否到达 是否通知货代公司 是否是发到云仓
}
type FsFactoryShipTmpModel struct{ db *gorm.DB }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -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;auto_increment;" 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 }

View File

@ -6,11 +6,11 @@ import (
// fs_font 字体配置
type FsFont struct {
Id int64 `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"` // 排序
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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 }

View File

@ -6,7 +6,7 @@ import (
// fs_gerent 管理员表
type FsGerent struct {
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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"` // 加密密码

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,16 +6,16 @@ import (
// fs_guest 游客表
type FsGuest struct {
GuestId int64 `gorm:"primary_key;default:0;" json:"guest_id"` // ID
AuthKey *string `gorm:"default:'';" json:"auth_key"` // jwt token
Status *int64 `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 int64 `gorm:"primary_key;default:0;auto_increment;" json:"guest_id"` // ID
AuthKey *string `gorm:"default:'';" json:"auth_key"` // jwt token
Status *int64 `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 }

View File

@ -10,11 +10,6 @@ import (
)
func (m *FsGuestModel) GenerateGuestID(ctx context.Context, AccessSecret *string) (authKey string, err error) {
var record = &FsGuest{}
err = m.db.Create(record).Error
if err != nil {
logx.Error(err)
}
err = m.db.WithContext(ctx).Transaction(func(tx *gorm.DB) error {
now := time.Now().Unix()

View File

@ -6,14 +6,14 @@ import (
// fs_log 日志表
type FsLog struct {
Id int64 `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 *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
Uid *int64 `gorm:"default:0;" json:"uid"` // 操作人ID
Uname *string `gorm:"default:'';" json:"uname"` // 操作人名字
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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 *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
Uid *int64 `gorm:"default:0;" json:"uid"` // 操作人ID
Uname *string `gorm:"default:'';" json:"uname"` // 操作人名字
}
type FsLogModel struct{ db *gorm.DB }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,13 +6,13 @@ import (
// fs_map_library 贴图库
type FsMapLibrary struct {
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
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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 }

View File

@ -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;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,16 +6,16 @@ import (
// fs_order_affiliate 订单附属表-流程控制时间等
type FsOrderAffiliate struct {
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
OrderId *int64 `gorm:"unique_key;default:0;" json:"order_id"` // 订单id
SureTime *int64 `gorm:"default:0;" json:"sure_time"` // 确认时间
ProductTime *int64 `gorm:"default:0;" json:"product_time"` // 生产时间
ProductEndtime *int64 `gorm:"default:0;" json:"product_endtime"` // 生成完成时间
DeliverTime *int64 `gorm:"default:0;" json:"deliver_time"` // 发货时间
UpsDeliverTime *int64 `gorm:"default:0;" json:"ups_deliver_time"` // ups发货时间
UpsTime *int64 `gorm:"default:0;" json:"ups_time"` // UPS提货时间
ArrivalTime *int64 `gorm:"default:0;" json:"arrival_time"` // 到达云仓的时间
RecevieTime *int64 `gorm:"default:0;" json:"recevie_time"` // 云仓收货时间
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
OrderId *int64 `gorm:"unique_key;default:0;" json:"order_id"` // 订单id
SureTime *int64 `gorm:"default:0;" json:"sure_time"` // 确认时间
ProductTime *int64 `gorm:"default:0;" json:"product_time"` // 生产时间
ProductEndtime *int64 `gorm:"default:0;" json:"product_endtime"` // 生成完成时间
DeliverTime *int64 `gorm:"default:0;" json:"deliver_time"` // 发货时间
UpsDeliverTime *int64 `gorm:"default:0;" json:"ups_deliver_time"` // ups发货时间
UpsTime *int64 `gorm:"default:0;" json:"ups_time"` // UPS提货时间
ArrivalTime *int64 `gorm:"default:0;" json:"arrival_time"` // 到达云仓的时间
RecevieTime *int64 `gorm:"default:0;" json:"recevie_time"` // 云仓收货时间
}
type FsOrderAffiliateModel struct{ db *gorm.DB }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,30 +6,30 @@ import (
// fs_order_detail 订单详细表
type FsOrderDetail struct {
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"` // 购物车编号
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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 }

View File

@ -6,17 +6,17 @@ import (
// fs_order_detail_template 订单模板详细表
type FsOrderDetailTemplate struct {
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"` //
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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 }

View File

@ -7,42 +7,42 @@ import (
// fs_order
type FsOrder struct {
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"` // 是否部分支付01
IsPayCompleted *int64 `gorm:"default:0;" json:"is_pay_completed"` // 是否支付完成01
IsPartProduct *int64 `gorm:"default:0;" json:"is_part_product"` // 是否部分生产01
IsPartProductCompleted *int64 `gorm:"default:0;" json:"is_part_product_completed"` // 是否部分生产完成01
IsAllProduct *int64 `gorm:"default:0;" json:"is_all_product"` // 是否全部生产01
IsAllProductCompleted *int64 `gorm:"default:0;" json:"is_all_product_completed"` // 是否全部生产完成01
IsPartDelivery *int64 `gorm:"default:0;" json:"is_part_delivery"` // 是否部分发货01
IsDeliveryCompleted *int64 `gorm:"default:0;" json:"is_delivery_completed"` // 是否发货完成01
IsComplated *int64 `gorm:"default:0;" json:"is_complated"` // 是否完成订单01
IsCancel *int64 `gorm:"default:0;" json:"is_cancel"` // 是否取消订单01
IsRefunding *int64 `gorm:"default:0;" json:"is_refunding"` // 是否退款中01
IsRefunded *int64 `gorm:"default:0;" json:"is_refunded"` // 是否退款完成01
IsDeleted *int64 `gorm:"default:0;" json:"is_deleted"` // 是否删除01
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"` // 邮件发送时间
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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"` // 是否部分支付01
IsPayCompleted *int64 `gorm:"default:0;" json:"is_pay_completed"` // 是否支付完成01
IsPartProduct *int64 `gorm:"default:0;" json:"is_part_product"` // 是否部分生产01
IsPartProductCompleted *int64 `gorm:"default:0;" json:"is_part_product_completed"` // 是否部分生产完成01
IsAllProduct *int64 `gorm:"default:0;" json:"is_all_product"` // 是否全部生产01
IsAllProductCompleted *int64 `gorm:"default:0;" json:"is_all_product_completed"` // 是否全部生产完成01
IsPartDelivery *int64 `gorm:"default:0;" json:"is_part_delivery"` // 是否部分发货01
IsDeliveryCompleted *int64 `gorm:"default:0;" json:"is_delivery_completed"` // 是否发货完成01
IsComplated *int64 `gorm:"default:0;" json:"is_complated"` // 是否完成订单01
IsCancel *int64 `gorm:"default:0;" json:"is_cancel"` // 是否取消订单01
IsRefunding *int64 `gorm:"default:0;" json:"is_refunding"` // 是否退款中01
IsRefunded *int64 `gorm:"default:0;" json:"is_refunded"` // 是否退款完成01
IsDeleted *int64 `gorm:"default:0;" json:"is_deleted"` // 是否删除01
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 }

View File

@ -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;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,21 +6,21 @@ import (
// fs_pay 支付记录
type FsPay struct {
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"` // 银行品牌
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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 }

View File

@ -6,32 +6,32 @@ import (
// fs_product_copy1 产品表
type FsProductCopy1 struct {
Id int64 `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 *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"` // 是否删除
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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 *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"` // 是否删除
}
type FsProductCopy1Model struct{ db *gorm.DB }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -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;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -7,22 +7,22 @@ import (
// fs_product_design 产品设计表
type FsProductDesign 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"` // 用户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
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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 }

View File

@ -6,35 +6,35 @@ import (
// fs_product 产品表
type FsProduct struct {
Id int64 `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 *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"` //
RecommendProductSort *string `gorm:"default:'';" json:"recommend_product_sort"` //
SceneIds *string `gorm:"default:'';" json:"scene_ids"` //
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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 *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"` //
RecommendProductSort *string `gorm:"default:'';" json:"recommend_product_sort"` //
SceneIds *string `gorm:"default:'';" json:"scene_ids"` //
}
type FsProductModel struct{ db *gorm.DB }

View File

@ -6,24 +6,24 @@ import (
// fs_product_model3d 产品模型表
type FsProductModel3d struct {
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
ProductId *int64 `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 *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"` //
PartList *string `gorm:"default:'';" json:"part_list"` //
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 显示 删除
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
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
ProductId *int64 `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 *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"` //
PartList *string `gorm:"default:'';" json:"part_list"` //
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 显示 删除
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 }

View File

@ -6,11 +6,11 @@ import (
// fs_product_model3d_light 模型-灯光组表
type FsProductModel3dLight struct {
Id int64 `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"` //
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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 }

View File

@ -6,13 +6,13 @@ import (
// fs_product_option 产品选项表(已废弃)
type FsProductOption struct {
Id int64 `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 int64 `gorm:"primary_key;default:0;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,19 +6,19 @@ import (
// fs_product_price 阶梯价格表
type FsProductPrice struct {
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"` // 是否默认
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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 }

View File

@ -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;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,12 +6,12 @@ import (
// fs_product_scene 产品场景表
type FsProductScene struct {
Id int64 `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 *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
Id int64 `gorm:"primary_key;default:0;auto_increment;" 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 *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
}
type FsProductSceneModel struct{ db *gorm.DB }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,16 +6,16 @@ import (
// fs_product_size 产品尺寸表
type FsProductSize struct {
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
ProductId *int64 `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 *int64 `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否
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
ProductId *int64 `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 *int64 `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 }

View File

@ -6,11 +6,11 @@ import (
// fs_product_template_basemap 模板底图表
type FsProductTemplateBasemap struct {
Id int64 `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 int64 `gorm:"primary_key;default:0;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

View File

@ -6,26 +6,26 @@ import (
// fs_product_template_element 云渲染配置表
type FsProductTemplateElement struct {
Id int64 `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 int64 `gorm:"primary_key;default:0;auto_increment;" 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 }

View File

@ -0,0 +1,2 @@
package gmodel
// TODO: 使用model的属性做你想做的

Some files were not shown because too many files have changed in this diff Show More