fix
This commit is contained in:
parent
530d711f75
commit
f519e27719
@ -9,10 +9,10 @@ type FsAuthItem struct {
|
||||
Name string `gorm:"primary_key;default:'';" json:"name"` // 角色或权限名称
|
||||
Type *int64 `gorm:"index;default:0;" json:"type"` // 权限类型:1 表示角色,2 表示权限
|
||||
Description *string `gorm:"default:'';" json:"description"` // 角色或权限描述
|
||||
RuleName *string `gorm:"index;default:'';" json:"rule_name"` //
|
||||
RuleName *string `gorm:"index;default:'';" json:"rule_name"` // 规则名称
|
||||
Data *[]byte `gorm:"default:'';" json:"data"` // 角色或权限的额外数据
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` //
|
||||
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` //
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
||||
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` // 更新时间
|
||||
// FsAuthItemIbfk1 foreign `gorm:"" json:"fs_auth_item_ibfk_1"`//
|
||||
}
|
||||
type FsAuthItemModel struct {
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
type FsAuthRule struct {
|
||||
Name string `gorm:"primary_key;default:'';" json:"name"` // 规则名称
|
||||
Data *[]byte `gorm:"default:'';" json:"data"` // 规则的额外数据
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` //
|
||||
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` //
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
||||
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` // 更新时间
|
||||
}
|
||||
type FsAuthRuleModel struct {
|
||||
db *gorm.DB
|
||||
|
@ -14,6 +14,8 @@ type FsCanteenProduct struct {
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 1启用0停用
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Sid *string `gorm:"default:'';" json:"sid"` // 前端带入的id
|
||||
ShowSizeTips *int64 `gorm:"default:0;" json:"show_size_tips"` // 是否显示提示
|
||||
ShowSizeList *int64 `gorm:"default:0;" json:"show_size_list"` // 是否显示规格列表
|
||||
}
|
||||
type FsCanteenProductModel struct {
|
||||
db *gorm.DB
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
// fs_cart 购物车
|
||||
type FsCart struct {
|
||||
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"` // 用户ID
|
||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模板ID
|
||||
PriceId *int64 `gorm:"index;default:0;" json:"price_id"` // 价格ID
|
||||
@ -17,7 +17,7 @@ type FsCart struct {
|
||||
BuyNum *int64 `gorm:"default:0;" json:"buy_num"` // 购买数量
|
||||
Cover *string `gorm:"default:'';" json:"cover"` // 截图
|
||||
DesignId *int64 `gorm:"index;default:0;" json:"design_id"` // 设计ID
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位
|
||||
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
||||
IsCheck *int64 `gorm:"default:0;" json:"is_check"` // 是否选中状态(0:未选中,1:选中)
|
||||
|
@ -8,7 +8,6 @@ import (
|
||||
type FsCloudRenderLog struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
|
||||
UserId *int64 `gorm:"default:0;" json:"user_id"` // 用户id
|
||||
GuestId *int64 `gorm:"default:0;" json:"guest_id"` // 游客id
|
||||
PostData *string `gorm:"default:'';" json:"post_data"` //
|
||||
PostUrl *string `gorm:"default:'';" json:"post_url"` //
|
||||
Title *string `gorm:"index;default:'';" json:"title"` //
|
||||
|
@ -11,8 +11,8 @@ type FsContact struct {
|
||||
Email *string `gorm:"index;default:'';" json:"email"` // 邮箱
|
||||
Subject *int64 `gorm:"default:0;" json:"subject"` // 主题
|
||||
Message *string `gorm:"default:'';" json:"message"` // 消息
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
Status *int64 `gorm:"default:0;" json:"status"` //
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否已处理
|
||||
Mark *string `gorm:"default:'';" json:"mark"` // 后台订单备注
|
||||
}
|
||||
type FsContactModel struct {
|
||||
|
@ -12,10 +12,10 @@ type FsContactService struct {
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户id
|
||||
Name *string `gorm:"default:'';" json:"name"` // 联系人姓名
|
||||
Email *string `gorm:"index;default:'';" json:"email"` // 联系人邮箱
|
||||
Phone *string `gorm:"default:'';" json:"phone"` //
|
||||
Phone *string `gorm:"default:'';" json:"phone"` // 联系人电话
|
||||
Remark *string `gorm:"default:'';" json:"remark"` // 备注内容
|
||||
IsHandle *int64 `gorm:"default:0;" json:"is_handle"` // 是否被处理(0:未处理,1:已处理)
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||
HandleRemark *string `gorm:"default:'';" json:"handle_remark"` // 处理备注
|
||||
HandleUid *int64 `gorm:"default:0;" json:"handle_uid"` // 处理人
|
||||
HandleTime *int64 `gorm:"default:0;" json:"handle_time"` // 处理时间
|
||||
|
@ -10,10 +10,10 @@ type FsEmailTemplate struct {
|
||||
Type *int64 `gorm:"default:0;" json:"type"` // 模板类型
|
||||
Name *string `gorm:"default:'';" json:"name"` // 模板名称
|
||||
Title *string `gorm:"default:'';" json:"title"` // 模板标题
|
||||
ReplaceFields *string `gorm:"default:'';" json:"replace_fields"` //
|
||||
ReplaceFields *string `gorm:"default:'';" json:"replace_fields"` // 需要替换的字段
|
||||
Content *string `gorm:"default:'';" json:"content"` // 模板内容
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态值(0:禁用,1:启用)
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsEmailTemplateModel struct {
|
||||
db *gorm.DB
|
||||
|
@ -13,7 +13,7 @@ type FsFaq struct {
|
||||
Content *string `gorm:"default:'';" json:"content"` // 内容
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态(0:禁用,1:启用)
|
||||
Sort *int64 `gorm:"default:1;" json:"sort"` // 排序
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsFaqModel struct {
|
||||
db *gorm.DB
|
||||
|
@ -10,12 +10,12 @@ type FsGerent struct {
|
||||
Username *string `gorm:"unique_key;default:'';" json:"username"` // 用户名
|
||||
AuthKey *string `gorm:"default:'';" json:"auth_key"` // token
|
||||
PasswordHash *string `gorm:"default:'';" json:"password_hash"` // 加密密码
|
||||
PasswordResetToken *string `gorm:"unique_key;default:'';" json:"password_reset_token"` //
|
||||
PasswordResetToken *string `gorm:"unique_key;default:'';" json:"password_reset_token"` // 加密密码token
|
||||
Email *string `gorm:"unique_key;default:'';" json:"email"` // 邮箱
|
||||
Status *int64 `gorm:"default:10;" json:"status"` // 状态
|
||||
CreatedAt *int64 `gorm:"default:0;" json:"created_at"` // 创建时间
|
||||
UpdatedAt *int64 `gorm:"default:0;" json:"updated_at"` // 更新时间
|
||||
Icon *string `gorm:"default:'';" json:"icon"` //
|
||||
Icon *string `gorm:"default:'';" json:"icon"` // 标签图标
|
||||
DepartmentId *int64 `gorm:"default:0;" json:"department_id"` // 部门id
|
||||
}
|
||||
type FsGerentModel struct {
|
||||
|
29
model/gmodel/fs_logo_cartoon_gen.go
Normal file
29
model/gmodel/fs_logo_cartoon_gen.go
Normal file
@ -0,0 +1,29 @@
|
||||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
"time"
|
||||
)
|
||||
|
||||
// fs_logo_cartoon logo底图表
|
||||
type FsLogoCartoon struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
|
||||
CategoryId *int64 `gorm:"default:0;" json:"category_id"` // 分类
|
||||
Name *string `gorm:"default:'';" json:"name"` //
|
||||
Url *string `gorm:"default:'';" json:"url"` //
|
||||
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除
|
||||
CreateTime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"create_time"` //
|
||||
UpdateTime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"update_time"` //
|
||||
DeleteTime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"delete_time"` //
|
||||
CreateUid *int64 `gorm:"default:0;" json:"create_uid"` // 创建人
|
||||
UpdateUid *int64 `gorm:"default:0;" json:"update_uid"` // 更新人
|
||||
DeleteUid *int64 `gorm:"default:0;" json:"delete_uid"` // 删除人
|
||||
}
|
||||
type FsLogoCartoonModel struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewFsLogoCartoonModel(db *gorm.DB) *FsLogoCartoonModel {
|
||||
return &FsLogoCartoonModel{db: db, name: "fs_logo_cartoon"}
|
||||
}
|
2
model/gmodel/fs_logo_cartoon_logic.go
Normal file
2
model/gmodel/fs_logo_cartoon_logic.go
Normal file
@ -0,0 +1,2 @@
|
||||
package gmodel
|
||||
// TODO: 使用model的属性做你想做的
|
@ -11,7 +11,7 @@ type FsMerchantCategory struct {
|
||||
EnName *string `gorm:"default:'';" json:"en_name"` // 英文名
|
||||
Icon *string `gorm:"default:'';" json:"icon"` // 图标
|
||||
RecommendProduct *string `gorm:"default:'';" json:"recommend_product"` // 推荐商品
|
||||
Sort *int64 `gorm:"default:128;" json:"sort"` // 排序
|
||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
|
@ -9,7 +9,7 @@ type FsOrderDetail struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 唯一编码
|
||||
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 订单ID
|
||||
UserId *int64 `gorm:"default:0;" json:"user_id"` //
|
||||
UserId *int64 `gorm:"default:0;" json:"user_id"` // 用户ID
|
||||
FactoryId *int64 `gorm:"default:0;" json:"factory_id"` // 工厂ID
|
||||
OrderDetailTemplateId *int64 `gorm:"default:0;" json:"order_detail_template_id"` // 详情templateID
|
||||
ProductId *int64 `gorm:"default:0;" json:"product_id"` // 产品ID
|
||||
|
@ -16,7 +16,7 @@ type FsOrderDetailTemplate struct {
|
||||
EachBoxNum *int64 `gorm:"default:0;" json:"each_box_num"` // 每一箱的个数
|
||||
EachBoxWeight *float64 `gorm:"default:0.00;" json:"each_box_weight"` // 每一箱的重量 单位KG
|
||||
DesignId *int64 `gorm:"index;default:0;" json:"design_id"` // 设计ID
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsOrderDetailTemplateModel struct {
|
||||
db *gorm.DB
|
||||
|
@ -9,17 +9,17 @@ import (
|
||||
type FsOrder struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
Sn *string `gorm:"unique_key;default:'';" json:"sn"` // 订单编号 FS211224OL2XDKNP
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` //
|
||||
SellerUserId *int64 `gorm:"default:0;" json:"seller_user_id"` //
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
|
||||
SellerUserId *int64 `gorm:"default:0;" json:"seller_user_id"` // 销售员ID 0:自主下单
|
||||
TotalAmount *int64 `gorm:"default:0;" json:"total_amount"` // 总价
|
||||
PayedAmount *int64 `gorm:"default:0;" json:"payed_amount"` // 已支付金额
|
||||
PayMethod *int64 `gorm:"default:0;" json:"pay_method"` // 支付方式 1paypal 2strip
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
Utime *int64 `gorm:"default:0;" json:"utime"` //
|
||||
Ptime *int64 `gorm:"default:0;" json:"ptime"` //
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Utime *int64 `gorm:"default:0;" json:"utime"` // 更新时间
|
||||
Ptime *int64 `gorm:"default:0;" json:"ptime"` // 最后一次 支付时间(可能多次支付)
|
||||
AddressId *int64 `gorm:"index;default:0;" json:"address_id"` // 地址ID或者云仓ID
|
||||
DeliveryMethod *int64 `gorm:"default:0;" json:"delivery_method"` // 配送方式 1:直接发货到收获地址 2:云仓
|
||||
CustomerMark *string `gorm:"default:'';" json:"customer_mark"` //
|
||||
CustomerMark *string `gorm:"default:'';" json:"customer_mark"` // 客户备注
|
||||
Mark *string `gorm:"default:'';" json:"mark"` // 后台订单备注
|
||||
AddressInfo *string `gorm:"default:'';" json:"address_info"` // 详细地址信息JSON
|
||||
IsSup *int64 `gorm:"default:0;" json:"is_sup"` // 0不是补货 1是补货
|
||||
@ -37,8 +37,8 @@ type FsOrder struct {
|
||||
IsRefunding *int64 `gorm:"default:0;" json:"is_refunding"` // 是否退款中(0:否,1:是)
|
||||
IsRefunded *int64 `gorm:"default:0;" json:"is_refunded"` // 是否退款完成(0:否,1:是)
|
||||
IsDeleted *int64 `gorm:"default:0;" json:"is_deleted"` // 是否删除(0:否,1:是)
|
||||
RefundReasonId *int64 `gorm:"default:0;" json:"refund_reason_id"` //
|
||||
RefundReason *string `gorm:"default:'';" json:"refund_reason"` //
|
||||
RefundReasonId *int64 `gorm:"default:0;" json:"refund_reason_id"` // 取消订单原因ID
|
||||
RefundReason *string `gorm:"default:'';" json:"refund_reason"` // 取消订单原因
|
||||
TsTime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ts_time"` //
|
||||
IsSure *int64 `gorm:"default:0;" json:"is_sure"` // 是否确认订单 1确认0未确认
|
||||
DeliverSn *string `gorm:"default:'';" json:"deliver_sn"` // 发货单号
|
||||
|
@ -8,18 +8,19 @@ import (
|
||||
type FsProductDesignGather struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
Sn *string `gorm:"index;default:'';" json:"sn"` // 唯一标识
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` //
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
|
||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模型ID
|
||||
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
||||
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
Cover *string `gorm:"default:'';" json:"cover"` // 封面图
|
||||
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:删除)
|
||||
ClientIp *string `gorm:"default:'';" json:"client_ip"` // 客户端ip
|
||||
ClientNo *string `gorm:"default:'';" json:"client_no"` // 客户端唯一标识
|
||||
InfoNew *string `gorm:"default:'';" json:"info_new"` // 设计信息-改版
|
||||
}
|
||||
type FsProductDesignGatherModel struct {
|
||||
db *gorm.DB
|
||||
|
@ -23,6 +23,7 @@ type FsProductDesign struct {
|
||||
IsPay *int64 `gorm:"default:0;" json:"is_pay"` // 是否已有支付 0 未 1 有
|
||||
LogoColor *string `gorm:"default:'';" json:"logo_color"` // logo图片备选项
|
||||
PageGuid *string `gorm:"default:'';" json:"page_guid"` // 页面识别id
|
||||
InfoNew *string `gorm:"default:'';" json:"info_new"` // 设计信息-改版用
|
||||
}
|
||||
type FsProductDesignModel struct {
|
||||
db *gorm.DB
|
||||
|
@ -17,11 +17,11 @@ type FsProduct struct {
|
||||
Intro *string `gorm:"default:'';" json:"intro"` // 简要描述
|
||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
SelledNum *int64 `gorm:"default:0;" json:"selled_num"` // 已卖数量
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
View *int64 `gorm:"default:0;" json:"view"` // 浏览量
|
||||
SizeIds *string `gorm:"default:'';" json:"size_ids"` //
|
||||
SizeIds *string `gorm:"default:'';" json:"size_ids"` // 尺寸 1,2,3,4
|
||||
MaterialIds *string `gorm:"default:'';" json:"material_ids"` // 材质 1,2,3
|
||||
TagIds *string `gorm:"default:'';" json:"tag_ids"` //
|
||||
TagIds *string `gorm:"default:'';" json:"tag_ids"` // 标签 逗号间隔
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 弃用
|
||||
ProduceDays *int64 `gorm:"default:0;" json:"produce_days"` // 生产天数
|
||||
DeliveryDays *int64 `gorm:"default:0;" json:"delivery_days"` // 运送天数
|
||||
|
@ -8,7 +8,6 @@ import (
|
||||
type FsProductModel3d struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
IsPopular *int64 `gorm:"default:0;" json:"is_popular"` // 是否热门 0否 1是
|
||||
Tag *int64 `gorm:"default:1;" json:"tag"` // 类别(1:模型,2:配件,3:场景)
|
||||
Title *string `gorm:"default:'';" json:"title"` // 标题
|
||||
Name *string `gorm:"default:'';" json:"name"` // 详情页展示名称
|
||||
@ -25,6 +24,7 @@ type FsProductModel3d struct {
|
||||
OptionTemplate *int64 `gorm:"default:0;" json:"option_template"` // 配件绑定的公共模板
|
||||
Price *int64 `gorm:"default:0;" json:"price"` // 仅配件用,配件的价格, 单位:美分
|
||||
Sku *string `gorm:"default:'';" json:"sku"` // sku
|
||||
IsHot *int64 `gorm:"default:0;" json:"is_hot"` // 是否热门
|
||||
}
|
||||
type FsProductModel3dModel struct {
|
||||
db *gorm.DB
|
||||
|
@ -10,7 +10,7 @@ type FsProductModel3dLight struct {
|
||||
Name *string `gorm:"default:'';" json:"name"` // 灯光名称
|
||||
Info *string `gorm:"default:'';" json:"info"` // 灯光数据(json格式)
|
||||
Status *int64 `gorm:"default:1;" json:"status"` // 状态值(1:显示,0:删除)
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 创建时间
|
||||
}
|
||||
type FsProductModel3dLightModel struct {
|
||||
db *gorm.DB
|
||||
|
@ -8,19 +8,20 @@ import (
|
||||
type FsProductRenderDesign struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
Sn *string `gorm:"index;default:'';" json:"sn"` // 唯一标识
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` //
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
|
||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模型ID
|
||||
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
||||
OptionalId *int64 `gorm:"index;default:0;" json:"optional_id"` // 选项ID
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
Cover *string `gorm:"default:'';" json:"cover"` // 封面图
|
||||
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:删除)
|
||||
ClientIp *string `gorm:"default:'';" json:"client_ip"` // 客户端ip
|
||||
ClientNo *string `gorm:"default:'';" json:"client_no"` // 客户端唯一标识
|
||||
LogoColor *string `gorm:"default:'';" json:"logo_color"` // logo图片备选颜色
|
||||
InfoNew *string `gorm:"default:'';" json:"info_new"` // 设计信息-改版用
|
||||
}
|
||||
type FsProductRenderDesignModel struct {
|
||||
db *gorm.DB
|
||||
|
@ -8,15 +8,15 @@ import (
|
||||
type FsProductSize struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
IsPopular *int64 `gorm:"default:0;" json:"is_popular"` // 是否受欢迎 0否1是
|
||||
Title *string `gorm:"default:'';" json:"title"` // 标题 10*10*20
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
CoverImg *string `gorm:"default:'';" json:"cover_img"` //
|
||||
Cover *string `gorm:"default:'';" json:"cover"` // 封面图
|
||||
CoverImg *string `gorm:"default:'';" json:"cover_img"` // 背景图
|
||||
Capacity *string `gorm:"default:'';" json:"capacity"` // 自己填的尺寸名称
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 显示 删除
|
||||
Sort *int64 `gorm:"default:50;" json:"sort"` // 排序
|
||||
Remark *string `gorm:"default:'';" json:"remark"` //
|
||||
Remark *string `gorm:"default:'';" json:"remark"` // 备注信息
|
||||
PartsCanDeleted *int64 `gorm:"default:1;" json:"parts_can_deleted"` // 配件是否可移除 1是0否
|
||||
IsHot *int64 `gorm:"default:0;" json:"is_hot"` // 是否热门
|
||||
}
|
||||
type FsProductSizeModel struct {
|
||||
db *gorm.DB
|
||||
|
35
model/gmodel/fs_product_template_element_0826_gen.go
Normal file
35
model/gmodel/fs_product_template_element_0826_gen.go
Normal file
@ -0,0 +1,35 @@
|
||||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_product_template_element_0826
|
||||
type FsProductTemplateElement0826 struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
Title *string `gorm:"default:'';" json:"title"` // 产品模板名称
|
||||
ProductTemplateId *int64 `gorm:"index;default:0;" json:"product_template_id"` // 产品模板id
|
||||
Main *string `gorm:"default:'';" json:"main"` //
|
||||
Second *string `gorm:"default:'';" json:"second"` //
|
||||
Base *string `gorm:"default:'';" json:"base"` //
|
||||
Paper *string `gorm:"default:'';" json:"paper"` //
|
||||
Spoon *string `gorm:"default:'';" json:"spoon"` //
|
||||
Fork *string `gorm:"default:'';" json:"fork"` //
|
||||
Toothpick *string `gorm:"default:'';" json:"toothpick"` //
|
||||
Chopsticks *string `gorm:"default:'';" json:"chopsticks"` //
|
||||
Shadow *string `gorm:"default:'';" json:"shadow"` //
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
Cover1 *string `gorm:"default:'';" json:"cover1"` //
|
||||
Mode *string `gorm:"default:'';" json:"mode"` //
|
||||
Light *int64 `gorm:"default:0;" json:"light"` //
|
||||
Rotation *string `gorm:"default:'';" json:"rotation"` //
|
||||
Scale *string `gorm:"default:'';" json:"scale"` //
|
||||
}
|
||||
type FsProductTemplateElement0826Model struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewFsProductTemplateElement0826Model(db *gorm.DB) *FsProductTemplateElement0826Model {
|
||||
return &FsProductTemplateElement0826Model{db: db, name: "fs_product_template_element_0826"}
|
||||
}
|
2
model/gmodel/fs_product_template_element_0826_logic.go
Normal file
2
model/gmodel/fs_product_template_element_0826_logic.go
Normal file
@ -0,0 +1,2 @@
|
||||
package gmodel
|
||||
// TODO: 使用model的属性做你想做的
|
25
model/gmodel/fs_product_template_element_22_gen.go
Normal file
25
model/gmodel/fs_product_template_element_22_gen.go
Normal file
@ -0,0 +1,25 @@
|
||||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_product_template_element_22
|
||||
type FsProductTemplateElement22 struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
Title *string `gorm:"default:'';" json:"title"` // 产品模板名称
|
||||
ProductTemplateId *int64 `gorm:"index;default:0;" json:"product_template_id"` // 产品模板id
|
||||
Model *string `gorm:"default:'';" json:"model"` //
|
||||
Mode *string `gorm:"default:'';" json:"mode"` //
|
||||
Light *int64 `gorm:"default:0;" json:"light"` //
|
||||
Rotation *string `gorm:"default:'';" json:"rotation"` //
|
||||
Scale *string `gorm:"default:'';" json:"scale"` //
|
||||
}
|
||||
type FsProductTemplateElement22Model struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewFsProductTemplateElement22Model(db *gorm.DB) *FsProductTemplateElement22Model {
|
||||
return &FsProductTemplateElement22Model{db: db, name: "fs_product_template_element_22"}
|
||||
}
|
2
model/gmodel/fs_product_template_element_22_logic.go
Normal file
2
model/gmodel/fs_product_template_element_22_logic.go
Normal file
@ -0,0 +1,2 @@
|
||||
package gmodel
|
||||
// TODO: 使用model的属性做你想做的
|
37
model/gmodel/fs_product_template_element_backup1018_gen.go
Normal file
37
model/gmodel/fs_product_template_element_backup1018_gen.go
Normal file
@ -0,0 +1,37 @@
|
||||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_product_template_element_backup1018
|
||||
type FsProductTemplateElementBackup1018 struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
Title *string `gorm:"default:'';" json:"title"` // 产品模板名称
|
||||
ProductTemplateId *int64 `gorm:"index;default:0;" json:"product_template_id"` // 产品模板id
|
||||
Main *string `gorm:"default:'';" json:"main"` //
|
||||
Second *string `gorm:"default:'';" json:"second"` //
|
||||
Base *string `gorm:"default:'';" json:"base"` //
|
||||
Paper *string `gorm:"default:'';" json:"paper"` //
|
||||
Spoon *string `gorm:"default:'';" json:"spoon"` //
|
||||
Fork *string `gorm:"default:'';" json:"fork"` //
|
||||
Toothpick *string `gorm:"default:'';" json:"toothpick"` //
|
||||
Chopsticks *string `gorm:"default:'';" json:"chopsticks"` //
|
||||
Shadow *string `gorm:"default:'';" json:"shadow"` //
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
Cover1 *string `gorm:"default:'';" json:"cover1"` //
|
||||
Mode *string `gorm:"default:'';" json:"mode"` //
|
||||
Light *int64 `gorm:"default:0;" json:"light"` //
|
||||
Rotation *string `gorm:"default:'';" json:"rotation"` //
|
||||
Scale *string `gorm:"default:'';" json:"scale"` //
|
||||
ModelP *string `gorm:"default:'';" json:"model_p"` // 配件对应的云渲染贴图数据
|
||||
Refletion *int64 `gorm:"default:0;" json:"refletion"` // 反射探头
|
||||
}
|
||||
type FsProductTemplateElementBackup1018Model struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewFsProductTemplateElementBackup1018Model(db *gorm.DB) *FsProductTemplateElementBackup1018Model {
|
||||
return &FsProductTemplateElementBackup1018Model{db: db, name: "fs_product_template_element_backup1018"}
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
package gmodel
|
||||
// TODO: 使用model的属性做你想做的
|
@ -8,22 +8,22 @@ import (
|
||||
type FsProductTemplateElement struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id
|
||||
Title *string `gorm:"default:'';" json:"title"` // 产品模板名称
|
||||
ModelId *int64 `gorm:"index;default:0;" json:"model_id"` // 模型id
|
||||
Main *string `gorm:"default:'';" json:"main"` //
|
||||
Second *string `gorm:"default:'';" json:"second"` //
|
||||
Base *string `gorm:"default:'';" json:"base"` //
|
||||
Paper *string `gorm:"default:'';" json:"paper"` //
|
||||
Spoon *string `gorm:"default:'';" json:"spoon"` //
|
||||
Fork *string `gorm:"default:'';" json:"fork"` //
|
||||
Toothpick *string `gorm:"default:'';" json:"toothpick"` //
|
||||
Chopsticks *string `gorm:"default:'';" json:"chopsticks"` //
|
||||
Shadow *string `gorm:"default:'';" json:"shadow"` //
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
Cover1 *string `gorm:"default:'';" json:"cover1"` //
|
||||
Mode *string `gorm:"default:'';" json:"mode"` //
|
||||
Light *int64 `gorm:"default:0;" json:"light"` //
|
||||
Rotation *string `gorm:"default:'';" json:"rotation"` //
|
||||
Scale *string `gorm:"default:'';" json:"scale"` //
|
||||
ProductTemplateId *int64 `gorm:"index;default:0;" json:"product_template_id"` // 产品模型id
|
||||
Main *string `gorm:"default:'';" json:"main"` // 废弃
|
||||
Second *string `gorm:"default:'';" json:"second"` // 废弃
|
||||
Base *string `gorm:"default:'';" json:"base"` // base
|
||||
Paper *string `gorm:"default:'';" json:"paper"` // 废弃
|
||||
Spoon *string `gorm:"default:'';" json:"spoon"` // 废弃
|
||||
Fork *string `gorm:"default:'';" json:"fork"` // 废弃
|
||||
Toothpick *string `gorm:"default:'';" json:"toothpick"` // 废弃
|
||||
Chopsticks *string `gorm:"default:'';" json:"chopsticks"` // 废弃
|
||||
Shadow *string `gorm:"default:'';" json:"shadow"` // shadow
|
||||
Cover *string `gorm:"default:'';" json:"cover"` // 废弃
|
||||
Cover1 *string `gorm:"default:'';" json:"cover1"` // 废弃
|
||||
Mode *string `gorm:"default:'';" json:"mode"` // 材质类型
|
||||
Light *int64 `gorm:"default:0;" json:"light"` // 灯光组
|
||||
Rotation *string `gorm:"default:'';" json:"rotation"` // 旋转
|
||||
Scale *string `gorm:"default:'';" json:"scale"` // 缩放
|
||||
ModelP *string `gorm:"default:'';" json:"model_p"` // 配件对应的云渲染贴图数据
|
||||
Refletion *string `gorm:"default:'';" json:"refletion"` // 反射探头组
|
||||
}
|
||||
|
35
model/gmodel/fs_product_template_element_kongde_gen.go
Normal file
35
model/gmodel/fs_product_template_element_kongde_gen.go
Normal file
@ -0,0 +1,35 @@
|
||||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_product_template_element_kongde
|
||||
type FsProductTemplateElementKongde struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
Title *string `gorm:"default:'';" json:"title"` // 产品模板名称
|
||||
ProductTemplateId *int64 `gorm:"index;default:0;" json:"product_template_id"` // 产品模板id
|
||||
Main *string `gorm:"default:'';" json:"main"` //
|
||||
Second *string `gorm:"default:'';" json:"second"` //
|
||||
Base *string `gorm:"default:'';" json:"base"` //
|
||||
Paper *string `gorm:"default:'';" json:"paper"` //
|
||||
Spoon *string `gorm:"default:'';" json:"spoon"` //
|
||||
Fork *string `gorm:"default:'';" json:"fork"` //
|
||||
Toothpick *string `gorm:"default:'';" json:"toothpick"` //
|
||||
Chopsticks *string `gorm:"default:'';" json:"chopsticks"` //
|
||||
Shadow *string `gorm:"default:'';" json:"shadow"` //
|
||||
Cover *string `gorm:"default:'';" json:"cover"` //
|
||||
Cover1 *string `gorm:"default:'';" json:"cover1"` //
|
||||
Mode *string `gorm:"default:'';" json:"mode"` //
|
||||
Light *int64 `gorm:"default:0;" json:"light"` //
|
||||
Rotation *string `gorm:"default:'';" json:"rotation"` //
|
||||
Scale *string `gorm:"default:'';" json:"scale"` //
|
||||
}
|
||||
type FsProductTemplateElementKongdeModel struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewFsProductTemplateElementKongdeModel(db *gorm.DB) *FsProductTemplateElementKongdeModel {
|
||||
return &FsProductTemplateElementKongdeModel{db: db, name: "fs_product_template_element_kongde"}
|
||||
}
|
2
model/gmodel/fs_product_template_element_kongde_logic.go
Normal file
2
model/gmodel/fs_product_template_element_kongde_logic.go
Normal file
@ -0,0 +1,2 @@
|
||||
package gmodel
|
||||
// TODO: 使用model的属性做你想做的
|
@ -8,7 +8,7 @@ import (
|
||||
type FsProductTemplateTags struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
|
||||
TemplateTag *string `gorm:"unique_key;default:'';" json:"template_tag"` // 标题
|
||||
Cover *string `gorm:"default:'';" json:"cover"` // 封面图
|
||||
Cover *string `gorm:"default:'';" json:"cover"` // 缩略图
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态 1:可用
|
||||
CreateAt *int64 `gorm:"default:0;" json:"create_at"` // 创建时间
|
||||
Groups *string `gorm:"default:'';" json:"groups"` // 分组信息
|
||||
|
@ -9,21 +9,21 @@ type FsProductTemplateV2 struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
ModelId *int64 `gorm:"default:0;" json:"model_id"` // 模型ID
|
||||
Title *string `gorm:"default:'';" json:"title"` //
|
||||
Name *string `gorm:"default:'';" json:"name"` //
|
||||
CoverImg *string `gorm:"default:'';" json:"cover_img"` //
|
||||
TemplateInfo *string `gorm:"default:'';" json:"template_info"` //
|
||||
MaterialImg *string `gorm:"default:'';" json:"material_img"` //
|
||||
Title *string `gorm:"default:'';" json:"title"` // 模板(sku),预留字段
|
||||
Name *string `gorm:"default:'';" json:"name"` // 名称
|
||||
CoverImg *string `gorm:"default:'';" json:"cover_img"` // 模板背景图
|
||||
TemplateInfo *string `gorm:"default:'';" json:"template_info"` // 模板详情
|
||||
MaterialImg *string `gorm:"default:'';" json:"material_img"` // 合成好的贴图
|
||||
Sort *int64 `gorm:"default:0;" json:"sort"` // 排序
|
||||
LogoWidth *int64 `gorm:"default:0;" json:"logo_width"` // logo图最大宽度
|
||||
LogoHeight *int64 `gorm:"default:0;" json:"logo_height"` // logo图最大高度
|
||||
IsPublic *int64 `gorm:"default:0;" json:"is_public"` // 是否可公用(1:可以,0:不可以)
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态1正常 2异常
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
TemplateTag *string `gorm:"default:'';" json:"template_tag"` //
|
||||
TemplateTag *string `gorm:"default:'';" json:"template_tag"` // 标签(用户自填)
|
||||
IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除 1删除
|
||||
SwitchInfo *string `gorm:"default:'';" json:"switch_info"` //
|
||||
Version *int64 `gorm:"index;default:0;" json:"version"` // 默认1
|
||||
SwitchInfo *string `gorm:"default:'';" json:"switch_info"` // 开关信息
|
||||
Version *int64 `gorm:"default:0;" json:"version"` // 默认1
|
||||
}
|
||||
type FsProductTemplateV2Model struct {
|
||||
db *gorm.DB
|
||||
|
@ -11,8 +11,8 @@ type FsQrcodeLog struct {
|
||||
QrcodeId *int64 `gorm:"default:0;" json:"qrcode_id"` // 二维码ID
|
||||
TagId *int64 `gorm:"default:0;" json:"tag_id"` // 分组ID
|
||||
CreateAt *int64 `gorm:"default:0;" json:"create_at"` // 创建时间
|
||||
Platform *string `gorm:"default:'';" json:"platform"` //
|
||||
UserAgent *string `gorm:"default:'';" json:"user_agent"` //
|
||||
Platform *string `gorm:"default:'';" json:"platform"` // 系统信息
|
||||
UserAgent *string `gorm:"default:'';" json:"user_agent"` // 浏览器
|
||||
}
|
||||
type FsQrcodeLogModel struct {
|
||||
db *gorm.DB
|
||||
|
@ -19,7 +19,6 @@ type FsQuotation struct {
|
||||
DesignId *int64 `gorm:"default:0;" json:"design_id"` // 设计人员
|
||||
QuotationId *int64 `gorm:"default:0;" json:"quotation_id"` // 报价人员
|
||||
IsMark *int64 `gorm:"default:0;" json:"is_mark"` // 星标
|
||||
Qid *int64 `gorm:"default:0;" json:"qid"` //
|
||||
}
|
||||
type FsQuotationModel struct {
|
||||
db *gorm.DB
|
||||
|
23
model/gmodel/fs_quotation_price_gen.go
Normal file
23
model/gmodel/fs_quotation_price_gen.go
Normal file
@ -0,0 +1,23 @@
|
||||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_quotation_price 报价单价格表
|
||||
type FsQuotationPrice struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // Id
|
||||
ProductId *int64 `gorm:"default:0;" json:"product_id"` // 产品id
|
||||
SizeId *int64 `gorm:"default:0;" json:"size_id"` // 尺寸id
|
||||
PriceInfo *string `gorm:"default:'';" json:"price_info"` // 价格数据
|
||||
Status *int64 `gorm:"default:1;" json:"status"` // 状态 1启用0废弃
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsQuotationPriceModel struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewFsQuotationPriceModel(db *gorm.DB) *FsQuotationPriceModel {
|
||||
return &FsQuotationPriceModel{db: db, name: "fs_quotation_price"}
|
||||
}
|
2
model/gmodel/fs_quotation_price_logic.go
Normal file
2
model/gmodel/fs_quotation_price_logic.go
Normal file
@ -0,0 +1,2 @@
|
||||
package gmodel
|
||||
// TODO: 使用model的属性做你想做的
|
@ -20,6 +20,9 @@ type FsQuotationProduct struct {
|
||||
PriceInfo *string `gorm:"default:'';" json:"price_info"` // 价格信息
|
||||
Remark *string `gorm:"default:'';" json:"remark"` // 备注
|
||||
Num *int64 `gorm:"default:0;" json:"num"` // 产品数量
|
||||
ShowSizeTips *int64 `gorm:"default:0;" json:"show_size_tips"` // 是否显示提示
|
||||
ShowSizeList *int64 `gorm:"default:0;" json:"show_size_list"` // 是否显示规格列表
|
||||
ProductId *int64 `gorm:"default:0;" json:"product_id"` // 产品id
|
||||
}
|
||||
type FsQuotationProductModel struct {
|
||||
db *gorm.DB
|
||||
|
22
model/gmodel/fs_quotation_size_layout_gen.go
Normal file
22
model/gmodel/fs_quotation_size_layout_gen.go
Normal file
@ -0,0 +1,22 @@
|
||||
package gmodel
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
// fs_quotation_size_layout 产品尺寸排版表
|
||||
type FsQuotationSizeLayout struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
ProductId *int64 `gorm:"unique_key;default:0;" json:"product_id"` // 产品id
|
||||
SizeHtml *string `gorm:"default:'';" json:"size_html"` // 尺寸排版html
|
||||
Status *int64 `gorm:"default:1;" json:"status"` // 状态
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsQuotationSizeLayoutModel struct {
|
||||
db *gorm.DB
|
||||
name string
|
||||
}
|
||||
|
||||
func NewFsQuotationSizeLayoutModel(db *gorm.DB) *FsQuotationSizeLayoutModel {
|
||||
return &FsQuotationSizeLayoutModel{db: db, name: "fs_quotation_size_layout"}
|
||||
}
|
2
model/gmodel/fs_quotation_size_layout_logic.go
Normal file
2
model/gmodel/fs_quotation_size_layout_logic.go
Normal file
@ -0,0 +1,2 @@
|
||||
package gmodel
|
||||
// TODO: 使用model的属性做你想做的
|
@ -13,7 +13,7 @@ type FsResource struct {
|
||||
ResourceType *string `gorm:"index;default:'';" json:"resource_type"` // 资源类型
|
||||
ResourceUrl *string `gorm:"default:'';" json:"resource_url"` // 资源 URL
|
||||
Version *string `gorm:"index;default:'0';" json:"version"` // 版本信息
|
||||
UploadedAt *time.Time `gorm:"index;default:'0000-00-00 00:00:00';" json:"uploaded_at"` // 上传时间
|
||||
UploadedAt *time.Time `gorm:"index;default:'0000-00-00 00:00:00';" json:"uploaded_at"` //
|
||||
Metadata *string `gorm:"default:'';" json:"metadata"` // 元数据,json格式,存储图像分率
|
||||
MetaKey1 *string `gorm:"index;default:'';" json:"meta_key1"` // 需要关键信息查询的自定义属性1,可以动态增加
|
||||
ApiType *int64 `gorm:"default:1;" json:"api_type"` // 调用类型:1=对外,2=对内
|
||||
|
@ -13,10 +13,10 @@ type FsTrade struct {
|
||||
TradeSn *string `gorm:"unique_key;default:'';" json:"trade_sn"` // 三方交易号
|
||||
OrderId *int64 `gorm:"index;default:0;" json:"order_id"` // 订单ID
|
||||
Amount *int64 `gorm:"default:0;" json:"amount"` // 支付金额
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
Utime *int64 `gorm:"default:0;" json:"utime"` //
|
||||
Desc *string `gorm:"default:'';" json:"desc"` //
|
||||
Status *int64 `gorm:"default:0;" json:"status"` //
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
Utime *int64 `gorm:"default:0;" json:"utime"` // 更新时间
|
||||
Desc *string `gorm:"default:'';" json:"desc"` // 简要描述
|
||||
Status *int64 `gorm:"default:0;" json:"status"` // 状态位 是否支付成功
|
||||
}
|
||||
type FsTradeModel struct {
|
||||
db *gorm.DB
|
||||
|
@ -7,13 +7,13 @@ import (
|
||||
// fs_user_design 废弃表
|
||||
type FsUserDesign struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` //
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` //
|
||||
UserId *int64 `gorm:"index;default:0;" json:"user_id"` // 用户ID
|
||||
ProductId *int64 `gorm:"index;default:0;" json:"product_id"` // 产品ID
|
||||
TemplateId *int64 `gorm:"index;default:0;" json:"template_id"` // 模型ID
|
||||
MaterialId *int64 `gorm:"index;default:0;" json:"material_id"` // 材质ID
|
||||
SizeId *int64 `gorm:"index;default:0;" json:"size_id"` // 尺寸ID
|
||||
Info *string `gorm:"default:'';" json:"info"` // 其他设计信息
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` //
|
||||
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
||||
}
|
||||
type FsUserDesignModel struct {
|
||||
db *gorm.DB
|
||||
|
@ -9,11 +9,11 @@ type FsUser struct {
|
||||
Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID
|
||||
FaceId *int64 `gorm:"default:0;" json:"face_id"` // facebook的userid
|
||||
GoogleId *int64 `gorm:"default:0;" json:"google_id"` // google的sub
|
||||
FirstName *string `gorm:"default:'';" json:"first_name"` //
|
||||
LastName *string `gorm:"default:'';" json:"last_name"` //
|
||||
FirstName *string `gorm:"default:'';" json:"first_name"` // FirstName
|
||||
LastName *string `gorm:"default:'';" json:"last_name"` // LastName
|
||||
Username *string `gorm:"unique_key;default:'';" json:"username"` //
|
||||
Company *string `gorm:"default:'';" json:"company"` //
|
||||
Mobile *string `gorm:"default:'';" json:"mobile"` //
|
||||
Company *string `gorm:"default:'';" json:"company"` // 公司名称
|
||||
Mobile *string `gorm:"default:'';" json:"mobile"` // 手机号码
|
||||
AuthKey *string `gorm:"default:'';" json:"auth_key"` //
|
||||
PasswordHash *string `gorm:"default:'';" json:"password_hash"` //
|
||||
VerificationToken *string `gorm:"default:'';" json:"verification_token"` //
|
||||
@ -30,7 +30,7 @@ type FsUser struct {
|
||||
IsPhoneAdvertisement *int64 `gorm:"default:0;" json:"is_phone_advertisement"` // 是否接收短信广告
|
||||
IsOpenRender *int64 `gorm:"default:0;" json:"is_open_render"` // 是否打开个性化渲染(1:开启,0:关闭)
|
||||
IsThousandFace *int64 `gorm:"default:0;" json:"is_thousand_face"` // 是否已经存在千人千面(1:存在,0:不存在)
|
||||
IsLowRendering *int64 `gorm:"default:0;" json:"is_low_rendering"` // 是否开启低渲染模型渲染
|
||||
IsLowRendering *int64 `gorm:"default:0;" json:"is_low_rendering"` //
|
||||
IsRemoveBg *int64 `gorm:"default:1;" json:"is_remove_bg"` // 用户上传logo是否去除背景
|
||||
}
|
||||
type FsUserModel struct {
|
||||
|
@ -43,6 +43,7 @@ type AllModelsGen struct {
|
||||
FsGerent *FsGerentModel // fs_gerent 管理员表
|
||||
FsGuest *FsGuestModel // fs_guest 游客表
|
||||
FsLog *FsLogModel // fs_log 日志表
|
||||
FsLogoCartoon *FsLogoCartoonModel // fs_logo_cartoon logo底图表
|
||||
FsMapLibrary *FsMapLibraryModel // fs_map_library 贴图库
|
||||
FsMenu *FsMenuModel // fs_menu 后台菜单
|
||||
FsMerchantCategory *FsMerchantCategoryModel // fs_merchant_category 商户类型表
|
||||
@ -69,6 +70,10 @@ type AllModelsGen struct {
|
||||
FsProductTemplate *FsProductTemplateModel // fs_product_template 产品模板表(已废弃)
|
||||
FsProductTemplateBasemap *FsProductTemplateBasemapModel // fs_product_template_basemap 模板底图表
|
||||
FsProductTemplateElement *FsProductTemplateElementModel // fs_product_template_element 云渲染配置表
|
||||
FsProductTemplateElement0826 *FsProductTemplateElement0826Model // fs_product_template_element_0826
|
||||
FsProductTemplateElement22 *FsProductTemplateElement22Model // fs_product_template_element_22
|
||||
FsProductTemplateElementBackup1018 *FsProductTemplateElementBackup1018Model // fs_product_template_element_backup1018
|
||||
FsProductTemplateElementKongde *FsProductTemplateElementKongdeModel // fs_product_template_element_kongde
|
||||
FsProductTemplateTags *FsProductTemplateTagsModel // fs_product_template_tags 模板标签表
|
||||
FsProductTemplateV2 *FsProductTemplateV2Model // fs_product_template_v2 产品-模型-模板表
|
||||
FsProductV2Tmp *FsProductV2TmpModel // fs_product_v2_tmp 产品表
|
||||
@ -77,9 +82,11 @@ type AllModelsGen struct {
|
||||
FsQrcodeSet *FsQrcodeSetModel // fs_qrcode_set 二维码边框配置表
|
||||
FsQrcodeUser *FsQrcodeUserModel // fs_qrcode_user 二维码-用户名表
|
||||
FsQuotation *FsQuotationModel // fs_quotation 报价单信息表
|
||||
FsQuotationPrice *FsQuotationPriceModel // fs_quotation_price 报价单价格表
|
||||
FsQuotationProduct *FsQuotationProductModel // fs_quotation_product 报价单产品表
|
||||
FsQuotationRemarkTemplate *FsQuotationRemarkTemplateModel // fs_quotation_remark_template 报价单备注模板
|
||||
FsQuotationSaler *FsQuotationSalerModel // fs_quotation_saler 报价单业务员表
|
||||
FsQuotationSizeLayout *FsQuotationSizeLayoutModel // fs_quotation_size_layout 产品尺寸排版表
|
||||
FsRefundReason *FsRefundReasonModel // fs_refund_reason
|
||||
FsResource *FsResourceModel // fs_resource 资源表
|
||||
FsResources *FsResourcesModel // fs_resources 资源表
|
||||
@ -139,6 +146,7 @@ func NewAllModels(gdb *gorm.DB) *AllModelsGen {
|
||||
FsGerent: NewFsGerentModel(gdb),
|
||||
FsGuest: NewFsGuestModel(gdb),
|
||||
FsLog: NewFsLogModel(gdb),
|
||||
FsLogoCartoon: NewFsLogoCartoonModel(gdb),
|
||||
FsMapLibrary: NewFsMapLibraryModel(gdb),
|
||||
FsMenu: NewFsMenuModel(gdb),
|
||||
FsMerchantCategory: NewFsMerchantCategoryModel(gdb),
|
||||
@ -165,6 +173,10 @@ func NewAllModels(gdb *gorm.DB) *AllModelsGen {
|
||||
FsProductTemplate: NewFsProductTemplateModel(gdb),
|
||||
FsProductTemplateBasemap: NewFsProductTemplateBasemapModel(gdb),
|
||||
FsProductTemplateElement: NewFsProductTemplateElementModel(gdb),
|
||||
FsProductTemplateElement0826: NewFsProductTemplateElement0826Model(gdb),
|
||||
FsProductTemplateElement22: NewFsProductTemplateElement22Model(gdb),
|
||||
FsProductTemplateElementBackup1018: NewFsProductTemplateElementBackup1018Model(gdb),
|
||||
FsProductTemplateElementKongde: NewFsProductTemplateElementKongdeModel(gdb),
|
||||
FsProductTemplateTags: NewFsProductTemplateTagsModel(gdb),
|
||||
FsProductTemplateV2: NewFsProductTemplateV2Model(gdb),
|
||||
FsProductV2Tmp: NewFsProductV2TmpModel(gdb),
|
||||
@ -173,9 +185,11 @@ func NewAllModels(gdb *gorm.DB) *AllModelsGen {
|
||||
FsQrcodeSet: NewFsQrcodeSetModel(gdb),
|
||||
FsQrcodeUser: NewFsQrcodeUserModel(gdb),
|
||||
FsQuotation: NewFsQuotationModel(gdb),
|
||||
FsQuotationPrice: NewFsQuotationPriceModel(gdb),
|
||||
FsQuotationProduct: NewFsQuotationProductModel(gdb),
|
||||
FsQuotationRemarkTemplate: NewFsQuotationRemarkTemplateModel(gdb),
|
||||
FsQuotationSaler: NewFsQuotationSalerModel(gdb),
|
||||
FsQuotationSizeLayout: NewFsQuotationSizeLayoutModel(gdb),
|
||||
FsRefundReason: NewFsRefundReasonModel(gdb),
|
||||
FsResource: NewFsResourceModel(gdb),
|
||||
FsResources: NewFsResourcesModel(gdb),
|
||||
|
@ -110,7 +110,7 @@ func (l *GetFittingByPidLogic) GetFittingByPid(req *types.GetFittingByPidReq, us
|
||||
Title: *fitting.Title,
|
||||
Price: *fitting.Price,
|
||||
ModelInfo: modelInfo,
|
||||
IsPopular: *fitting.IsPopular > 0,
|
||||
IsPopular: *fitting.IsHot > 0,
|
||||
})
|
||||
}
|
||||
return resp.SetStatusWithMessage(basic.CodeOK, "success", listRsp)
|
||||
|
Loading…
x
Reference in New Issue
Block a user