finance
黄伟 2 years ago
parent 09a5b9d21b
commit 3f7f6d9e9c

@ -9,7 +9,12 @@ type Service struct {
Audit audit
}
type ReplyServiceAll struct {
type ArgsServiceLists struct {
CustomerId uint
Status uint
}
type ReplyServiceLists struct {
ServiceId uint `json:"serviceId"`
ServiceName string `json:"serviceName"`
EndTime int64 `json:"endTime"`
@ -18,12 +23,12 @@ type ReplyServiceAll struct {
AuditStatus uint `json:"auditStatus"`
}
// All @Title 全部服务
func (s *Service) All(ctx context.Context, customerId uint) (reply []ReplyServiceAll, err error) {
// Lists @Title 全部服务
func (s *Service) Lists(ctx context.Context, args ArgsAuditLists) (reply []ReplyServiceLists, err error) {
xClient, err := client.GetClient(s)
if err != nil {
return
}
err = xClient.Call(ctx, "All", customerId, &reply)
err = xClient.Call(ctx, "Lists", args, &reply)
return
}

Loading…
Cancel
Save