From 7ec54b711e13dbb6af6561383c73c557d0fb784c Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 13 Nov 2024 11:20:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/models/red_packet_subsidy.go | 21 +++++++++++++++++++++ src/models/red_packet_subsidy_flow.go | 15 +++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 src/models/red_packet_subsidy.go create mode 100644 src/models/red_packet_subsidy_flow.go diff --git a/src/models/red_packet_subsidy.go b/src/models/red_packet_subsidy.go new file mode 100644 index 0000000..ee892e2 --- /dev/null +++ b/src/models/red_packet_subsidy.go @@ -0,0 +1,21 @@ +package models + +import ( + "time" +) + +type RedPacketSubsidy struct { + Id int `json:"id" xorm:"not null pk autoincr INT(11)"` + YesterdayMoney string `json:"yesterday_money" xorm:"default 0.00 DECIMAL(20,2)"` + NowMoney string `json:"now_money" xorm:"default 0.00 DECIMAL(20,2)"` + Date int `json:"date" xorm:"default 0 INT(11)"` + CreateTime time.Time `json:"create_time" xorm:"DATETIME"` + YesterdayNum int `json:"yesterday_num" xorm:"default 0 INT(11)"` + YesterdayUserNum int `json:"yesterday_user_num" xorm:"default 0 INT(11)"` + NowStoreNum int `json:"now_store_num" xorm:"default 0 INT(11)"` + NowNum int `json:"now_num" xorm:"default 0 INT(11)"` + NowUserNum int `json:"now_user_num" xorm:"default 0 INT(11)"` + BastMoney string `json:"bast_money" xorm:"default 0.00 DECIMAL(20,2)"` + MinMoney string `json:"min_money" xorm:"default 0.00 DECIMAL(20,2)"` + OtherMoney string `json:"other_money" xorm:"DECIMAL(20,2)"` +} diff --git a/src/models/red_packet_subsidy_flow.go b/src/models/red_packet_subsidy_flow.go new file mode 100644 index 0000000..ad7b480 --- /dev/null +++ b/src/models/red_packet_subsidy_flow.go @@ -0,0 +1,15 @@ +package models + +import ( + "time" +) + +type RedPacketSubsidyFlow struct { + Id int `json:"id" xorm:"not null pk autoincr INT(11)"` + Date int `json:"date" xorm:"default 0 unique(date) INT(11)"` + CreateTime time.Time `json:"create_time" xorm:"DATETIME"` + Money string `json:"money" xorm:"default 0.00 DECIMAL(20,2)"` + OtherMoney string `json:"other_money" xorm:"DECIMAL(20,2)"` + Uid int `json:"uid" xorm:"default 0 unique(date) INT(11)"` + StoreId int `json:"store_id" xorm:"default 0 unique(date) INT(11)"` +}