|
|
@ -9,14 +9,20 @@ 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"`
|
|
|
|
|
|
|
|
AuditStatus uint `json:"auditStatus"`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// All @Title 全部服务
|
|
|
|
// All @Title 全部服务
|
|
|
|
func (s *Service) All(ctx context.Context, customerId uint) (reply []ReplyServiceAll, 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
|
|
|
|