From 530fed8ec225453572d57b15c200ab062c335457 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期三, 01 十一月 2023 19:20:21 +0800 Subject: [PATCH] 公海member_id使用0 --- model/request/salesRefund.go | 33 +++++++++++++++++++++++---------- 1 files changed, 23 insertions(+), 10 deletions(-) diff --git a/model/request/salesRefund.go b/model/request/salesRefund.go index 3fb49bc..ad162bb 100644 --- a/model/request/salesRefund.go +++ b/model/request/salesRefund.go @@ -1,24 +1,37 @@ 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閿�鍞��娆剧殑锛�" 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 string `json:"isInvoice"` + Reason string `json:"reason"` + Products []*model.Product `json:"products"` + CodeStandID string `json:"codeStandID"` //缂栫爜id } type UpdateSalesRefundRequest struct { Id int `json:"id"` SalesRefund SalesRefund `json:"salesRefund"` } + +type GetSalesRefundList struct { + PageInfo + Keyword string `json:"keyword"` + KeywordType constvar.SalesRefundKeywordType + SourceId int `json:"sourceId"` +} -- Gitblit v1.8.0