Files
isp-lock-service/controller/locker.go
T
2023-01-25 14:32:47 +03:00

30 lines
665 B
Go

package controller
type LockerService interface {
// All(ctx context.Context) ([]domain.Locker, error)
// Get(ctx context.Context, id int) (*domain.Locker, error)
}
type Locker struct {
s LockerService
}
func NewLocker(s LockerService) Locker {
return Locker{
s: s,
}
}
// All
// @Tags object
// @Summary Получить все объекты
// @Description Возвращает список объектов
// @Accept json
// @Produce json
// @Success 200 {array} domain.Locker
// @Failure 500 {object} domain.GrpcError
// @Router /object/all [POST]
// func (c Locker) All(ctx context.Context) ([]domain.Locker, error) {
// return c.s.All(ctx)
// }