From 6e87a1f6795af50133b10fa853fd6c2d14bb698c Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期日, 13 八月 2023 15:20:27 +0800 Subject: [PATCH] 完善退款单 --- model/request/salesRefund.go | 25 +++++++++++++++---------- 1 files changed, 15 insertions(+), 10 deletions(-) diff --git a/model/request/salesRefund.go b/model/request/salesRefund.go index 04b792b..bc31ee5 100644 --- a/model/request/salesRefund.go +++ b/model/request/salesRefund.go @@ -1,21 +1,26 @@ package request -import "aps_crm/model" +import ( + "aps_crm/constvar" + "aps_crm/model" +) type AddSalesRefundRequest struct { SalesRefund SalesRefund `json:"salesRefund"` } type SalesRefund struct { - ClientId int `json:"clientId"` - Number string `json:"number"` - MemberId int `json:"memberId"` - RefundDate string `json:"refundDate"` - RefundMethod string `json:"refundMethod"` - AccountId int `json:"accountId"` - IsInvoice int `json:"isInvoice"` - Reason string `json:"reason"` - Products []model.Product `json:"products"` + 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 + 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"` + Reason string `json:"reason"` + Products []*model.Product `json:"products"` } type UpdateSalesRefundRequest struct { -- Gitblit v1.8.0