|
|
@ -18,17 +18,15 @@ 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"`
|
|
|
|
AppKey string `json:"appKey"`
|
|
|
|
|
|
|
|
AppSecret string `json:"appSecret"`
|
|
|
|
|
|
|
|
AuditStatus uint `json:"auditStatus"`
|
|
|
|
AuditStatus uint `json:"auditStatus"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Lists @Title 全部服务
|
|
|
|
// All @Title 全部服务
|
|
|
|
func (s *Service) Lists(ctx context.Context, args ArgsServiceLists) (reply []ReplyServiceLists, err error) {
|
|
|
|
func (s *Service) All(ctx context.Context, customerId uint) (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, "Lists", args, &reply)
|
|
|
|
err = xClient.Call(ctx, "All", customerId, &reply)
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|