diff --git a/model/gmodel/fs_admin_api_gen.go b/model/gmodel/fs_admin_api_gen.go new file mode 100644 index 00000000..ddf11ea1 --- /dev/null +++ b/model/gmodel/fs_admin_api_gen.go @@ -0,0 +1,31 @@ +package gmodel + +import ( + "gorm.io/gorm" + "time" +) + +// fs_admin_api 后台--接口表 +type FsAdminApi struct { + Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // 序号 + Name *string `gorm:"default:'';" json:"name"` // + Path *string `gorm:"default:'';" json:"path"` // + Status *int64 `gorm:"default:2;" json:"status"` // 状态:1=启用,2=停用 + Remark *string `gorm:"default:'';" json:"remark"` // + Sort *int64 `gorm:"default:0;" json:"sort"` // 排序权重 + 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"` // 删除人 + IsDel *int64 `gorm:"default:0;" json:"is_del"` // 是否删除:1=是 0=否 +} +type FsAdminApiModel struct { + db *gorm.DB + name string +} + +func NewFsAdminApiModel(db *gorm.DB) *FsAdminApiModel { + return &FsAdminApiModel{db: db, name: "fs_admin_api"} +} diff --git a/model/gmodel/fs_admin_api_logic.go b/model/gmodel/fs_admin_api_logic.go new file mode 100644 index 00000000..e68225aa --- /dev/null +++ b/model/gmodel/fs_admin_api_logic.go @@ -0,0 +1,2 @@ +package gmodel +// TODO: 使用model的属性做你想做的 \ No newline at end of file diff --git a/model/gmodel/fs_shopping_cart_gen.go b/model/gmodel/fs_shopping_cart_gen.go new file mode 100644 index 00000000..47c69f94 --- /dev/null +++ b/model/gmodel/fs_shopping_cart_gen.go @@ -0,0 +1,38 @@ +package gmodel + +import ( + "gorm.io/gorm" + "time" +) + +// fs_shopping_cart 新版购物车表 +type FsShoppingCart struct { + Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // id + ProductId *int64 `gorm:"default:0;" json:"product_id"` // 产品id + TemplateId *int64 `gorm:"default:0;" json:"template_id"` // 模板id + ModelId *int64 `gorm:"default:0;" json:"model_id"` // 模型id + PriceId *int64 `gorm:"default:0;" json:"price_id"` // 价格id + SizeId *int64 `gorm:"default:0;" json:"size_id"` // 尺寸id + MaterialId *int64 `gorm:"default:0;" json:"material_id"` // 材质id + FittingIds *string `gorm:"default:'';" json:"fitting_ids"` // 配件id集合 + PurchaseQuantity *int64 `gorm:"default:0;" json:"purchase_quantity"` // 购买数量 + UnitPrice *int64 `gorm:"default:0;" json:"unit_price"` // 当时加入购物车的单价,不作为支付计算,支付计算需要实时价格(厘)换算美元除以1000 + TotalPrice *int64 `gorm:"default:0;" json:"total_price"` // 当时加入购物车单价x数量的总价,不作为支付计算,支付计算需要实时价格 + Logo *string `gorm:"default:'';" json:"logo"` // + CombineImage *string `gorm:"default:'';" json:"combine_image"` // + RenderImage *string `gorm:"default:'';" json:"render_image"` // + Snapshot *string `gorm:"default:'';" json:"snapshot"` // + IsHighlyCustomized *int64 `gorm:"default:0;" json:"is_highly_customized"` // 是否高度定制 0非 1是(针对客人高度定制只能后台增加如购物车) + Status *int64 `gorm:"default:0;" json:"status"` // 0未下单 1已下单 + IsEffective *int64 `gorm:"default:1;" json:"is_effective"` // 是否有效 0非 1是(针对对购物车下单,此前数据表更失效) + IsDeleted *int64 `gorm:"default:0;" json:"is_deleted"` // 0正常 1删除 + Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` // +} +type FsShoppingCartModel struct { + db *gorm.DB + name string +} + +func NewFsShoppingCartModel(db *gorm.DB) *FsShoppingCartModel { + return &FsShoppingCartModel{db: db, name: "fs_shopping_cart"} +} diff --git a/model/gmodel/fs_shopping_cart_logic.go b/model/gmodel/fs_shopping_cart_logic.go new file mode 100644 index 00000000..e68225aa --- /dev/null +++ b/model/gmodel/fs_shopping_cart_logic.go @@ -0,0 +1,2 @@ +package gmodel +// TODO: 使用model的属性做你想做的 \ No newline at end of file