package supply import ( "context" "git.oa00.com/supply-chain/service/client" "git.oa00.com/supply-chain/service/lib/bean" ) const ( //售后状态 1=售后申请中 2=客户发货 3=收货处理中 4=售后完成 5=售后关闭 ) type afterService struct { } type ArgsRetailHistory struct { Search RetailHistorySearch Page bean.Page } type RetailHistorySearch struct { AfterServiceSn string `label:"售后单号"` OrderSn string `label:"订单号"` Status uint `label:"售后状态"` SourceId uint `label:"所属供应商"` CustomerId uint `label:"所属客户"` CreateStartDate string `label:"创建开始日期"` CreateEndDate string `label:"创建结束日期"` } type RetailHistoryItem struct { AfterServiceSn uint64 `json:"afterServiceSn"` OrderSn uint64 `json:"orderSn"` Name string `json:"name"` Quantity uint `json:"quantity"` Status uint `json:"status"` Reason string `json:"reason"` CreatedAt int64 `json:"createdAt"` UpdatedAt int64 `json:"updatedAt"` Source string `json:"source"` CustomerId uint `json:"customerId"` } type ReplyRetailHistory struct { Lists []RetailHistoryItem `json:"lists"` Total int64 `json:"total"` } // RetailAfsHistory @Title 零售订单售后记录 func (a *afterService) RetailAfsHistory(ctx context.Context, args ArgsRetailHistory) (reply ReplyRetailHistory, err error) { xClient, err := client.GetClient(a) if err != nil { return ReplyRetailHistory{}, err } err = xClient.Call(ctx, "RetailAfsHistory", args, &reply) return }