zhangqian
2023-08-13 6e87a1f6795af50133b10fa853fd6c2d14bb698c
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 {