From b45b8ce8051e2ad9c80aafa42d1a5892f6a36bce Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期二, 17 十月 2023 15:27:44 +0800 Subject: [PATCH] 初始化一些表shuju --- model/request/salesRefund.go | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/model/request/salesRefund.go b/model/request/salesRefund.go index bc31ee5..4cfb4ee 100644 --- a/model/request/salesRefund.go +++ b/model/request/salesRefund.go @@ -3,6 +3,7 @@ import ( "aps_crm/constvar" "aps_crm/model" + "aps_crm/proto/code" ) type AddSalesRefundRequest struct { @@ -13,14 +14,16 @@ ClientId int `json:"clientId"` Number string `json:"number"` MemberId int `json:"memberId"` - SourceType constvar.RefundSourceType `gorm:"column:source_type;type:int;not null;default 0;comment:鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級" json:"sourceType"` // 鏉ユ簮绫诲瀷锛�1閿�鍞槑缁嗗崟2鏈嶅姟鍚堝悓3閿�鍞彂绁�4鏀舵璁″垝5鍑哄簱鍗曪級 - SourceId int `gorm:"column:source_id;type:int;not null;default 0;comment:婧愬崟id " json:"sourceId"` // 婧愬崟id + SourceType constvar.RefundSourceType `gorm:"column:source_type;type:int;not null;default 0;comment:鏉ユ簮绫诲瀷锛�1閿�鍞��娆剧殑锛�" json:"sourceType" binding:"required"` // 鏉ユ簮绫诲瀷锛�1閿�鍞��娆惧崟锛� + SourceId int `gorm:"column:source_id;type:int;not null;default 0;comment:婧愬崟id " json:"sourceId" binding:"required"` // 婧愬崟id RefundDate string `json:"refundDate"` PaymentTypeId int `gorm:"column:payment_type_id;type:int;not null;default 0;comment:鏀舵鏂瑰紡ID" json:"paymentTypeId"` // 鏀舵鏂瑰紡ID BankAccountId int `gorm:"column:bank_account_id;type:int;not null;default 0;comment:璐︽埛id" json:"bankAccountId"` // 璐︽埛id - IsInvoice int `json:"isInvoice"` + IsInvoice string `json:"isInvoice"` Reason string `json:"reason"` Products []*model.Product `json:"products"` + CodeStandID string `json:"codeStandID"` //缂栫爜id + CodeRule code.CodeStandard `json:"codeRule"` } type UpdateSalesRefundRequest struct { @@ -30,5 +33,7 @@ type GetSalesRefundList struct { PageInfo - Keyword string `json:"keyword"` + Keyword string `json:"keyword"` + KeywordType constvar.SalesRefundKeywordType + SourceId int `json:"sourceId"` } -- Gitblit v1.8.0