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

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

Loading…
Cancel
Save