From 48027ef2892e7e2916932c04fc798a13e4e5e9bd Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 3 Sep 2024 15:02:05 +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/super/model/medium_settlement.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/super/model/medium_settlement.go diff --git a/src/super/model/medium_settlement.go b/src/super/model/medium_settlement.go new file mode 100644 index 0000000..130dfb8 --- /dev/null +++ b/src/super/model/medium_settlement.go @@ -0,0 +1,23 @@ +package model + +type MediumSettlement struct { + Uuid int `json:"uuid" xorm:"not null default 0 comment('站长id') index unique(IDX_UUID_TYPE) INT(11)"` + Id int `json:"id" xorm:"not null pk autoincr INT(11)"` + MediumId int `json:"medium_id" xorm:"not null default 0 comment('媒体id') unique(IDX_UUID_TYPE) INT(11)"` + AppId string `json:"app_id" xorm:"not null default '' comment('小程序id') VARCHAR(255)"` + BusinessKind int `json:"business_kind" xorm:"not null default 1 comment('业务类型(1:广告合作)') TINYINT(1)"` + Kind int `json:"kind" xorm:"not null default 1 comment('结算单类型(1:日结 2:周结 3:月结 4:预付)') TINYINT(1)"` + BasicIncome int `json:"basic_income" xorm:"not null default 0 comment('基础收益(分)') INT(11)"` + OtherIncome int `json:"other_income" xorm:"not null default 0 comment('其他收益(分)') INT(11)"` + OriginalIncome int `json:"original_income" xorm:"default 0 comment('上游结算(原始数据值-分)') INT(11)"` + PlatformRetention int `json:"platform_retention" xorm:"not null default 0 comment('平台留存(分)') INT(11)"` + CommissionRetention int `json:"commission_retention" xorm:"not null default 0 comment('佣金留存(分)') INT(11)"` + PriceAdjustmentRetention int `json:"price_adjustment_retention" xorm:"not null default 0 comment('调价留存(分)') INT(11)"` + PayState int `json:"pay_state" xorm:"not null default 0 comment('结算单支付状态(0:未开始 1:待审核发票 2:发票审核中 3:发票审核拒绝 4:付款中 5:已付款)') TINYINT(1)"` + State int `json:"state" xorm:"not null default 0 comment('结算单状态(0:未开始 1:核算中 2:待签订 3:完成签订)') TINYINT(1)"` + StartDate string `json:"start_date" xorm:"not null comment('开始时间') DATE"` + EndDate string `json:"end_date" xorm:"not null comment('结束时间') DATE"` + CreateAt string `json:"create_at" xorm:"not null default CURRENT_TIMESTAMP DATETIME"` + UpdateAt string `json:"update_at" xorm:"not null default CURRENT_TIMESTAMP DATETIME"` + SettleFile string `json:"settle_file" xorm:"comment('结算单文件') VARCHAR(255)"` +}