From b12a61b2f62dbc46edb3965ab6ae0d7da6776ab4 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Wed, 1 Nov 2023 11:23:00 +0800 Subject: [PATCH] fix --- .../fs_order_combine_image_record_gen.go | 25 +++++++++++++++++++ .../fs_order_combine_image_record_logic.go | 2 ++ model/gmodel/fs_zip_code_gen.go | 24 ++++++++++++++++++ model/gmodel/fs_zip_code_logic.go | 2 ++ 4 files changed, 53 insertions(+) create mode 100644 model/gmodel/fs_order_combine_image_record_gen.go create mode 100644 model/gmodel/fs_order_combine_image_record_logic.go create mode 100644 model/gmodel/fs_zip_code_gen.go create mode 100644 model/gmodel/fs_zip_code_logic.go diff --git a/model/gmodel/fs_order_combine_image_record_gen.go b/model/gmodel/fs_order_combine_image_record_gen.go new file mode 100644 index 00000000..7453aee1 --- /dev/null +++ b/model/gmodel/fs_order_combine_image_record_gen.go @@ -0,0 +1,25 @@ +package gmodel + +import ( + "gorm.io/gorm" + "time" +) + +// fs_order_combine_image_record 刀版图记录表 +type FsOrderCombineImageRecord struct { + Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // Id + OrderId *int64 `gorm:"default:0;" json:"order_id"` // 订单id + CartId *int64 `gorm:"default:0;" json:"cart_id"` // 购物车id + ProductId *int64 `gorm:"default:0;" json:"product_id"` // 产品id + CombineImage *string `gorm:"default:'';" json:"combine_image"` // + GerentId *int64 `gorm:"default:0;" json:"gerent_id"` // 操作人 + Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` // +} +type FsOrderCombineImageRecordModel struct { + db *gorm.DB + name string +} + +func NewFsOrderCombineImageRecordModel(db *gorm.DB) *FsOrderCombineImageRecordModel { + return &FsOrderCombineImageRecordModel{db: db, name: "fs_order_combine_image_record"} +} diff --git a/model/gmodel/fs_order_combine_image_record_logic.go b/model/gmodel/fs_order_combine_image_record_logic.go new file mode 100644 index 00000000..e68225aa --- /dev/null +++ b/model/gmodel/fs_order_combine_image_record_logic.go @@ -0,0 +1,2 @@ +package gmodel +// TODO: 使用model的属性做你想做的 \ No newline at end of file diff --git a/model/gmodel/fs_zip_code_gen.go b/model/gmodel/fs_zip_code_gen.go new file mode 100644 index 00000000..9717a9e4 --- /dev/null +++ b/model/gmodel/fs_zip_code_gen.go @@ -0,0 +1,24 @@ +package gmodel + +import ( + "gorm.io/gorm" + "time" +) + +// fs_zip_code 邮编表 +type FsZipCode struct { + Id int64 `gorm:"primary_key;default:0;auto_increment;" json:"id"` // ID + ZipCode *string `gorm:"default:'';" json:"zip_code"` // 邮编 + Manager *int64 `gorm:"default:0;" json:"manager"` // 负责人 + Status *int64 `gorm:"default:0;" json:"status"` // 状态 1正常0关闭 + Ctime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"ctime"` // + Utime *time.Time `gorm:"default:'0000-00-00 00:00:00';" json:"utime"` // +} +type FsZipCodeModel struct { + db *gorm.DB + name string +} + +func NewFsZipCodeModel(db *gorm.DB) *FsZipCodeModel { + return &FsZipCodeModel{db: db, name: "fs_zip_code"} +} diff --git a/model/gmodel/fs_zip_code_logic.go b/model/gmodel/fs_zip_code_logic.go new file mode 100644 index 00000000..e68225aa --- /dev/null +++ b/model/gmodel/fs_zip_code_logic.go @@ -0,0 +1,2 @@ +package gmodel +// TODO: 使用model的属性做你想做的 \ No newline at end of file