Documentation ¶
Index ¶
- type Service
- type UsersService
- func (s *UsersService) Create(ctx context.Context, request *model.Request) (int, error)
- func (s *UsersService) Get(ctx context.Context, request *model.FitterReadUsers) (*model.ReadResponseUsers, error)
- func (s *UsersService) List(ctx context.Context, request *model.FitterListUsers, ...) (*utils.Pagination, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { Create(ctx context.Context, input *model.Request) (ID int, err error) Get(ctx context.Context, request *model.FitterReadUsers) (*model.ReadResponseUsers, error) List(ctx context.Context, request *model.FitterListUsers, pagination *utils.PaginationOptions) (*utils.Pagination, error) }
func NewService ¶
func NewService(r postgres.Repository) (service Service)
type UsersService ¶
type UsersService struct {
// contains filtered or unexported fields
}
func (*UsersService) Get ¶
func (s *UsersService) Get(ctx context.Context, request *model.FitterReadUsers) (*model.ReadResponseUsers, error)
func (*UsersService) List ¶
func (s *UsersService) List(ctx context.Context, request *model.FitterListUsers, pagination *utils.PaginationOptions) (*utils.Pagination, error)
Click to show internal directories.
Click to hide internal directories.