添加自增控制
This commit is contained in:
parent
05363b1849
commit
640d3261e0
|
@ -162,6 +162,10 @@ func GenFromPath(mdir string, cols []Column, tableName string, tableComment stri
|
||||||
typeName = typeName[1:]
|
typeName = typeName[1:]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if col.AutoIncrement {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
tagstr := "`gorm:"
|
tagstr := "`gorm:"
|
||||||
|
|
||||||
gormTag := ""
|
gormTag := ""
|
||||||
|
@ -170,6 +174,10 @@ func GenFromPath(mdir string, cols []Column, tableName string, tableComment stri
|
||||||
}
|
}
|
||||||
|
|
||||||
gormTag += defaultString
|
gormTag += defaultString
|
||||||
|
|
||||||
|
if col.AutoIncrement {
|
||||||
|
gormTag += "auto_increment;"
|
||||||
|
}
|
||||||
// if col.DefaultValue == "" {
|
// if col.DefaultValue == "" {
|
||||||
// log.Panic(col, "需要默认值")
|
// log.Panic(col, "需要默认值")
|
||||||
// }
|
// }
|
||||||
|
|
|
@ -6,20 +6,20 @@ import (
|
||||||
|
|
||||||
// fs_address 用户地址表
|
// fs_address 用户地址表
|
||||||
type FsAddress struct {
|
type FsAddress struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
|
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
|
||||||
Name *string `gorm:"default:'';" json:"name"` // 地址名称
|
Name *string `gorm:"default:'';" json:"name"` // 地址名称
|
||||||
FirstName *string `gorm:"default:'';" json:"first_name"` // FirstName
|
FirstName *string `gorm:"default:'';" json:"first_name"` // FirstName
|
||||||
LastName *string `gorm:"default:'';" json:"last_name"` // LastName
|
LastName *string `gorm:"default:'';" json:"last_name"` // LastName
|
||||||
Mobile *string `gorm:"default:'';" json:"mobile"` // 手机号码
|
Mobile *string `gorm:"default:'';" json:"mobile"` // 手机号码
|
||||||
Street *string `gorm:"default:'';" json:"street"` // 街道
|
Street *string `gorm:"default:'';" json:"street"` // 街道
|
||||||
Suite *string `gorm:"default:'';" json:"suite"` // 房号
|
Suite *string `gorm:"default:'';" json:"suite"` // 房号
|
||||||
City *string `gorm:"default:'';" json:"city"` // 城市
|
City *string `gorm:"default:'';" json:"city"` // 城市
|
||||||
State *string `gorm:"default:'';" json:"state"` // 州名
|
State *string `gorm:"default:'';" json:"state"` // 州名
|
||||||
Country *string `gorm:"default:'';" json:"country"` // 国家
|
Country *string `gorm:"default:'';" json:"country"` // 国家
|
||||||
ZipCode *string `gorm:"default:'';" json:"zip_code"` // 邮编
|
ZipCode *string `gorm:"default:'';" json:"zip_code"` // 邮编
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 1正常 0异常
|
Status *int64 `gorm:"default:0;" json:"status"` // 1正常 0异常
|
||||||
IsDefault *int64 `gorm:"default:0;" json:"is_default"` // 1默认地址,0非默认地址
|
IsDefault *int64 `gorm:"default:0;" json:"is_default"` // 1默认地址,0非默认地址
|
||||||
}
|
}
|
||||||
type FsAddressModel struct{ db *gorm.DB }
|
type FsAddressModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -8,13 +8,43 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func (a *FsAddressModel) GetOne(ctx context.Context, id int64, userId int64) (resp FsAddress, err error) {
|
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) {
|
if err != nil && !errors.Is(err, gorm.ErrRecordNotFound) {
|
||||||
return FsAddress{}, err
|
return FsAddress{}, err
|
||||||
}
|
}
|
||||||
return resp, nil
|
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) {
|
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
|
err = a.db.WithContext(ctx).Model(&FsAddress{}).Where("`user_id` = ? and `status` = ?", userId, 1).Order("`id` DESC").Find(&resp).Error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
2
model/gmodel/fs_auth_assignment_logic.go
Normal file
2
model/gmodel/fs_auth_assignment_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
2
model/gmodel/fs_auth_item_child_logic.go
Normal file
2
model/gmodel/fs_auth_item_child_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
2
model/gmodel/fs_auth_item_logic.go
Normal file
2
model/gmodel/fs_auth_item_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
2
model/gmodel/fs_auth_rule_logic.go
Normal file
2
model/gmodel/fs_auth_rule_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,14 +6,14 @@ import (
|
||||||
|
|
||||||
// fs_canteen_product 餐厅类别产品对应表
|
// fs_canteen_product 餐厅类别产品对应表
|
||||||
type FsCanteenProduct struct {
|
type FsCanteenProduct struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
|
||||||
CanteenType *int64 `gorm:"index;default:0;" json:"canteen_type"` // 餐厅类别id
|
CanteenType *int64 `gorm:"index;default:0;" json:"canteen_type"` // 餐厅类别id
|
||||||
ProductId *int64 `gorm:"default:0;" json:"product_id"` // 产品id
|
ProductId *int64 `gorm:"default:0;" json:"product_id"` // 产品id
|
||||||
SizeId *int64 `gorm:"default:0;" json:"size_id"` // 尺寸id
|
SizeId *int64 `gorm:"default:0;" json:"size_id"` // 尺寸id
|
||||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 1启用0停用
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 1启用0停用
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||||
Sid *string `gorm:"default:'';" json:"sid"` // 前端带入的id
|
Sid *string `gorm:"default:'';" json:"sid"` // 前端带入的id
|
||||||
}
|
}
|
||||||
type FsCanteenProductModel struct{ db *gorm.DB }
|
type FsCanteenProductModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@ import (
|
||||||
|
|
||||||
// fs_canteen_type 餐厅类型表
|
// fs_canteen_type 餐厅类型表
|
||||||
type FsCanteenType struct {
|
type FsCanteenType struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
|
||||||
Name *string `gorm:"default:'';" json:"name"` // 餐厅名字
|
Name *string `gorm:"default:'';" json:"name"` // 餐厅名字
|
||||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 1启用0停用
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 1启用0停用
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||||
}
|
}
|
||||||
type FsCanteenTypeModel struct{ db *gorm.DB }
|
type FsCanteenTypeModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@ import (
|
||||||
|
|
||||||
// fs_card 卡号表
|
// fs_card 卡号表
|
||||||
type FsCard struct {
|
type FsCard struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // Id
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // Id
|
||||||
CardNo *string `gorm:"default:'';" json:"card_no"` // 卡号
|
CardNo *string `gorm:"default:'';" json:"card_no"` // 卡号
|
||||||
GroupId *int64 `gorm:"default:0;" json:"group_id"` // 分组id
|
GroupId *int64 `gorm:"default:0;" json:"group_id"` // 分组id
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||||
CardNum *string `gorm:"default:'';" json:"card_num"` // 卡号 无空格
|
CardNum *string `gorm:"default:'';" json:"card_num"` // 卡号 无空格
|
||||||
}
|
}
|
||||||
type FsCardModel struct{ db *gorm.DB }
|
type FsCardModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@ import (
|
||||||
|
|
||||||
// fs_card_group 卡号分组表
|
// fs_card_group 卡号分组表
|
||||||
type FsCardGroup struct {
|
type FsCardGroup struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
||||||
GroupName *string `gorm:"default:'';" json:"group_name"` // 分组名字
|
GroupName *string `gorm:"default:'';" json:"group_name"` // 分组名字
|
||||||
PreNo *string `gorm:"default:'';" json:"pre_no"` // 规则前几位数
|
PreNo *string `gorm:"default:'';" json:"pre_no"` // 规则前几位数
|
||||||
Num *int64 `gorm:"default:0;" json:"num"` // 生成数量
|
Num *int64 `gorm:"default:0;" json:"num"` // 生成数量
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||||
}
|
}
|
||||||
type FsCardGroupModel struct{ db *gorm.DB }
|
type FsCardGroupModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_card_group_logic.go
Normal file
2
model/gmodel/fs_card_group_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
2
model/gmodel/fs_card_logic.go
Normal file
2
model/gmodel/fs_card_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -7,22 +7,22 @@ import (
|
||||||
|
|
||||||
// fs_cart 购物车
|
// fs_cart 购物车
|
||||||
type FsCart struct {
|
type FsCart struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
||||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` //
|
UserId *int64 `gorm:"index;default:0;" json:"user_id"` //
|
||||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||||
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模板ID
|
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模板ID
|
||||||
PriceId *int64 `gorm:"index;default:0;" json:"price_id"` // 价格ID
|
PriceId *int64 `gorm:"index;default:0;" json:"price_id"` // 价格ID
|
||||||
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
||||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
||||||
BuyNum *int64 `gorm:"default:0;" json:"buy_num"` // 购买数量
|
BuyNum *int64 `gorm:"default:0;" json:"buy_num"` // 购买数量
|
||||||
Cover *string `gorm:"default:'';" json:"cover"` // 截图
|
Cover *string `gorm:"default:'';" json:"cover"` // 截图
|
||||||
DesignId *int64 `gorm:"index;default:0;" json:"design_id"` // 设计ID
|
DesignId *int64 `gorm:"index;default:0;" json:"design_id"` // 设计ID
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态位
|
||||||
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
||||||
IsCheck *int64 `gorm:"default:0;" json:"is_check"` // 是否选中状态(0:未选中,1:选中)
|
IsCheck *int64 `gorm:"default:0;" json:"is_check"` // 是否选中状态(0:未选中,1:选中)
|
||||||
TsTime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ts_time"` //
|
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 }
|
type FsCartModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@ import (
|
||||||
|
|
||||||
// fs_change_code 忘记密码code表
|
// fs_change_code 忘记密码code表
|
||||||
type FsChangeCode struct {
|
type FsChangeCode struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
||||||
Email *string `gorm:"default:'';" json:"email"` //
|
Email *string `gorm:"default:'';" json:"email"` //
|
||||||
Code *string `gorm:"default:'';" json:"code"` //
|
Code *string `gorm:"default:'';" json:"code"` //
|
||||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
||||||
IsUse *int64 `gorm:"default:0;" json:"is_use"` // 是否使用 1已使用 0未使用
|
IsUse *int64 `gorm:"default:0;" json:"is_use"` // 是否使用 1已使用 0未使用
|
||||||
}
|
}
|
||||||
type FsChangeCodeModel struct{ db *gorm.DB }
|
type FsChangeCodeModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_change_code_logic.go
Normal file
2
model/gmodel/fs_change_code_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,12 +6,12 @@ import (
|
||||||
|
|
||||||
// fs_cloud_deliver_every_tmp
|
// fs_cloud_deliver_every_tmp
|
||||||
type FsCloudDeliverEveryTmp struct {
|
type FsCloudDeliverEveryTmp struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
AdminId *int64 `gorm:"default:0;" json:"admin_id"` // 管理员
|
AdminId *int64 `gorm:"default:0;" json:"admin_id"` // 管理员
|
||||||
CloudId *int64 `gorm:"default:0;" json:"cloud_id"` // 云仓ID 暂且只有一个默认为 1
|
CloudId *int64 `gorm:"default:0;" json:"cloud_id"` // 云仓ID 暂且只有一个默认为 1
|
||||||
OrderDetailTemplateSn *string `gorm:"default:'';" json:"order_detail_template_sn"` // 详情modelSn
|
OrderDetailTemplateSn *string `gorm:"default:'';" json:"order_detail_template_sn"` // 详情modelSn
|
||||||
Num *int64 `gorm:"default:0;" json:"num"` // 发货数量
|
Num *int64 `gorm:"default:0;" json:"num"` // 发货数量
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||||
}
|
}
|
||||||
type FsCloudDeliverEveryTmpModel struct{ db *gorm.DB }
|
type FsCloudDeliverEveryTmpModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_cloud_deliver_every_tmp_logic.go
Normal file
2
model/gmodel/fs_cloud_deliver_every_tmp_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,17 +6,17 @@ import (
|
||||||
|
|
||||||
// fs_cloud_deliver_tmp
|
// fs_cloud_deliver_tmp
|
||||||
type FsCloudDeliverTmp struct {
|
type FsCloudDeliverTmp struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
||||||
CloudId *int64 `gorm:"default:0;" json:"cloud_id"` // 云仓id
|
CloudId *int64 `gorm:"default:0;" json:"cloud_id"` // 云仓id
|
||||||
UserId *int64 `gorm:"default:0;" json:"user_id"` // 用户id
|
UserId *int64 `gorm:"default:0;" json:"user_id"` // 用户id
|
||||||
AdminId *int64 `gorm:"default:0;" json:"admin_id"` // 操作员id
|
AdminId *int64 `gorm:"default:0;" json:"admin_id"` // 操作员id
|
||||||
DeliveryType *int64 `gorm:"default:1;" json:"delivery_type"` // 发货公司 之后配置,默认1
|
DeliveryType *int64 `gorm:"default:1;" json:"delivery_type"` // 发货公司 之后配置,默认1
|
||||||
Fee *int64 `gorm:"default:0;" json:"fee"` // 价格
|
Fee *int64 `gorm:"default:0;" json:"fee"` // 价格
|
||||||
AddressId *int64 `gorm:"default:0;" json:"address_id"` // 地址
|
AddressId *int64 `gorm:"default:0;" json:"address_id"` // 地址
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||||
IsDeliver *int64 `gorm:"default:0;" json:"is_deliver"` // 0未发货,1已发货
|
IsDeliver *int64 `gorm:"default:0;" json:"is_deliver"` // 0未发货,1已发货
|
||||||
IsEnd *int64 `gorm:"default:0;" json:"is_end"` // 0未完成,1已完成
|
IsEnd *int64 `gorm:"default:0;" json:"is_end"` // 0未完成,1已完成
|
||||||
DeliverId *int64 `gorm:"default:0;" json:"deliver_id"` // 发货总表id
|
DeliverId *int64 `gorm:"default:0;" json:"deliver_id"` // 发货总表id
|
||||||
}
|
}
|
||||||
type FsCloudDeliverTmpModel struct{ db *gorm.DB }
|
type FsCloudDeliverTmpModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_cloud_deliver_tmp_logic.go
Normal file
2
model/gmodel/fs_cloud_deliver_tmp_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,9 +6,9 @@ import (
|
||||||
|
|
||||||
// fs_cloud 云仓表
|
// fs_cloud 云仓表
|
||||||
type FsCloud struct {
|
type FsCloud struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
||||||
Address *string `gorm:"default:'';" json:"address"` // 云仓地址
|
Address *string `gorm:"default:'';" json:"address"` // 云仓地址
|
||||||
Title *string `gorm:"default:'';" json:"title"` // 云仓名称
|
Title *string `gorm:"default:'';" json:"title"` // 云仓名称
|
||||||
}
|
}
|
||||||
type FsCloudModel struct{ db *gorm.DB }
|
type FsCloudModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_cloud_logic.go
Normal file
2
model/gmodel/fs_cloud_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,12 +6,12 @@ import (
|
||||||
|
|
||||||
// fs_cloud_pick_up_detail 云仓提货单-详情
|
// fs_cloud_pick_up_detail 云仓提货单-详情
|
||||||
type FsCloudPickUpDetail struct {
|
type FsCloudPickUpDetail struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // Id
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // Id
|
||||||
PickId *int64 `gorm:"index;default:0;" json:"pick_id"` // 提货单id
|
PickId *int64 `gorm:"index;default:0;" json:"pick_id"` // 提货单id
|
||||||
StockId *int64 `gorm:"default:0;" json:"stock_id"` // 用户云仓记录id
|
StockId *int64 `gorm:"default:0;" json:"stock_id"` // 用户云仓记录id
|
||||||
Num *int64 `gorm:"default:0;" json:"num"` // 提取数量
|
Num *int64 `gorm:"default:0;" json:"num"` // 提取数量
|
||||||
Boxes *int64 `gorm:"default:0;" json:"boxes"` // 提取箱数
|
Boxes *int64 `gorm:"default:0;" json:"boxes"` // 提取箱数
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||||
}
|
}
|
||||||
type FsCloudPickUpDetailModel struct{ db *gorm.DB }
|
type FsCloudPickUpDetailModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_cloud_pick_up_detail_logic.go
Normal file
2
model/gmodel/fs_cloud_pick_up_detail_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,17 +6,17 @@ import (
|
||||||
|
|
||||||
// fs_cloud_pick_up 云仓提货单
|
// fs_cloud_pick_up 云仓提货单
|
||||||
type FsCloudPickUp struct {
|
type FsCloudPickUp struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // Id
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // Id
|
||||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户id
|
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户id
|
||||||
TrackNum *string `gorm:"default:'';" json:"track_num"` // 运输号
|
TrackNum *string `gorm:"default:'';" json:"track_num"` // 运输号
|
||||||
AddressId *int64 `gorm:"default:0;" json:"address_id"` // 地址id
|
AddressId *int64 `gorm:"default:0;" json:"address_id"` // 地址id
|
||||||
AddressInfo *string `gorm:"default:'';" json:"address_info"` // 地址信息 json
|
AddressInfo *string `gorm:"default:'';" json:"address_info"` // 地址信息 json
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 运输状态 1 draw 2shipping 3ups 4arrival
|
Status *int64 `gorm:"default:0;" json:"status"` // 运输状态 1 draw 2shipping 3ups 4arrival
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||||
ShippingTime *int64 `gorm:"default:0;" json:"shipping_time"` // 发货时间
|
ShippingTime *int64 `gorm:"default:0;" json:"shipping_time"` // 发货时间
|
||||||
UpsTime *int64 `gorm:"default:0;" json:"ups_time"` // 提货时间
|
UpsTime *int64 `gorm:"default:0;" json:"ups_time"` // 提货时间
|
||||||
ArrivalTime *int64 `gorm:"default:0;" json:"arrival_time"` // 到达时间
|
ArrivalTime *int64 `gorm:"default:0;" json:"arrival_time"` // 到达时间
|
||||||
UpsSn *string `gorm:"default:'';" json:"ups_sn"` // 运输单号
|
UpsSn *string `gorm:"default:'';" json:"ups_sn"` // 运输单号
|
||||||
}
|
}
|
||||||
type FsCloudPickUpModel struct{ db *gorm.DB }
|
type FsCloudPickUpModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_cloud_pick_up_logic.go
Normal file
2
model/gmodel/fs_cloud_pick_up_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,7 +6,7 @@ import (
|
||||||
|
|
||||||
// fs_cloud_receive_every
|
// fs_cloud_receive_every
|
||||||
type FsCloudReceiveEvery struct {
|
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
|
DeliveryId *int64 `gorm:"index;default:0;" json:"delivery_id"` // 云仓收货单id
|
||||||
OrderDetailTemplateSn *string `gorm:"index;default:'';" json:"order_detail_template_sn"` // 详情modelSn
|
OrderDetailTemplateSn *string `gorm:"index;default:'';" json:"order_detail_template_sn"` // 详情modelSn
|
||||||
Num *int64 `gorm:"default:0;" json:"num"` // 收到的数量
|
Num *int64 `gorm:"default:0;" json:"num"` // 收到的数量
|
||||||
|
|
2
model/gmodel/fs_cloud_receive_every_logic.go
Normal file
2
model/gmodel/fs_cloud_receive_every_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,15 +6,15 @@ import (
|
||||||
|
|
||||||
// fs_cloud_receive 云仓接收工厂总单
|
// fs_cloud_receive 云仓接收工厂总单
|
||||||
type FsCloudReceive struct {
|
type FsCloudReceive struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
CloudId *int64 `gorm:"index;default:0;" json:"cloud_id"` // 入库云仓id
|
CloudId *int64 `gorm:"index;default:0;" json:"cloud_id"` // 入库云仓id
|
||||||
AdminId *int64 `gorm:"index;default:0;" json:"admin_id"` // 操作员id
|
AdminId *int64 `gorm:"index;default:0;" json:"admin_id"` // 操作员id
|
||||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户id
|
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户id
|
||||||
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 入库云仓的订单
|
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 入库云仓的订单
|
||||||
Fee *int64 `gorm:"default:0;" json:"fee"` // 运费
|
Fee *int64 `gorm:"default:0;" json:"fee"` // 运费
|
||||||
Delivery *string `gorm:"default:'';" json:"delivery"` // 运单号
|
Delivery *string `gorm:"default:'';" json:"delivery"` // 运单号
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 0未收到 1收到
|
Status *int64 `gorm:"default:0;" json:"status"` // 0未收到 1收到
|
||||||
}
|
}
|
||||||
type FsCloudReceiveModel struct{ db *gorm.DB }
|
type FsCloudReceiveModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_cloud_receive_logic.go
Normal file
2
model/gmodel/fs_cloud_receive_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,15 +6,15 @@ import (
|
||||||
|
|
||||||
// fs_cloud_render_log 云渲染日志表
|
// fs_cloud_render_log 云渲染日志表
|
||||||
type FsCloudRenderLog struct {
|
type FsCloudRenderLog struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
|
||||||
UserId *int64 `gorm:"default:0;" json:"user_id"` // 用户id
|
UserId *int64 `gorm:"default:0;" json:"user_id"` // 用户id
|
||||||
PostData *string `gorm:"default:'';" json:"post_data"` //
|
PostData *string `gorm:"default:'';" json:"post_data"` //
|
||||||
PostUrl *string `gorm:"default:'';" json:"post_url"` //
|
PostUrl *string `gorm:"default:'';" json:"post_url"` //
|
||||||
Title *string `gorm:"index;default:'';" json:"title"` //
|
Title *string `gorm:"index;default:'';" json:"title"` //
|
||||||
Time *int64 `gorm:"default:0;" json:"time"` // 所用时间
|
Time *int64 `gorm:"default:0;" json:"time"` // 所用时间
|
||||||
Result *string `gorm:"default:'';" json:"result"` // 返回结果
|
Result *string `gorm:"default:'';" json:"result"` // 返回结果
|
||||||
Tag *string `gorm:"index;default:'';" json:"tag"` // 标识
|
Tag *string `gorm:"index;default:'';" json:"tag"` // 标识
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||||
}
|
}
|
||||||
type FsCloudRenderLogModel struct{ db *gorm.DB }
|
type FsCloudRenderLogModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_cloud_render_log_logic.go
Normal file
2
model/gmodel/fs_cloud_render_log_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,14 +6,14 @@ import (
|
||||||
|
|
||||||
// fs_cloud_user_apply_back 该表废弃
|
// fs_cloud_user_apply_back 该表废弃
|
||||||
type FsCloudUserApplyBack struct {
|
type FsCloudUserApplyBack struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
UserHash *string `gorm:"default:'';" json:"user_hash"` //
|
UserHash *string `gorm:"default:'';" json:"user_hash"` //
|
||||||
OrderDetailTemplateId *int64 `gorm:"default:0;" json:"order_detail_template_id"` // 详情modelID
|
OrderDetailTemplateId *int64 `gorm:"default:0;" json:"order_detail_template_id"` // 详情modelID
|
||||||
Num *int64 `gorm:"default:0;" json:"num"` // 发货数量
|
Num *int64 `gorm:"default:0;" json:"num"` // 发货数量
|
||||||
AddressTo *string `gorm:"default:'';" json:"address_to"` // 收获地址
|
AddressTo *string `gorm:"default:'';" json:"address_to"` // 收获地址
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||||
StorageFee *int64 `gorm:"default:0;" json:"storage_fee"` // 存储费用
|
StorageFee *int64 `gorm:"default:0;" json:"storage_fee"` // 存储费用
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否已发货 是否处理 是否删除 是否推送
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否已发货 是否处理 是否删除 是否推送
|
||||||
}
|
}
|
||||||
type FsCloudUserApplyBackModel struct{ db *gorm.DB }
|
type FsCloudUserApplyBackModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_cloud_user_apply_back_logic.go
Normal file
2
model/gmodel/fs_cloud_user_apply_back_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,14 +6,14 @@ import (
|
||||||
|
|
||||||
// fs_contact 该表暂未使用
|
// fs_contact 该表暂未使用
|
||||||
type FsContact struct {
|
type FsContact struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
Name *string `gorm:"default:'';" json:"name"` // 名字
|
Name *string `gorm:"default:'';" json:"name"` // 名字
|
||||||
Email *string `gorm:"index;default:'';" json:"email"` // 邮箱
|
Email *string `gorm:"index;default:'';" json:"email"` // 邮箱
|
||||||
Subject *int64 `gorm:"default:0;" json:"subject"` // 主题
|
Subject *int64 `gorm:"default:0;" json:"subject"` // 主题
|
||||||
Message *string `gorm:"default:'';" json:"message"` // 消息
|
Message *string `gorm:"default:'';" json:"message"` // 消息
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` //
|
Status *int64 `gorm:"default:0;" json:"status"` //
|
||||||
Mark *string `gorm:"default:'';" json:"mark"` // 后台订单备注
|
Mark *string `gorm:"default:'';" json:"mark"` // 后台订单备注
|
||||||
}
|
}
|
||||||
type FsContactModel struct{ db *gorm.DB }
|
type FsContactModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_contact_logic.go
Normal file
2
model/gmodel/fs_contact_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,19 +6,19 @@ import (
|
||||||
|
|
||||||
// fs_contact_service
|
// fs_contact_service
|
||||||
type FsContactService struct {
|
type FsContactService struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
Type *string `gorm:"default:'';" json:"type"` // 类型
|
Type *string `gorm:"default:'';" json:"type"` // 类型
|
||||||
RelationId *int64 `gorm:"index;default:0;" json:"relation_id"` // 关联id
|
RelationId *int64 `gorm:"index;default:0;" json:"relation_id"` // 关联id
|
||||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户id
|
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户id
|
||||||
Name *string `gorm:"default:'';" json:"name"` // 联系人姓名
|
Name *string `gorm:"default:'';" json:"name"` // 联系人姓名
|
||||||
Email *string `gorm:"index;default:'';" json:"email"` // 联系人邮箱
|
Email *string `gorm:"index;default:'';" json:"email"` // 联系人邮箱
|
||||||
Phone *string `gorm:"default:'';" json:"phone"` //
|
Phone *string `gorm:"default:'';" json:"phone"` //
|
||||||
Remark *string `gorm:"default:'';" json:"remark"` // 备注内容
|
Remark *string `gorm:"default:'';" json:"remark"` // 备注内容
|
||||||
IsHandle *int64 `gorm:"default:0;" json:"is_handle"` // 是否被处理(0:未处理,1:已处理)
|
IsHandle *int64 `gorm:"default:0;" json:"is_handle"` // 是否被处理(0:未处理,1:已处理)
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||||
HandleRemark *string `gorm:"default:'';" json:"handle_remark"` // 处理备注
|
HandleRemark *string `gorm:"default:'';" json:"handle_remark"` // 处理备注
|
||||||
HandleUid *int64 `gorm:"default:0;" json:"handle_uid"` // 处理人
|
HandleUid *int64 `gorm:"default:0;" json:"handle_uid"` // 处理人
|
||||||
HandleTime *int64 `gorm:"default:0;" json:"handle_time"` // 处理时间
|
HandleTime *int64 `gorm:"default:0;" json:"handle_time"` // 处理时间
|
||||||
}
|
}
|
||||||
type FsContactServiceModel struct{ db *gorm.DB }
|
type FsContactServiceModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_contact_service_logic.go
Normal file
2
model/gmodel/fs_contact_service_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,19 +6,19 @@ import (
|
||||||
|
|
||||||
// fs_coupon 代金券(暂未使用)
|
// fs_coupon 代金券(暂未使用)
|
||||||
type FsCoupon struct {
|
type FsCoupon struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
UserId *int64 `gorm:"default:0;" json:"user_id"` //
|
UserId *int64 `gorm:"default:0;" json:"user_id"` //
|
||||||
Sn *string `gorm:"default:'';" json:"sn"` // 优惠券码
|
Sn *string `gorm:"default:'';" json:"sn"` // 优惠券码
|
||||||
Type *int64 `gorm:"default:0;" json:"type"` // 类型 1:代金券 2:折扣券 3:满减券
|
Type *int64 `gorm:"default:0;" json:"type"` // 类型 1:代金券 2:折扣券 3:满减券
|
||||||
Amount *int64 `gorm:"default:0;" json:"amount"` // 代金券金额、折扣比例、满减金额
|
Amount *int64 `gorm:"default:0;" json:"amount"` // 代金券金额、折扣比例、满减金额
|
||||||
MinAmount *int64 `gorm:"default:0;" json:"min_amount"` // 满足条件的最小金额 0:不限制
|
MinAmount *int64 `gorm:"default:0;" json:"min_amount"` // 满足条件的最小金额 0:不限制
|
||||||
MaxAmount *int64 `gorm:"default:0;" json:"max_amount"` // 最多优惠的金额 0:不限制
|
MaxAmount *int64 `gorm:"default:0;" json:"max_amount"` // 最多优惠的金额 0:不限制
|
||||||
Stime *int64 `gorm:"default:0;" json:"stime"` // 开始时间 0:立即生效
|
Stime *int64 `gorm:"default:0;" json:"stime"` // 开始时间 0:立即生效
|
||||||
Etime *int64 `gorm:"default:0;" json:"etime"` // 结束时间 0:永久有效
|
Etime *int64 `gorm:"default:0;" json:"etime"` // 结束时间 0:永久有效
|
||||||
Exclude *int64 `gorm:"default:2;" json:"exclude"` // 是否可以与其他优惠券同时使用 1:可以 2:不可以
|
Exclude *int64 `gorm:"default:2;" json:"exclude"` // 是否可以与其他优惠券同时使用 1:可以 2:不可以
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||||
GetTime *int64 `gorm:"default:0;" json:"get_time"` //
|
GetTime *int64 `gorm:"default:0;" json:"get_time"` //
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态 是否可用 是否已绑定到订单
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态 是否可用 是否已绑定到订单
|
||||||
}
|
}
|
||||||
type FsCouponModel struct{ db *gorm.DB }
|
type FsCouponModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_coupon_logic.go
Normal file
2
model/gmodel/fs_coupon_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,7 +6,7 @@ import (
|
||||||
|
|
||||||
// fs_deliver_every 发货详细表(已废弃)
|
// fs_deliver_every 发货详细表(已废弃)
|
||||||
type FsDeliverEvery struct {
|
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
|
DeliverId *int64 `gorm:"index;default:0;" json:"deliver_id"` // 发货ID
|
||||||
OrderDetailTemplateSn *string `gorm:"index;default:'';" json:"order_detail_template_sn"` // 订单详情模板sn
|
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"` //
|
||||||
|
|
2
model/gmodel/fs_deliver_every_logic.go
Normal file
2
model/gmodel/fs_deliver_every_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -7,7 +7,7 @@ import (
|
||||||
|
|
||||||
// fs_deliver 发货表 云仓 直发 通用(已废弃)
|
// fs_deliver 发货表 云仓 直发 通用(已废弃)
|
||||||
type FsDeliver struct {
|
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云仓发货
|
Type *int64 `gorm:"default:0;" json:"type"` // 1直接发货,2云仓发货
|
||||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
|
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
|
||||||
AdminId *int64 `gorm:"index;default:0;" json:"admin_id"` // 操作人id
|
AdminId *int64 `gorm:"index;default:0;" json:"admin_id"` // 操作人id
|
||||||
|
|
2
model/gmodel/fs_deliver_logic.go
Normal file
2
model/gmodel/fs_deliver_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,11 +6,11 @@ import (
|
||||||
|
|
||||||
// fs_department 部门表
|
// fs_department 部门表
|
||||||
type FsDepartment struct {
|
type FsDepartment struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
||||||
Name *string `gorm:"default:'';" json:"name"` // 部门名称
|
Name *string `gorm:"default:'';" json:"name"` // 部门名称
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态 1正常0停用
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态 1正常0停用
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||||
ParentId *int64 `gorm:"default:0;" json:"parent_id"` // 父级id
|
ParentId *int64 `gorm:"default:0;" json:"parent_id"` // 父级id
|
||||||
}
|
}
|
||||||
type FsDepartmentModel struct{ db *gorm.DB }
|
type FsDepartmentModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_department_logic.go
Normal file
2
model/gmodel/fs_department_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,13 +6,13 @@ import (
|
||||||
|
|
||||||
// fs_email_logs 邮件日志表
|
// fs_email_logs 邮件日志表
|
||||||
type FsEmailLogs struct {
|
type FsEmailLogs struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
|
||||||
Type *int64 `gorm:"default:0;" json:"type"` // 邮件分类
|
Type *int64 `gorm:"default:0;" json:"type"` // 邮件分类
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 发送时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 发送时间
|
||||||
Email *string `gorm:"default:'';" json:"email"` // 发送邮箱
|
Email *string `gorm:"default:'';" json:"email"` // 发送邮箱
|
||||||
EmailSubject *string `gorm:"default:'';" json:"email_subject"` // 发送标题
|
EmailSubject *string `gorm:"default:'';" json:"email_subject"` // 发送标题
|
||||||
Result *string `gorm:"default:'';" json:"result"` // 发送结果
|
Result *string `gorm:"default:'';" json:"result"` // 发送结果
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态 1成功0失败
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态 1成功0失败
|
||||||
}
|
}
|
||||||
type FsEmailLogsModel struct{ db *gorm.DB }
|
type FsEmailLogsModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_email_logs_logic.go
Normal file
2
model/gmodel/fs_email_logs_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,14 +6,14 @@ import (
|
||||||
|
|
||||||
// fs_email_template 邮件模板表(暂未使用)
|
// fs_email_template 邮件模板表(暂未使用)
|
||||||
type FsEmailTemplate struct {
|
type FsEmailTemplate 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"` // 模板类型
|
Type *int64 `gorm:"default:0;" json:"type"` // 模板类型
|
||||||
Name *string `gorm:"default:'';" json:"name"` // 模板名称
|
Name *string `gorm:"default:'';" json:"name"` // 模板名称
|
||||||
Title *string `gorm:"default:'';" json:"title"` // 模板标题
|
Title *string `gorm:"default:'';" json:"title"` // 模板标题
|
||||||
ReplaceFields *string `gorm:"default:'';" json:"replace_fields"` //
|
ReplaceFields *string `gorm:"default:'';" json:"replace_fields"` //
|
||||||
Content *string `gorm:"default:'';" json:"content"` // 模板内容
|
Content *string `gorm:"default:'';" json:"content"` // 模板内容
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态值(0:禁用,1:启用)
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态值(0:禁用,1:启用)
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||||
}
|
}
|
||||||
type FsEmailTemplateModel struct{ db *gorm.DB }
|
type FsEmailTemplateModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_email_template_logic.go
Normal file
2
model/gmodel/fs_email_template_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,7 +6,7 @@ import (
|
||||||
|
|
||||||
// fs_factory_deliver_every 该表废弃
|
// fs_factory_deliver_every 该表废弃
|
||||||
type FsFactoryDeliverEvery struct {
|
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
|
FactoryDeliverId *int64 `gorm:"index;default:0;" json:"factory_deliver_id"` // 工厂发货表ID
|
||||||
OrderDetailTemplateSn *string `gorm:"index;default:'';" json:"order_detail_template_sn"` // 订单产品模板sn
|
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"` // 发货数量
|
||||||
|
|
2
model/gmodel/fs_factory_deliver_every_logic.go
Normal file
2
model/gmodel/fs_factory_deliver_every_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,13 +6,13 @@ import (
|
||||||
|
|
||||||
// fs_factory_deliver 工厂发货主表(废弃)
|
// fs_factory_deliver 工厂发货主表(废弃)
|
||||||
type FsFactoryDeliver struct {
|
type FsFactoryDeliver struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
Sn *string `gorm:"index;default:'';" json:"sn"` // 工厂发货编号sn
|
Sn *string `gorm:"index;default:'';" json:"sn"` // 工厂发货编号sn
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||||
DeliveryMethod *int64 `gorm:"default:0;" json:"delivery_method"` // 发货方式( 1:直接发货到收获地址 2:云仓)
|
DeliveryMethod *int64 `gorm:"default:0;" json:"delivery_method"` // 发货方式( 1:直接发货到收获地址 2:云仓)
|
||||||
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 订单id
|
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 订单id
|
||||||
IsArriveCloud *int64 `gorm:"default:0;" json:"is_arrive_cloud"` // 是否到达云仓 0:未到达,1已到达
|
IsArriveCloud *int64 `gorm:"default:0;" json:"is_arrive_cloud"` // 是否到达云仓 0:未到达,1已到达
|
||||||
IsArriveAgent *int64 `gorm:"default:0;" json:"is_arrive_agent"` // 是否到达货代公司 0:未到达,1已到达
|
IsArriveAgent *int64 `gorm:"default:0;" json:"is_arrive_agent"` // 是否到达货代公司 0:未到达,1已到达
|
||||||
}
|
}
|
||||||
type FsFactoryDeliverModel struct{ db *gorm.DB }
|
type FsFactoryDeliverModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_factory_deliver_logic.go
Normal file
2
model/gmodel/fs_factory_deliver_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,12 +6,12 @@ import (
|
||||||
|
|
||||||
// fs_factory 该表废弃
|
// fs_factory 该表废弃
|
||||||
type FsFactory struct {
|
type FsFactory struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
Name *string `gorm:"default:'';" json:"name"` // 名字
|
Name *string `gorm:"default:'';" json:"name"` // 名字
|
||||||
Addr *string `gorm:"default:'';" json:"addr"` // 地址
|
Addr *string `gorm:"default:'';" json:"addr"` // 地址
|
||||||
Contact *string `gorm:"default:'';" json:"contact"` // 联系人
|
Contact *string `gorm:"default:'';" json:"contact"` // 联系人
|
||||||
Mobile *string `gorm:"default:'';" json:"mobile"` // 联系电话
|
Mobile *string `gorm:"default:'';" json:"mobile"` // 联系电话
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否禁用
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否禁用
|
||||||
}
|
}
|
||||||
type FsFactoryModel struct{ db *gorm.DB }
|
type FsFactoryModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_factory_logic.go
Normal file
2
model/gmodel/fs_factory_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,7 +6,7 @@ import (
|
||||||
|
|
||||||
// fs_factory_product 工厂生产表(废弃)
|
// fs_factory_product 工厂生产表(废弃)
|
||||||
type FsFactoryProduct struct {
|
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
|
FactoryId *int64 `gorm:"index;default:0;" json:"factory_id"` // 工厂id
|
||||||
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 订单id
|
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 订单id
|
||||||
OrderDetailTemplateSn *string `gorm:"index;default:'';" json:"order_detail_template_sn"` // 产品模板sn
|
OrderDetailTemplateSn *string `gorm:"index;default:'';" json:"order_detail_template_sn"` // 产品模板sn
|
||||||
|
|
2
model/gmodel/fs_factory_product_logic.go
Normal file
2
model/gmodel/fs_factory_product_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,17 +6,17 @@ import (
|
||||||
|
|
||||||
// fs_factory_ship_tmp
|
// fs_factory_ship_tmp
|
||||||
type FsFactoryShipTmp struct {
|
type FsFactoryShipTmp struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
Sn *string `gorm:"default:'';" json:"sn"` // 运单号码
|
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
|
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"` // 发货地址
|
AddressSent *string `gorm:"default:'';" json:"address_sent"` // 发货地址
|
||||||
AddressTo *string `gorm:"default:'';" json:"address_to"` // 收获地址 始终是货代公司
|
AddressTo *string `gorm:"default:'';" json:"address_to"` // 收获地址 始终是货代公司
|
||||||
Num *int64 `gorm:"default:0;" json:"num"` // 发货数量
|
Num *int64 `gorm:"default:0;" json:"num"` // 发货数量
|
||||||
Fee *int64 `gorm:"default:0;" json:"fee"` // 运费
|
Fee *int64 `gorm:"default:0;" json:"fee"` // 运费
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否到达 是否通知货代公司 是否是发到云仓
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否到达 是否通知货代公司 是否是发到云仓
|
||||||
}
|
}
|
||||||
type FsFactoryShipTmpModel struct{ db *gorm.DB }
|
type FsFactoryShipTmpModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_factory_ship_tmp_logic.go
Normal file
2
model/gmodel/fs_factory_ship_tmp_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,14 +6,14 @@ import (
|
||||||
|
|
||||||
// fs_faq 常见问题
|
// fs_faq 常见问题
|
||||||
type FsFaq struct {
|
type FsFaq struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
TagId *int64 `gorm:"default:0;" json:"tag_id"` // 分类ID
|
TagId *int64 `gorm:"default:0;" json:"tag_id"` // 分类ID
|
||||||
TagName *string `gorm:"default:'';" json:"tag_name"` // 分类名称
|
TagName *string `gorm:"default:'';" json:"tag_name"` // 分类名称
|
||||||
Title *string `gorm:"default:'';" json:"title"` // 标题
|
Title *string `gorm:"default:'';" json:"title"` // 标题
|
||||||
Content *string `gorm:"default:'';" json:"content"` // 内容
|
Content *string `gorm:"default:'';" json:"content"` // 内容
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态(0:禁用,1:启用)
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态(0:禁用,1:启用)
|
||||||
Sort *int64 `gorm:"default:1;" json:"sort"` // 排序
|
Sort *int64 `gorm:"default:1;" json:"sort"` // 排序
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||||
}
|
}
|
||||||
type FsFaqModel struct{ db *gorm.DB }
|
type FsFaqModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@ import (
|
||||||
|
|
||||||
// fs_font 字体配置
|
// fs_font 字体配置
|
||||||
type FsFont struct {
|
type FsFont struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
||||||
Title *string `gorm:"default:'';" json:"title"` // 字体名字
|
Title *string `gorm:"default:'';" json:"title"` // 字体名字
|
||||||
LinuxFontname *string `gorm:"default:'';" json:"linux_fontname"` // linux对应字体名
|
LinuxFontname *string `gorm:"default:'';" json:"linux_fontname"` // linux对应字体名
|
||||||
FilePath *string `gorm:"default:'';" json:"file_path"` // 字体文件路径
|
FilePath *string `gorm:"default:'';" json:"file_path"` // 字体文件路径
|
||||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||||
}
|
}
|
||||||
type FsFontModel struct{ db *gorm.DB }
|
type FsFontModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
|
|
||||||
// fs_gerent 管理员表
|
// fs_gerent 管理员表
|
||||||
type FsGerent struct {
|
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"` // 用户名
|
Username *string `gorm:"unique_key;default:'';" json:"username"` // 用户名
|
||||||
AuthKey *string `gorm:"default:'';" json:"auth_key"` // token
|
AuthKey *string `gorm:"default:'';" json:"auth_key"` // token
|
||||||
PasswordHash *string `gorm:"default:'';" json:"password_hash"` // 加密密码
|
PasswordHash *string `gorm:"default:'';" json:"password_hash"` // 加密密码
|
||||||
|
|
2
model/gmodel/fs_gerent_logic.go
Normal file
2
model/gmodel/fs_gerent_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,16 +6,16 @@ import (
|
||||||
|
|
||||||
// fs_guest 游客表
|
// fs_guest 游客表
|
||||||
type FsGuest struct {
|
type FsGuest struct {
|
||||||
GuestId int64 `gorm:"primary_key;default:0;" json:"guest_id"` // ID
|
GuestId int64 `gorm:"primary_key;default:0;auto_increment;" json:"guest_id"` // ID
|
||||||
AuthKey *string `gorm:"default:'';" json:"auth_key"` // jwt token
|
AuthKey *string `gorm:"default:'';" json:"auth_key"` // jwt token
|
||||||
Status *int64 `gorm:"index;default:1;" json:"status"` // 1正常 0不正常
|
Status *int64 `gorm:"index;default:1;" json:"status"` // 1正常 0不正常
|
||||||
IsDel *int64 `gorm:"index;default:0;" json:"is_del"` // 是否删除 1删除
|
IsDel *int64 `gorm:"index;default:0;" json:"is_del"` // 是否删除 1删除
|
||||||
CreatedAt *int64 `gorm:"index;default:0;" json:"created_at"` // 添加时间
|
CreatedAt *int64 `gorm:"index;default:0;" json:"created_at"` // 添加时间
|
||||||
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` // 更新时间
|
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` // 更新时间
|
||||||
IsOpenRender *int64 `gorm:"default:0;" json:"is_open_render"` // 是否打开个性化渲染(1:开启,0:关闭)
|
IsOpenRender *int64 `gorm:"default:0;" json:"is_open_render"` // 是否打开个性化渲染(1:开启,0:关闭)
|
||||||
IsThousandFace *int64 `gorm:"default:0;" json:"is_thousand_face"` // 是否已经存在千人千面(1:存在,0:不存在)
|
IsThousandFace *int64 `gorm:"default:0;" json:"is_thousand_face"` // 是否已经存在千人千面(1:存在,0:不存在)
|
||||||
IsLowRendering *int64 `gorm:"default:0;" json:"is_low_rendering"` // 是否开启低渲染模型渲染
|
IsLowRendering *int64 `gorm:"default:0;" json:"is_low_rendering"` // 是否开启低渲染模型渲染
|
||||||
IsRemoveBg *int64 `gorm:"default:1;" json:"is_remove_bg"` // 用户上传logo是否去除背景
|
IsRemoveBg *int64 `gorm:"default:1;" json:"is_remove_bg"` // 用户上传logo是否去除背景
|
||||||
}
|
}
|
||||||
type FsGuestModel struct{ db *gorm.DB }
|
type FsGuestModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -10,11 +10,6 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func (m *FsGuestModel) GenerateGuestID(ctx context.Context, AccessSecret *string) (authKey string, err error) {
|
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 {
|
err = m.db.WithContext(ctx).Transaction(func(tx *gorm.DB) error {
|
||||||
now := time.Now().Unix()
|
now := time.Now().Unix()
|
||||||
|
|
|
@ -6,14 +6,14 @@ import (
|
||||||
|
|
||||||
// fs_log 日志表
|
// fs_log 日志表
|
||||||
type FsLog struct {
|
type FsLog struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
|
||||||
Action *string `gorm:"default:'';" json:"action"` // 执行的动作
|
Action *string `gorm:"default:'';" json:"action"` // 执行的动作
|
||||||
Table *string `gorm:"default:'';" json:"table"` // 表明
|
Table *string `gorm:"default:'';" json:"table"` // 表明
|
||||||
DataChanged *string `gorm:"default:'';" json:"data_changed"` // 修改后的数据
|
DataChanged *string `gorm:"default:'';" json:"data_changed"` // 修改后的数据
|
||||||
DataOld *string `gorm:"default:'';" json:"data_old"` // 变动的数据
|
DataOld *string `gorm:"default:'';" json:"data_old"` // 变动的数据
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||||
Uid *int64 `gorm:"default:0;" json:"uid"` // 操作人ID
|
Uid *int64 `gorm:"default:0;" json:"uid"` // 操作人ID
|
||||||
Uname *string `gorm:"default:'';" json:"uname"` // 操作人名字
|
Uname *string `gorm:"default:'';" json:"uname"` // 操作人名字
|
||||||
}
|
}
|
||||||
type FsLogModel struct{ db *gorm.DB }
|
type FsLogModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_log_logic.go
Normal file
2
model/gmodel/fs_log_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,13 +6,13 @@ import (
|
||||||
|
|
||||||
// fs_map_library 贴图库
|
// fs_map_library 贴图库
|
||||||
type FsMapLibrary struct {
|
type FsMapLibrary struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // Id
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // Id
|
||||||
Title *string `gorm:"default:'';" json:"title"` // 名称
|
Title *string `gorm:"default:'';" json:"title"` // 名称
|
||||||
Info *string `gorm:"default:'';" json:"info"` // 贴图数据
|
Info *string `gorm:"default:'';" json:"info"` // 贴图数据
|
||||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态 1启用
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态 1启用
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||||
TagId *int64 `gorm:"default:0;" json:"tag_id"` // 模板标签id
|
TagId *int64 `gorm:"default:0;" json:"tag_id"` // 模板标签id
|
||||||
}
|
}
|
||||||
type FsMapLibraryModel struct{ db *gorm.DB }
|
type FsMapLibraryModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -6,12 +6,12 @@ import (
|
||||||
|
|
||||||
// fs_menu 后台菜单
|
// fs_menu 后台菜单
|
||||||
type FsMenu struct {
|
type FsMenu struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
||||||
Name *string `gorm:"default:'';" json:"name"` // 菜单名
|
Name *string `gorm:"default:'';" json:"name"` // 菜单名
|
||||||
Parent *int64 `gorm:"index;default:0;" json:"parent"` //
|
Parent *int64 `gorm:"index;default:0;" json:"parent"` //
|
||||||
Route *string `gorm:"default:'';" json:"route"` //
|
Route *string `gorm:"default:'';" json:"route"` //
|
||||||
Order *int64 `gorm:"default:0;" json:"order"` //
|
Order *int64 `gorm:"default:0;" json:"order"` //
|
||||||
Data *[]byte `gorm:"default:'';" json:"data"` // 其他信息(图标等)
|
Data *[]byte `gorm:"default:'';" json:"data"` // 其他信息(图标等)
|
||||||
}
|
}
|
||||||
type FsMenuModel struct{ db *gorm.DB }
|
type FsMenuModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_menu_logic.go
Normal file
2
model/gmodel/fs_menu_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
2
model/gmodel/fs_migration_logic.go
Normal file
2
model/gmodel/fs_migration_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,16 +6,16 @@ import (
|
||||||
|
|
||||||
// fs_order_affiliate 订单附属表-流程控制时间等
|
// fs_order_affiliate 订单附属表-流程控制时间等
|
||||||
type FsOrderAffiliate struct {
|
type FsOrderAffiliate struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
||||||
OrderId *int64 `gorm:"unique_key;default:0;" json:"order_id"` // 订单id
|
OrderId *int64 `gorm:"unique_key;default:0;" json:"order_id"` // 订单id
|
||||||
SureTime *int64 `gorm:"default:0;" json:"sure_time"` // 确认时间
|
SureTime *int64 `gorm:"default:0;" json:"sure_time"` // 确认时间
|
||||||
ProductTime *int64 `gorm:"default:0;" json:"product_time"` // 生产时间
|
ProductTime *int64 `gorm:"default:0;" json:"product_time"` // 生产时间
|
||||||
ProductEndtime *int64 `gorm:"default:0;" json:"product_endtime"` // 生成完成时间
|
ProductEndtime *int64 `gorm:"default:0;" json:"product_endtime"` // 生成完成时间
|
||||||
DeliverTime *int64 `gorm:"default:0;" json:"deliver_time"` // 发货时间
|
DeliverTime *int64 `gorm:"default:0;" json:"deliver_time"` // 发货时间
|
||||||
UpsDeliverTime *int64 `gorm:"default:0;" json:"ups_deliver_time"` // ups发货时间
|
UpsDeliverTime *int64 `gorm:"default:0;" json:"ups_deliver_time"` // ups发货时间
|
||||||
UpsTime *int64 `gorm:"default:0;" json:"ups_time"` // UPS提货时间
|
UpsTime *int64 `gorm:"default:0;" json:"ups_time"` // UPS提货时间
|
||||||
ArrivalTime *int64 `gorm:"default:0;" json:"arrival_time"` // 到达云仓的时间
|
ArrivalTime *int64 `gorm:"default:0;" json:"arrival_time"` // 到达云仓的时间
|
||||||
RecevieTime *int64 `gorm:"default:0;" json:"recevie_time"` // 云仓收货时间
|
RecevieTime *int64 `gorm:"default:0;" json:"recevie_time"` // 云仓收货时间
|
||||||
}
|
}
|
||||||
type FsOrderAffiliateModel struct{ db *gorm.DB }
|
type FsOrderAffiliateModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_order_affiliate_logic.go
Normal file
2
model/gmodel/fs_order_affiliate_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,30 +6,30 @@ import (
|
||||||
|
|
||||||
// fs_order_detail 订单详细表
|
// fs_order_detail 订单详细表
|
||||||
type FsOrderDetail struct {
|
type FsOrderDetail struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 唯一编码
|
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 唯一编码
|
||||||
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 订单ID
|
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 订单ID
|
||||||
UserId *int64 `gorm:"default:0;" json:"user_id"` //
|
UserId *int64 `gorm:"default:0;" json:"user_id"` //
|
||||||
FactoryId *int64 `gorm:"default:0;" json:"factory_id"` // 工厂ID
|
FactoryId *int64 `gorm:"default:0;" json:"factory_id"` // 工厂ID
|
||||||
OrderDetailTemplateId *int64 `gorm:"default:0;" json:"order_detail_template_id"` // 详情templateID
|
OrderDetailTemplateId *int64 `gorm:"default:0;" json:"order_detail_template_id"` // 详情templateID
|
||||||
ProductId *int64 `gorm:"default:0;" json:"product_id"` // 产品ID
|
ProductId *int64 `gorm:"default:0;" json:"product_id"` // 产品ID
|
||||||
BuyNum *int64 `gorm:"default:0;" json:"buy_num"` // 购买数量
|
BuyNum *int64 `gorm:"default:0;" json:"buy_num"` // 购买数量
|
||||||
PushNum *int64 `gorm:"default:0;" json:"push_num"` // 已发数量
|
PushNum *int64 `gorm:"default:0;" json:"push_num"` // 已发数量
|
||||||
Amount *int64 `gorm:"default:0;" json:"amount"` // 单价
|
Amount *int64 `gorm:"default:0;" json:"amount"` // 单价
|
||||||
Cover *string `gorm:"default:'';" json:"cover"` // 截图
|
Cover *string `gorm:"default:'';" json:"cover"` // 截图
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否推送到厂家 是否生产完成 是否发货完成
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否推送到厂家 是否生产完成 是否发货完成
|
||||||
OptionalId *int64 `gorm:"default:0;" json:"optional_id"` // 选项ID
|
OptionalId *int64 `gorm:"default:0;" json:"optional_id"` // 选项ID
|
||||||
OptionalTitle *string `gorm:"default:'';" json:"optional_title"` // 选项名称
|
OptionalTitle *string `gorm:"default:'';" json:"optional_title"` // 选项名称
|
||||||
OptionPrice *int64 `gorm:"default:0;" json:"option_price"` // 配件价格
|
OptionPrice *int64 `gorm:"default:0;" json:"option_price"` // 配件价格
|
||||||
IsTofactory *int64 `gorm:"default:0;" json:"is_tofactory"` // 是否推送到工厂
|
IsTofactory *int64 `gorm:"default:0;" json:"is_tofactory"` // 是否推送到工厂
|
||||||
IsProduct *int64 `gorm:"default:0;" json:"is_product"` // 是否生产中
|
IsProduct *int64 `gorm:"default:0;" json:"is_product"` // 是否生产中
|
||||||
IsProductCompletion *int64 `gorm:"default:0;" json:"is_product_completion"` // 是否生产完成
|
IsProductCompletion *int64 `gorm:"default:0;" json:"is_product_completion"` // 是否生产完成
|
||||||
IsCloud *int64 `gorm:"default:0;" json:"is_cloud"` // 是否是云仓订单
|
IsCloud *int64 `gorm:"default:0;" json:"is_cloud"` // 是否是云仓订单
|
||||||
IsTocloud *int64 `gorm:"default:0;" json:"is_tocloud"` // 是否已发云仓(云仓单要发货到云仓,直接发到用户的不需要发到云仓)
|
IsTocloud *int64 `gorm:"default:0;" json:"is_tocloud"` // 是否已发云仓(云仓单要发货到云仓,直接发到用户的不需要发到云仓)
|
||||||
IsDeliver *int64 `gorm:"default:0;" json:"is_deliver"` // 是否已发货
|
IsDeliver *int64 `gorm:"default:0;" json:"is_deliver"` // 是否已发货
|
||||||
IsEnd *int64 `gorm:"default:0;" json:"is_end"` // 是否完成订单(签收)
|
IsEnd *int64 `gorm:"default:0;" json:"is_end"` // 是否完成订单(签收)
|
||||||
CartId *int64 `gorm:"index;default:0;" json:"cart_id"` // 购物车编号
|
CartId *int64 `gorm:"index;default:0;" json:"cart_id"` // 购物车编号
|
||||||
}
|
}
|
||||||
type FsOrderDetailModel struct{ db *gorm.DB }
|
type FsOrderDetailModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -6,17 +6,17 @@ import (
|
||||||
|
|
||||||
// fs_order_detail_template 订单模板详细表
|
// fs_order_detail_template 订单模板详细表
|
||||||
type FsOrderDetailTemplate struct {
|
type FsOrderDetailTemplate struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 唯一编码
|
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 唯一编码
|
||||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||||
ModelId *int64 `gorm:"default:0;" json:"model_id"` // 模型ID
|
ModelId *int64 `gorm:"default:0;" json:"model_id"` // 模型ID
|
||||||
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模板ID
|
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模板ID
|
||||||
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质id
|
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质id
|
||||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸id
|
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸id
|
||||||
EachBoxNum *int64 `gorm:"default:0;" json:"each_box_num"` // 每一箱的个数
|
EachBoxNum *int64 `gorm:"default:0;" json:"each_box_num"` // 每一箱的个数
|
||||||
EachBoxWeight *float64 `gorm:"default:0.00;" json:"each_box_weight"` // 每一箱的重量 单位KG
|
EachBoxWeight *float64 `gorm:"default:0.00;" json:"each_box_weight"` // 每一箱的重量 单位KG
|
||||||
DesignId *int64 `gorm:"index;default:0;" json:"design_id"` // 设计ID
|
DesignId *int64 `gorm:"index;default:0;" json:"design_id"` // 设计ID
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||||
}
|
}
|
||||||
type FsOrderDetailTemplateModel struct{ db *gorm.DB }
|
type FsOrderDetailTemplateModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -7,42 +7,42 @@ import (
|
||||||
|
|
||||||
// fs_order
|
// fs_order
|
||||||
type FsOrder struct {
|
type FsOrder struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 订单编号 FS211224OL2XDKNP
|
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 订单编号 FS211224OL2XDKNP
|
||||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` //
|
UserId *int64 `gorm:"index;default:0;" json:"user_id"` //
|
||||||
SellerUserId *int64 `gorm:"default:0;" json:"seller_user_id"` //
|
SellerUserId *int64 `gorm:"default:0;" json:"seller_user_id"` //
|
||||||
TotalAmount *int64 `gorm:"default:0;" json:"total_amount"` // 总价
|
TotalAmount *int64 `gorm:"default:0;" json:"total_amount"` // 总价
|
||||||
PayedAmount *int64 `gorm:"default:0;" json:"payed_amount"` // 已支付金额
|
PayedAmount *int64 `gorm:"default:0;" json:"payed_amount"` // 已支付金额
|
||||||
PayMethod *int64 `gorm:"default:0;" json:"pay_method"` // 支付方式 1paypal 2strip
|
PayMethod *int64 `gorm:"default:0;" json:"pay_method"` // 支付方式 1paypal 2strip
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||||
Utime *int64 `gorm:"default:0;" json:"utime"` //
|
Utime *int64 `gorm:"default:0;" json:"utime"` //
|
||||||
Ptime *int64 `gorm:"default:0;" json:"ptime"` //
|
Ptime *int64 `gorm:"default:0;" json:"ptime"` //
|
||||||
AddressId *int64 `gorm:"index;default:0;" json:"address_id"` // 地址ID或者云仓ID
|
AddressId *int64 `gorm:"index;default:0;" json:"address_id"` // 地址ID或者云仓ID
|
||||||
DeliveryMethod *int64 `gorm:"default:0;" json:"delivery_method"` // 配送方式 1:直接发货到收获地址 2:云仓
|
DeliveryMethod *int64 `gorm:"default:0;" json:"delivery_method"` // 配送方式 1:直接发货到收获地址 2:云仓
|
||||||
CustomerMark *string `gorm:"default:'';" json:"customer_mark"` //
|
CustomerMark *string `gorm:"default:'';" json:"customer_mark"` //
|
||||||
Mark *string `gorm:"default:'';" json:"mark"` // 后台订单备注
|
Mark *string `gorm:"default:'';" json:"mark"` // 后台订单备注
|
||||||
AddressInfo *string `gorm:"default:'';" json:"address_info"` // 详细地址信息JSON
|
AddressInfo *string `gorm:"default:'';" json:"address_info"` // 详细地址信息JSON
|
||||||
IsSup *int64 `gorm:"default:0;" json:"is_sup"` // 0不是补货 1是补货
|
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:订单已关闭)
|
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:是)
|
IsPartPay *int64 `gorm:"default:0;" json:"is_part_pay"` // 是否部分支付(0:否,1:是)
|
||||||
IsPayCompleted *int64 `gorm:"default:0;" json:"is_pay_completed"` // 是否支付完成(0:否,1:是)
|
IsPayCompleted *int64 `gorm:"default:0;" json:"is_pay_completed"` // 是否支付完成(0:否,1:是)
|
||||||
IsPartProduct *int64 `gorm:"default:0;" json:"is_part_product"` // 是否部分生产(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:是)
|
IsPartProductCompleted *int64 `gorm:"default:0;" json:"is_part_product_completed"` // 是否部分生产完成(0:否,1:是)
|
||||||
IsAllProduct *int64 `gorm:"default:0;" json:"is_all_product"` // 是否全部生产(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:是)
|
IsAllProductCompleted *int64 `gorm:"default:0;" json:"is_all_product_completed"` // 是否全部生产完成(0:否,1:是)
|
||||||
IsPartDelivery *int64 `gorm:"default:0;" json:"is_part_delivery"` // 是否部分发货(0:否,1:是)
|
IsPartDelivery *int64 `gorm:"default:0;" json:"is_part_delivery"` // 是否部分发货(0:否,1:是)
|
||||||
IsDeliveryCompleted *int64 `gorm:"default:0;" json:"is_delivery_completed"` // 是否发货完成(0:否,1:是)
|
IsDeliveryCompleted *int64 `gorm:"default:0;" json:"is_delivery_completed"` // 是否发货完成(0:否,1:是)
|
||||||
IsComplated *int64 `gorm:"default:0;" json:"is_complated"` // 是否完成订单(0:否,1:是)
|
IsComplated *int64 `gorm:"default:0;" json:"is_complated"` // 是否完成订单(0:否,1:是)
|
||||||
IsCancel *int64 `gorm:"default:0;" json:"is_cancel"` // 是否取消订单(0:否,1:是)
|
IsCancel *int64 `gorm:"default:0;" json:"is_cancel"` // 是否取消订单(0:否,1:是)
|
||||||
IsRefunding *int64 `gorm:"default:0;" json:"is_refunding"` // 是否退款中(0:否,1:是)
|
IsRefunding *int64 `gorm:"default:0;" json:"is_refunding"` // 是否退款中(0:否,1:是)
|
||||||
IsRefunded *int64 `gorm:"default:0;" json:"is_refunded"` // 是否退款完成(0:否,1:是)
|
IsRefunded *int64 `gorm:"default:0;" json:"is_refunded"` // 是否退款完成(0:否,1:是)
|
||||||
IsDeleted *int64 `gorm:"default:0;" json:"is_deleted"` // 是否删除(0:否,1:是)
|
IsDeleted *int64 `gorm:"default:0;" json:"is_deleted"` // 是否删除(0:否,1:是)
|
||||||
RefundReasonId *int64 `gorm:"default:0;" json:"refund_reason_id"` //
|
RefundReasonId *int64 `gorm:"default:0;" json:"refund_reason_id"` //
|
||||||
RefundReason *string `gorm:"default:'';" json:"refund_reason"` //
|
RefundReason *string `gorm:"default:'';" json:"refund_reason"` //
|
||||||
TsTime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ts_time"` //
|
TsTime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ts_time"` //
|
||||||
IsSure *int64 `gorm:"default:0;" json:"is_sure"` // 是否确认订单 1确认0未确认
|
IsSure *int64 `gorm:"default:0;" json:"is_sure"` // 是否确认订单 1确认0未确认
|
||||||
DeliverSn *string `gorm:"default:'';" json:"deliver_sn"` // 发货单号
|
DeliverSn *string `gorm:"default:'';" json:"deliver_sn"` // 发货单号
|
||||||
EmailTime *int64 `gorm:"default:0;" json:"email_time"` // 邮件发送时间
|
EmailTime *int64 `gorm:"default:0;" json:"email_time"` // 邮件发送时间
|
||||||
}
|
}
|
||||||
type FsOrderModel struct{ db *gorm.DB }
|
type FsOrderModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@ import (
|
||||||
|
|
||||||
// fs_order_remark 订单备注表
|
// fs_order_remark 订单备注表
|
||||||
type FsOrderRemark struct {
|
type FsOrderRemark struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
||||||
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 订单id
|
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 订单id
|
||||||
Remark *string `gorm:"default:'';" json:"remark"` // 订单备注
|
Remark *string `gorm:"default:'';" json:"remark"` // 订单备注
|
||||||
AdminId *int64 `gorm:"default:0;" json:"admin_id"` // 后台操作人员
|
AdminId *int64 `gorm:"default:0;" json:"admin_id"` // 后台操作人员
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||||
}
|
}
|
||||||
type FsOrderRemarkModel struct{ db *gorm.DB }
|
type FsOrderRemarkModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_order_remark_logic.go
Normal file
2
model/gmodel/fs_order_remark_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,21 +6,21 @@ import (
|
||||||
|
|
||||||
// fs_pay 支付记录
|
// fs_pay 支付记录
|
||||||
type FsPay struct {
|
type FsPay struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户id
|
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户id
|
||||||
OrderNumber *string `gorm:"default:'';" json:"order_number"` // 订单编号
|
OrderNumber *string `gorm:"default:'';" json:"order_number"` // 订单编号
|
||||||
TradeNo *string `gorm:"index;default:'';" json:"trade_no"` // 第三方支付编号
|
TradeNo *string `gorm:"index;default:'';" json:"trade_no"` // 第三方支付编号
|
||||||
PayAmount *int64 `gorm:"default:0;" json:"pay_amount"` // 支付金额 (分)
|
PayAmount *int64 `gorm:"default:0;" json:"pay_amount"` // 支付金额 (分)
|
||||||
PayStatus *int64 `gorm:"default:0;" json:"pay_status"` // 支付状态 0 不成功 1 成功
|
PayStatus *int64 `gorm:"default:0;" json:"pay_status"` // 支付状态 0 不成功 1 成功
|
||||||
IsRefund *int64 `gorm:"default:0;" json:"is_refund"` // 是否退款 0 未退款 1退款
|
IsRefund *int64 `gorm:"default:0;" json:"is_refund"` // 是否退款 0 未退款 1退款
|
||||||
PaymentMethod *int64 `gorm:"default:0;" json:"payment_method"` // 支付方式 1 stripe 2 paypal
|
PaymentMethod *int64 `gorm:"default:0;" json:"payment_method"` // 支付方式 1 stripe 2 paypal
|
||||||
PayStage *int64 `gorm:"default:0;" json:"pay_stage"` // 支付阶段 1首付 2尾款
|
PayStage *int64 `gorm:"default:0;" json:"pay_stage"` // 支付阶段 1首付 2尾款
|
||||||
OrderSource *int64 `gorm:"default:1;" json:"order_source"` // 订单来源 1pc
|
OrderSource *int64 `gorm:"default:1;" json:"order_source"` // 订单来源 1pc
|
||||||
PayTime *int64 `gorm:"default:0;" json:"pay_time"` // 支付时间
|
PayTime *int64 `gorm:"default:0;" json:"pay_time"` // 支付时间
|
||||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
||||||
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` // 更新时间
|
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` // 更新时间
|
||||||
CardNo *string `gorm:"default:'';" json:"card_no"` // 卡后4位
|
CardNo *string `gorm:"default:'';" json:"card_no"` // 卡后4位
|
||||||
Brand *string `gorm:"default:'';" json:"brand"` // 银行品牌
|
Brand *string `gorm:"default:'';" json:"brand"` // 银行品牌
|
||||||
}
|
}
|
||||||
type FsPayModel struct{ db *gorm.DB }
|
type FsPayModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -6,32 +6,32 @@ import (
|
||||||
|
|
||||||
// fs_product_copy1 产品表
|
// fs_product_copy1 产品表
|
||||||
type FsProductCopy1 struct {
|
type FsProductCopy1 struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 商品编号 P98f087j
|
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"` // 名称
|
Title *string `gorm:"default:'';" json:"title"` // 名称
|
||||||
TitleCn *string `gorm:"default:'';" json:"title_cn"` // 中文名称
|
TitleCn *string `gorm:"default:'';" json:"title_cn"` // 中文名称
|
||||||
Cover *string `gorm:"default:'';" json:"cover"` // 封面图
|
Cover *string `gorm:"default:'';" json:"cover"` // 封面图
|
||||||
Imgs *string `gorm:"default:'';" json:"imgs"` // 一个或多个介绍图或视频
|
Imgs *string `gorm:"default:'';" json:"imgs"` // 一个或多个介绍图或视频
|
||||||
Keywords *string `gorm:"default:'';" json:"keywords"` // 关键字
|
Keywords *string `gorm:"default:'';" json:"keywords"` // 关键字
|
||||||
Intro *string `gorm:"default:'';" json:"intro"` // 简要描述
|
Intro *string `gorm:"default:'';" json:"intro"` // 简要描述
|
||||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||||
SelledNum *int64 `gorm:"default:0;" json:"selled_num"` // 已卖数量
|
SelledNum *int64 `gorm:"default:0;" json:"selled_num"` // 已卖数量
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||||
View *int64 `gorm:"default:0;" json:"view"` // 浏览量
|
View *int64 `gorm:"default:0;" json:"view"` // 浏览量
|
||||||
SizeIds *string `gorm:"default:'';" json:"size_ids"` //
|
SizeIds *string `gorm:"default:'';" json:"size_ids"` //
|
||||||
MaterialIds *string `gorm:"default:'';" json:"material_ids"` // 材质 1,2,3
|
MaterialIds *string `gorm:"default:'';" json:"material_ids"` // 材质 1,2,3
|
||||||
TagIds *string `gorm:"default:'';" json:"tag_ids"` //
|
TagIds *string `gorm:"default:'';" json:"tag_ids"` //
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否上架 是否推荐 是否热销 是否环保 是否可加入微波炉 是否刪除
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否上架 是否推荐 是否热销 是否环保 是否可加入微波炉 是否刪除
|
||||||
ProduceDays *int64 `gorm:"default:0;" json:"produce_days"` // 生产天数
|
ProduceDays *int64 `gorm:"default:0;" json:"produce_days"` // 生产天数
|
||||||
DeliveryDays *int64 `gorm:"default:0;" json:"delivery_days"` // 运送天数
|
DeliveryDays *int64 `gorm:"default:0;" json:"delivery_days"` // 运送天数
|
||||||
CoverImg *string `gorm:"default:'';" json:"cover_img"` // 背景图
|
CoverImg *string `gorm:"default:'';" json:"cover_img"` // 背景图
|
||||||
IsShelf *int64 `gorm:"default:1;" json:"is_shelf"` // 是否上架
|
IsShelf *int64 `gorm:"default:1;" json:"is_shelf"` // 是否上架
|
||||||
IsRecommend *int64 `gorm:"default:1;" json:"is_recommend"` // 是否推荐
|
IsRecommend *int64 `gorm:"default:1;" json:"is_recommend"` // 是否推荐
|
||||||
IsHot *int64 `gorm:"default:1;" json:"is_hot"` // 是否热销
|
IsHot *int64 `gorm:"default:1;" json:"is_hot"` // 是否热销
|
||||||
IsProtection *int64 `gorm:"default:1;" json:"is_protection"` // 是否环保
|
IsProtection *int64 `gorm:"default:1;" json:"is_protection"` // 是否环保
|
||||||
IsMicrowave *int64 `gorm:"default:1;" json:"is_microwave"` // 是否可微波炉
|
IsMicrowave *int64 `gorm:"default:1;" json:"is_microwave"` // 是否可微波炉
|
||||||
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除
|
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除
|
||||||
}
|
}
|
||||||
type FsProductCopy1Model struct{ db *gorm.DB }
|
type FsProductCopy1Model struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_product_copy1_logic.go
Normal file
2
model/gmodel/fs_product_copy1_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,20 +6,20 @@ import (
|
||||||
|
|
||||||
// fs_product_design_gather
|
// fs_product_design_gather
|
||||||
type FsProductDesignGather struct {
|
type FsProductDesignGather struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
Sn *string `gorm:"index;default:'';" json:"sn"` // 唯一标识
|
Sn *string `gorm:"index;default:'';" json:"sn"` // 唯一标识
|
||||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` //
|
UserId *int64 `gorm:"index;default:0;" json:"user_id"` //
|
||||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||||
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模型ID
|
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模型ID
|
||||||
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
||||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
||||||
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
||||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||||
Info *string `gorm:"default:'';" json:"info"` // 保留的设计信息
|
Info *string `gorm:"default:'';" json:"info"` // 保留的设计信息
|
||||||
Utime *int64 `gorm:"default:0;" json:"utime"` //
|
Utime *int64 `gorm:"default:0;" json:"utime"` //
|
||||||
Status *int64 `gorm:"default:1;" json:"status"` // 状态位(1:显示,0:删除)
|
Status *int64 `gorm:"default:1;" json:"status"` // 状态位(1:显示,0:删除)
|
||||||
ClientIp *string `gorm:"default:'';" json:"client_ip"` // 客户端ip
|
ClientIp *string `gorm:"default:'';" json:"client_ip"` // 客户端ip
|
||||||
ClientNo *string `gorm:"default:'';" json:"client_no"` // 客户端唯一标识
|
ClientNo *string `gorm:"default:'';" json:"client_no"` // 客户端唯一标识
|
||||||
}
|
}
|
||||||
type FsProductDesignGatherModel struct{ db *gorm.DB }
|
type FsProductDesignGatherModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_product_design_gather_logic.go
Normal file
2
model/gmodel/fs_product_design_gather_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -7,22 +7,22 @@ import (
|
||||||
|
|
||||||
// fs_product_design 产品设计表
|
// fs_product_design 产品设计表
|
||||||
type FsProductDesign struct {
|
type FsProductDesign struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
Sn *string `gorm:"index;default:'';" json:"sn"` // 唯一标识
|
Sn *string `gorm:"index;default:'';" json:"sn"` // 唯一标识
|
||||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
|
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
|
||||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||||
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模型ID
|
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模型ID
|
||||||
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
||||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
||||||
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
||||||
Cover *string `gorm:"default:'';" json:"cover"` // 封面图
|
Cover *string `gorm:"default:'';" json:"cover"` // 封面图
|
||||||
Info *string `gorm:"default:'';" json:"info"` // 保留的设计信息
|
Info *string `gorm:"default:'';" json:"info"` // 保留的设计信息
|
||||||
Utime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"utime"` //
|
Utime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"utime"` //
|
||||||
Status *int64 `gorm:"default:1;" json:"status"` // 状态
|
Status *int64 `gorm:"default:1;" json:"status"` // 状态
|
||||||
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除 0未删除 1删除
|
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除 0未删除 1删除
|
||||||
IsPay *int64 `gorm:"default:0;" json:"is_pay"` // 是否已有支付 0 未 1 有
|
IsPay *int64 `gorm:"default:0;" json:"is_pay"` // 是否已有支付 0 未 1 有
|
||||||
LogoColor *string `gorm:"default:'';" json:"logo_color"` // logo图片备选项
|
LogoColor *string `gorm:"default:'';" json:"logo_color"` // logo图片备选项
|
||||||
PageGuid *string `gorm:"default:'';" json:"page_guid"` // 页面识别id
|
PageGuid *string `gorm:"default:'';" json:"page_guid"` // 页面识别id
|
||||||
}
|
}
|
||||||
type FsProductDesignModel struct{ db *gorm.DB }
|
type FsProductDesignModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -6,35 +6,35 @@ import (
|
||||||
|
|
||||||
// fs_product 产品表
|
// fs_product 产品表
|
||||||
type FsProduct struct {
|
type FsProduct struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 商品编号 P98f087j
|
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"` // 名称
|
Title *string `gorm:"default:'';" json:"title"` // 名称
|
||||||
TitleCn *string `gorm:"default:'';" json:"title_cn"` // 中文名称
|
TitleCn *string `gorm:"default:'';" json:"title_cn"` // 中文名称
|
||||||
Cover *string `gorm:"default:'';" json:"cover"` // 封面图
|
Cover *string `gorm:"default:'';" json:"cover"` // 封面图
|
||||||
Imgs *string `gorm:"default:'';" json:"imgs"` // 一个或多个介绍图或视频
|
Imgs *string `gorm:"default:'';" json:"imgs"` // 一个或多个介绍图或视频
|
||||||
Keywords *string `gorm:"default:'';" json:"keywords"` // 关键字
|
Keywords *string `gorm:"default:'';" json:"keywords"` // 关键字
|
||||||
Intro *string `gorm:"default:'';" json:"intro"` // 简要描述
|
Intro *string `gorm:"default:'';" json:"intro"` // 简要描述
|
||||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||||
SelledNum *int64 `gorm:"default:0;" json:"selled_num"` // 已卖数量
|
SelledNum *int64 `gorm:"default:0;" json:"selled_num"` // 已卖数量
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||||
View *int64 `gorm:"default:0;" json:"view"` // 浏览量
|
View *int64 `gorm:"default:0;" json:"view"` // 浏览量
|
||||||
SizeIds *string `gorm:"default:'';" json:"size_ids"` //
|
SizeIds *string `gorm:"default:'';" json:"size_ids"` //
|
||||||
MaterialIds *string `gorm:"default:'';" json:"material_ids"` // 材质 1,2,3
|
MaterialIds *string `gorm:"default:'';" json:"material_ids"` // 材质 1,2,3
|
||||||
TagIds *string `gorm:"default:'';" json:"tag_ids"` //
|
TagIds *string `gorm:"default:'';" json:"tag_ids"` //
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 弃用
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 弃用
|
||||||
ProduceDays *int64 `gorm:"default:0;" json:"produce_days"` // 生产天数
|
ProduceDays *int64 `gorm:"default:0;" json:"produce_days"` // 生产天数
|
||||||
DeliveryDays *int64 `gorm:"default:0;" json:"delivery_days"` // 运送天数
|
DeliveryDays *int64 `gorm:"default:0;" json:"delivery_days"` // 运送天数
|
||||||
CoverImg *string `gorm:"default:'';" json:"cover_img"` // 背景图
|
CoverImg *string `gorm:"default:'';" json:"cover_img"` // 背景图
|
||||||
IsShelf *int64 `gorm:"default:1;" json:"is_shelf"` // 是否上架
|
IsShelf *int64 `gorm:"default:1;" json:"is_shelf"` // 是否上架
|
||||||
IsRecommend *int64 `gorm:"default:1;" json:"is_recommend"` // 是否推荐
|
IsRecommend *int64 `gorm:"default:1;" json:"is_recommend"` // 是否推荐
|
||||||
IsHot *int64 `gorm:"default:1;" json:"is_hot"` // 是否热销
|
IsHot *int64 `gorm:"default:1;" json:"is_hot"` // 是否热销
|
||||||
IsProtection *int64 `gorm:"default:1;" json:"is_protection"` // 是否环保
|
IsProtection *int64 `gorm:"default:1;" json:"is_protection"` // 是否环保
|
||||||
IsMicrowave *int64 `gorm:"default:1;" json:"is_microwave"` // 是否可微波炉
|
IsMicrowave *int64 `gorm:"default:1;" json:"is_microwave"` // 是否可微波炉
|
||||||
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除
|
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除
|
||||||
RecommendProduct *string `gorm:"default:'';" json:"recommend_product"` //
|
RecommendProduct *string `gorm:"default:'';" json:"recommend_product"` //
|
||||||
RecommendProductSort *string `gorm:"default:'';" json:"recommend_product_sort"` //
|
RecommendProductSort *string `gorm:"default:'';" json:"recommend_product_sort"` //
|
||||||
SceneIds *string `gorm:"default:'';" json:"scene_ids"` //
|
SceneIds *string `gorm:"default:'';" json:"scene_ids"` //
|
||||||
}
|
}
|
||||||
type FsProductModel struct{ db *gorm.DB }
|
type FsProductModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -6,24 +6,24 @@ import (
|
||||||
|
|
||||||
// fs_product_model3d 产品模型表
|
// fs_product_model3d 产品模型表
|
||||||
type FsProductModel3d struct {
|
type FsProductModel3d struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` //
|
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` //
|
||||||
Tag *int64 `gorm:"default:1;" json:"tag"` // 类别(1:模型,2:配件,3:场景)
|
Tag *int64 `gorm:"default:1;" json:"tag"` // 类别(1:模型,2:配件,3:场景)
|
||||||
Title *string `gorm:"default:'';" json:"title"` // 标题
|
Title *string `gorm:"default:'';" json:"title"` // 标题
|
||||||
Name *string `gorm:"default:'';" json:"name"` // 详情页展示名称
|
Name *string `gorm:"default:'';" json:"name"` // 详情页展示名称
|
||||||
ModelInfo *string `gorm:"default:'';" json:"model_info"` // 模型详情
|
ModelInfo *string `gorm:"default:'';" json:"model_info"` // 模型详情
|
||||||
MaterialId *int64 `gorm:"default:0;" json:"material_id"` // 材质ID
|
MaterialId *int64 `gorm:"default:0;" json:"material_id"` // 材质ID
|
||||||
SizeId *int64 `gorm:"default:0;" json:"size_id"` // 尺寸ID
|
SizeId *int64 `gorm:"default:0;" json:"size_id"` // 尺寸ID
|
||||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||||
Light *int64 `gorm:"default:0;" json:"light"` //
|
Light *int64 `gorm:"default:0;" json:"light"` //
|
||||||
LightList *string `gorm:"default:'';" json:"light_list"` //
|
LightList *string `gorm:"default:'';" json:"light_list"` //
|
||||||
PartId *int64 `gorm:"default:0;" json:"part_id"` //
|
PartId *int64 `gorm:"default:0;" json:"part_id"` //
|
||||||
PartList *string `gorm:"default:'';" json:"part_list"` //
|
PartList *string `gorm:"default:'';" json:"part_list"` //
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 显示 删除
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 显示 删除
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||||
OptionTemplate *int64 `gorm:"default:0;" json:"option_template"` //
|
OptionTemplate *int64 `gorm:"default:0;" json:"option_template"` //
|
||||||
Price *int64 `gorm:"default:0;" json:"price"` // 仅配件用,配件的价格, 单位:美分
|
Price *int64 `gorm:"default:0;" json:"price"` // 仅配件用,配件的价格, 单位:美分
|
||||||
Sku *string `gorm:"default:'';" json:"sku"` // sku
|
Sku *string `gorm:"default:'';" json:"sku"` // sku
|
||||||
}
|
}
|
||||||
type FsProductModel3dModel struct{ db *gorm.DB }
|
type FsProductModel3dModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@ import (
|
||||||
|
|
||||||
// fs_product_model3d_light 模型-灯光组表
|
// fs_product_model3d_light 模型-灯光组表
|
||||||
type FsProductModel3dLight struct {
|
type FsProductModel3dLight struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
Name *string `gorm:"default:'';" json:"name"` // 灯光名称
|
Name *string `gorm:"default:'';" json:"name"` // 灯光名称
|
||||||
Info *string `gorm:"default:'';" json:"info"` // 灯光数据(json格式)
|
Info *string `gorm:"default:'';" json:"info"` // 灯光数据(json格式)
|
||||||
Status *int64 `gorm:"default:1;" json:"status"` // 状态值(1:显示,0:删除)
|
Status *int64 `gorm:"default:1;" json:"status"` // 状态值(1:显示,0:删除)
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||||
}
|
}
|
||||||
type FsProductModel3dLightModel struct{ db *gorm.DB }
|
type FsProductModel3dLightModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -6,13 +6,13 @@ import (
|
||||||
|
|
||||||
// fs_product_option 产品选项表(已废弃)
|
// fs_product_option 产品选项表(已废弃)
|
||||||
type FsProductOption struct {
|
type FsProductOption struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
Title *string `gorm:"default:'';" json:"title"` // 名称
|
Title *string `gorm:"default:'';" json:"title"` // 名称
|
||||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品id
|
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品id
|
||||||
Price *int64 `gorm:"default:0;" json:"price"` // 产品单价
|
Price *int64 `gorm:"default:0;" json:"price"` // 产品单价
|
||||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸id
|
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸id
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态值(0:禁用,1:启用)
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态值(0:禁用,1:启用)
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||||
}
|
}
|
||||||
type FsProductOptionModel struct{ db *gorm.DB }
|
type FsProductOptionModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_product_option_logic.go
Normal file
2
model/gmodel/fs_product_option_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,19 +6,19 @@ import (
|
||||||
|
|
||||||
// fs_product_price 阶梯价格表
|
// fs_product_price 阶梯价格表
|
||||||
type FsProductPrice struct {
|
type FsProductPrice struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
Sn *string `gorm:"default:'';" json:"sn"` // 唯一编码
|
Sn *string `gorm:"default:'';" json:"sn"` // 唯一编码
|
||||||
Title *string `gorm:"default:'';" json:"title"` // 标题描述
|
Title *string `gorm:"default:'';" json:"title"` // 标题描述
|
||||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||||
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
||||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
||||||
EachBoxNum *int64 `gorm:"default:0;" json:"each_box_num"` // 每一箱的个数
|
EachBoxNum *int64 `gorm:"default:0;" json:"each_box_num"` // 每一箱的个数
|
||||||
EachBoxWeight *float64 `gorm:"default:0.00;" json:"each_box_weight"` // 每一箱的重量 单位KG
|
EachBoxWeight *float64 `gorm:"default:0.00;" json:"each_box_weight"` // 每一箱的重量 单位KG
|
||||||
MinBuyNum *int64 `gorm:"default:0;" json:"min_buy_num"` // 最少购买量
|
MinBuyNum *int64 `gorm:"default:0;" json:"min_buy_num"` // 最少购买量
|
||||||
StepNum *string `gorm:"default:'';" json:"step_num"` // 数量阶梯 eg:10,20,30
|
StepNum *string `gorm:"default:'';" json:"step_num"` // 数量阶梯 eg:10,20,30
|
||||||
StepPrice *string `gorm:"default:'';" json:"step_price"` // 价格阶梯 eg:100,50,25
|
StepPrice *string `gorm:"default:'';" json:"step_price"` // 价格阶梯 eg:100,50,25
|
||||||
Status *int64 `gorm:"default:1;" json:"status"` // 是否可用
|
Status *int64 `gorm:"default:1;" json:"status"` // 是否可用
|
||||||
IsDefault *int64 `gorm:"default:0;" json:"is_default"` // 是否默认
|
IsDefault *int64 `gorm:"default:0;" json:"is_default"` // 是否默认
|
||||||
}
|
}
|
||||||
type FsProductPriceModel struct{ db *gorm.DB }
|
type FsProductPriceModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -6,21 +6,21 @@ import (
|
||||||
|
|
||||||
// fs_product_render_design
|
// fs_product_render_design
|
||||||
type FsProductRenderDesign struct {
|
type FsProductRenderDesign struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
Sn *string `gorm:"index;default:'';" json:"sn"` // 唯一标识
|
Sn *string `gorm:"index;default:'';" json:"sn"` // 唯一标识
|
||||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` //
|
UserId *int64 `gorm:"index;default:0;" json:"user_id"` //
|
||||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||||
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模型ID
|
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模型ID
|
||||||
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
||||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
||||||
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
||||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||||
Info *string `gorm:"default:'';" json:"info"` // 保留的设计信息
|
Info *string `gorm:"default:'';" json:"info"` // 保留的设计信息
|
||||||
Utime *int64 `gorm:"default:0;" json:"utime"` //
|
Utime *int64 `gorm:"default:0;" json:"utime"` //
|
||||||
Status *int64 `gorm:"default:1;" json:"status"` // 状态位(1:显示,0:删除)
|
Status *int64 `gorm:"default:1;" json:"status"` // 状态位(1:显示,0:删除)
|
||||||
ClientIp *string `gorm:"default:'';" json:"client_ip"` // 客户端ip
|
ClientIp *string `gorm:"default:'';" json:"client_ip"` // 客户端ip
|
||||||
ClientNo *string `gorm:"default:'';" json:"client_no"` // 客户端唯一标识
|
ClientNo *string `gorm:"default:'';" json:"client_no"` // 客户端唯一标识
|
||||||
LogoColor *string `gorm:"default:'';" json:"logo_color"` // logo图片备选颜色
|
LogoColor *string `gorm:"default:'';" json:"logo_color"` // logo图片备选颜色
|
||||||
}
|
}
|
||||||
type FsProductRenderDesignModel struct{ db *gorm.DB }
|
type FsProductRenderDesignModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_product_render_design_logic.go
Normal file
2
model/gmodel/fs_product_render_design_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,12 +6,12 @@ import (
|
||||||
|
|
||||||
// fs_product_scene 产品场景表
|
// fs_product_scene 产品场景表
|
||||||
type FsProductScene struct {
|
type FsProductScene struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // ID
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
|
||||||
Name *string `gorm:"default:'';" json:"name"` // 场景名
|
Name *string `gorm:"default:'';" json:"name"` // 场景名
|
||||||
Info *string `gorm:"default:'';" json:"info"` // 场景详情
|
Info *string `gorm:"default:'';" json:"info"` // 场景详情
|
||||||
ModelIds *string `gorm:"default:'';" json:"model_ids"` // 该场景涉及的模型id
|
ModelIds *string `gorm:"default:'';" json:"model_ids"` // 该场景涉及的模型id
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态1正常
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态1正常
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||||
}
|
}
|
||||||
type FsProductSceneModel struct{ db *gorm.DB }
|
type FsProductSceneModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_product_scene_logic.go
Normal file
2
model/gmodel/fs_product_scene_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,16 +6,16 @@ import (
|
||||||
|
|
||||||
// fs_product_size 产品尺寸表
|
// fs_product_size 产品尺寸表
|
||||||
type FsProductSize struct {
|
type FsProductSize struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` //
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||||
Title *string `gorm:"default:'';" json:"title"` // 标题 10*10*20
|
Title *string `gorm:"default:'';" json:"title"` // 标题 10*10*20
|
||||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||||
CoverImg *string `gorm:"default:'';" json:"cover_img"` //
|
CoverImg *string `gorm:"default:'';" json:"cover_img"` //
|
||||||
Capacity *string `gorm:"default:'';" json:"capacity"` // 自己填的尺寸名称
|
Capacity *string `gorm:"default:'';" json:"capacity"` // 自己填的尺寸名称
|
||||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 显示 删除
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 显示 删除
|
||||||
Sort *int64 `gorm:"default:50;" json:"sort"` // 排序
|
Sort *int64 `gorm:"default:50;" json:"sort"` // 排序
|
||||||
Remark *string `gorm:"default:'';" json:"remark"` //
|
Remark *string `gorm:"default:'';" json:"remark"` //
|
||||||
PartsCanDeleted *int64 `gorm:"default:1;" json:"parts_can_deleted"` // 配件是否可移除 1是0否
|
PartsCanDeleted *int64 `gorm:"default:1;" json:"parts_can_deleted"` // 配件是否可移除 1是0否
|
||||||
}
|
}
|
||||||
type FsProductSizeModel struct{ db *gorm.DB }
|
type FsProductSizeModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,11 @@ import (
|
||||||
|
|
||||||
// fs_product_template_basemap 模板底图表
|
// fs_product_template_basemap 模板底图表
|
||||||
type FsProductTemplateBasemap struct {
|
type FsProductTemplateBasemap struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // Id
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // Id
|
||||||
Name *string `gorm:"default:'';" json:"name"` // 底图名称
|
Name *string `gorm:"default:'';" json:"name"` // 底图名称
|
||||||
Url *string `gorm:"default:'';" json:"url"` // 底图地址
|
Url *string `gorm:"default:'';" json:"url"` // 底图地址
|
||||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||||
Status *int64 `gorm:"default:1;" json:"status"` // 状态值,1正常0删除
|
Status *int64 `gorm:"default:1;" json:"status"` // 状态值,1正常0删除
|
||||||
}
|
}
|
||||||
type FsProductTemplateBasemapModel struct{ db *gorm.DB }
|
type FsProductTemplateBasemapModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_product_template_basemap_logic.go
Normal file
2
model/gmodel/fs_product_template_basemap_logic.go
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
package gmodel
|
||||||
|
// TODO: 使用model的属性做你想做的
|
|
@ -6,26 +6,26 @@ import (
|
||||||
|
|
||||||
// fs_product_template_element 云渲染配置表
|
// fs_product_template_element 云渲染配置表
|
||||||
type FsProductTemplateElement struct {
|
type FsProductTemplateElement struct {
|
||||||
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
||||||
Title *string `gorm:"default:'';" json:"title"` // 产品模板名称
|
Title *string `gorm:"default:'';" json:"title"` // 产品模板名称
|
||||||
ProductTemplateId *int64 `gorm:"index;default:0;" json:"product_template_id"` // 产品模板id
|
ProductTemplateId *int64 `gorm:"index;default:0;" json:"product_template_id"` // 产品模板id
|
||||||
Main *string `gorm:"default:'';" json:"main"` //
|
Main *string `gorm:"default:'';" json:"main"` //
|
||||||
Second *string `gorm:"default:'';" json:"second"` //
|
Second *string `gorm:"default:'';" json:"second"` //
|
||||||
Base *string `gorm:"default:'';" json:"base"` //
|
Base *string `gorm:"default:'';" json:"base"` //
|
||||||
Paper *string `gorm:"default:'';" json:"paper"` //
|
Paper *string `gorm:"default:'';" json:"paper"` //
|
||||||
Spoon *string `gorm:"default:'';" json:"spoon"` //
|
Spoon *string `gorm:"default:'';" json:"spoon"` //
|
||||||
Fork *string `gorm:"default:'';" json:"fork"` //
|
Fork *string `gorm:"default:'';" json:"fork"` //
|
||||||
Toothpick *string `gorm:"default:'';" json:"toothpick"` //
|
Toothpick *string `gorm:"default:'';" json:"toothpick"` //
|
||||||
Chopsticks *string `gorm:"default:'';" json:"chopsticks"` //
|
Chopsticks *string `gorm:"default:'';" json:"chopsticks"` //
|
||||||
Shadow *string `gorm:"default:'';" json:"shadow"` //
|
Shadow *string `gorm:"default:'';" json:"shadow"` //
|
||||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||||
Cover1 *string `gorm:"default:'';" json:"cover1"` //
|
Cover1 *string `gorm:"default:'';" json:"cover1"` //
|
||||||
Mode *string `gorm:"default:'';" json:"mode"` //
|
Mode *string `gorm:"default:'';" json:"mode"` //
|
||||||
Light *int64 `gorm:"default:0;" json:"light"` //
|
Light *int64 `gorm:"default:0;" json:"light"` //
|
||||||
Rotation *string `gorm:"default:'';" json:"rotation"` //
|
Rotation *string `gorm:"default:'';" json:"rotation"` //
|
||||||
Scale *string `gorm:"default:'';" json:"scale"` //
|
Scale *string `gorm:"default:'';" json:"scale"` //
|
||||||
ModelP *string `gorm:"default:'';" json:"model_p"` // 配件对应的云渲染贴图数据
|
ModelP *string `gorm:"default:'';" json:"model_p"` // 配件对应的云渲染贴图数据
|
||||||
Refletion *string `gorm:"default:'';" json:"refletion"` // 反射探头组
|
Refletion *string `gorm:"default:'';" json:"refletion"` // 反射探头组
|
||||||
}
|
}
|
||||||
type FsProductTemplateElementModel struct{ db *gorm.DB }
|
type FsProductTemplateElementModel struct{ db *gorm.DB }
|
||||||
|
|
||||||
|
|
2
model/gmodel/fs_product_template_element_logic.go
Normal file
2
model/gmodel/fs_product_template_element_logic.go
Normal 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
Loading…
Reference in New Issue
Block a user