diff --git a/erp/sale/change.go b/erp/sale/change.go new file mode 100644 index 0000000..e872b43 --- /dev/null +++ b/erp/sale/change.go @@ -0,0 +1,32 @@ +package sale + +import ( + "context" + "git.kumo.work/shama/service/client" + "time" +) + +type change struct { +} + +type ArgsChangeAllSearch struct { + SaleId int64 // 销售合同id + WorkflowId int64 // 审核id +} +type ChangeProduct struct { + Id int64 `json:"id"` + SaleProductID int64 `json:"saleProductID"` + SaleCount int64 `json:"saleCount"` + CreatedAt *time.Time `json:"createdAt"` + UpdatedAt *time.Time `json:"updatedAt"` +} + +// All @TITLE 获取产品 +func (c *change) All(ctx context.Context, args ArgsChangeAllSearch) (reply []ChangeProduct, err error) { + xClient, err := client.GetClient(c) + if err != nil { + return + } + err = xClient.Call(ctx, "All", args, &reply) + return +}