From 1a778f869786c4646634aea2a0894d9db77937ef Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Wed, 4 Sep 2024 10:28:54 +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/agent_financial_dynamics.go | 26 +++++++++----------- src/super/model/agent_invoice.go | 2 ++ src/super/model/medium_financial_dynamics.go | 26 +++++++++----------- src/super/model/medium_invoice.go | 2 ++ 4 files changed, 26 insertions(+), 30 deletions(-) diff --git a/src/super/model/agent_financial_dynamics.go b/src/super/model/agent_financial_dynamics.go index 0fa19ac..6be9473 100644 --- a/src/super/model/agent_financial_dynamics.go +++ b/src/super/model/agent_financial_dynamics.go @@ -1,19 +1,15 @@ package model -import ( - "time" -) - type AgentFinancialDynamics struct { - Id int `json:"id" xorm:"not null pk autoincr INT(11)"` - Uuid int `json:"uuid" xorm:"default 0 INT(11)"` - AgentId int `json:"agent_id" xorm:"default 0 comment('代理id') INT(11)"` - PayTime time.Time `json:"pay_time" xorm:"comment('支付时间') DATETIME"` - CreateAt time.Time `json:"create_at" xorm:"DATETIME"` - UpdateAt time.Time `json:"update_at" xorm:"DATETIME"` - Amount string `json:"amount" xorm:"default 0.00 comment('支付金额') DECIMAL(20,2)"` - PayMethod int `json:"pay_method" xorm:"default 0 comment('支付方式 0对私 1对公') TINYINT(1)"` - Certificate string `json:"certificate" xorm:"comment('支付凭证') VARCHAR(255)"` - Memo string `json:"memo" xorm:"comment('备注') VARCHAR(255)"` - BusinessKind int `json:"business_kind" xorm:"not null default 1 comment('业务类型(1:广告合作)') TINYINT(1)"` + Id int `json:"id" xorm:"not null pk autoincr INT(11)"` + Uuid int `json:"uuid" xorm:"default 0 INT(11)"` + AgentId int `json:"agent_id" xorm:"default 0 comment('代理id') INT(11)"` + PayTime string `json:"pay_time" xorm:"comment('支付时间') DATETIME"` + CreateAt string `json:"create_at" xorm:"DATETIME"` + UpdateAt string `json:"update_at" xorm:"DATETIME"` + Amount string `json:"amount" xorm:"default 0.00 comment('支付金额') DECIMAL(20,2)"` + PayMethod int `json:"pay_method" xorm:"default 0 comment('支付方式 0对私 1对公') TINYINT(1)"` + Certificate string `json:"certificate" xorm:"comment('支付凭证') VARCHAR(255)"` + Memo string `json:"memo" xorm:"comment('备注') VARCHAR(255)"` + BusinessKind int `json:"business_kind" xorm:"not null default 1 comment('业务类型(1:广告合作)') TINYINT(1)"` } diff --git a/src/super/model/agent_invoice.go b/src/super/model/agent_invoice.go index 3192f6a..abf166a 100644 --- a/src/super/model/agent_invoice.go +++ b/src/super/model/agent_invoice.go @@ -2,6 +2,8 @@ package model type AgentInvoice struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` + Uuid int `json:"uuid" xorm:"not null default 0 comment('站长id') INT(11)"` + AgentId int `json:"agent_id" xorm:"not null default 0 comment('媒体') INT(11)"` SettlementId int `json:"settlement_id" xorm:"not null default 0 comment('结算id') index unique INT(11)"` CreateAt string `json:"create_at" xorm:"not null default CURRENT_TIMESTAMP DATETIME"` UpdateAt string `json:"update_at" xorm:"not null default CURRENT_TIMESTAMP DATETIME"` diff --git a/src/super/model/medium_financial_dynamics.go b/src/super/model/medium_financial_dynamics.go index b322eb8..f230e22 100644 --- a/src/super/model/medium_financial_dynamics.go +++ b/src/super/model/medium_financial_dynamics.go @@ -1,19 +1,15 @@ package model -import ( - "time" -) - type MediumFinancialDynamics struct { - Id int `json:"id" xorm:"not null pk autoincr INT(11)"` - Uuid int `json:"uuid" xorm:"default 0 INT(11)"` - MediumId int `json:"medium_id" xorm:"not null default 0 comment('媒体id') INT(11)"` - PayTime time.Time `json:"pay_time" xorm:"comment('支付时间') DATETIME"` - CreateAt time.Time `json:"create_at" xorm:"DATETIME"` - UpdateAt time.Time `json:"update_at" xorm:"DATETIME"` - Amount string `json:"amount" xorm:"default 0.00 comment('支付金额') DECIMAL(20,2)"` - PayMethod int `json:"pay_method" xorm:"default 0 comment('支付方式 0对私 1对公') TINYINT(1)"` - Certificate string `json:"certificate" xorm:"comment('支付凭证') VARCHAR(255)"` - Memo string `json:"memo" xorm:"comment('备注') VARCHAR(255)"` - BusinessKind int `json:"business_kind" xorm:"not null default 1 comment('业务类型(1:广告合作)') TINYINT(1)"` + Id int `json:"id" xorm:"not null pk autoincr INT(11)"` + Uuid int `json:"uuid" xorm:"default 0 INT(11)"` + MediumId int `json:"medium_id" xorm:"not null default 0 comment('媒体id') INT(11)"` + PayTime string `json:"pay_time" xorm:"comment('支付时间') DATETIME"` + CreateAt string `json:"create_at" xorm:"DATETIME"` + UpdateAt string `json:"update_at" xorm:"DATETIME"` + Amount string `json:"amount" xorm:"default 0.00 comment('支付金额') DECIMAL(20,2)"` + PayMethod int `json:"pay_method" xorm:"default 0 comment('支付方式 0对私 1对公') TINYINT(1)"` + Certificate string `json:"certificate" xorm:"comment('支付凭证') VARCHAR(255)"` + Memo string `json:"memo" xorm:"comment('备注') VARCHAR(255)"` + BusinessKind int `json:"business_kind" xorm:"not null default 1 comment('业务类型(1:广告合作)') TINYINT(1)"` } diff --git a/src/super/model/medium_invoice.go b/src/super/model/medium_invoice.go index c608936..ab83b09 100644 --- a/src/super/model/medium_invoice.go +++ b/src/super/model/medium_invoice.go @@ -2,6 +2,8 @@ package model type MediumInvoice struct { Id int `json:"id" xorm:"not null pk autoincr INT(11)"` + Uuid int `json:"uuid" xorm:"not null default 0 comment('站长id') INT(11)"` + MediumId int `json:"medium_id" xorm:"not null default 0 comment('媒体id') INT(11)"` SettlementId int `json:"settlement_id" xorm:"not null default 0 comment('结算id') index unique INT(11)"` CreateAt string `json:"create_at" xorm:"not null default CURRENT_TIMESTAMP DATETIME"` UpdateAt string `json:"update_at" xorm:"not null default CURRENT_TIMESTAMP DATETIME"`