-
Notifications
You must be signed in to change notification settings - Fork 4
/
service_service.go
28 lines (26 loc) · 962 Bytes
/
service_service.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package moysklad
// ServiceService
// Сервис для работы с услугами.
type ServiceService struct {
endpointGetList[Service]
endpointCreate[Service]
endpointCreateUpdateDeleteMany[Service]
endpointDelete
endpointGetById[Service]
endpointUpdate[Service]
endpointSyncID[Service]
endpointNamedFilter
}
func NewServiceService(client *Client) *ServiceService {
e := NewEndpoint(client, "entity/service")
return &ServiceService{
endpointGetList: endpointGetList[Service]{e},
endpointCreate: endpointCreate[Service]{e},
endpointCreateUpdateDeleteMany: endpointCreateUpdateDeleteMany[Service]{e},
endpointDelete: endpointDelete{e},
endpointGetById: endpointGetById[Service]{e},
endpointUpdate: endpointUpdate[Service]{e},
endpointSyncID: endpointSyncID[Service]{e},
endpointNamedFilter: endpointNamedFilter{e},
}
}