liujiandao
2023-10-24 6aa75c2a266a2522ae713b13dc702b5ad0a08f87
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package request
 
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"`
    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"`
}