Documentation ¶
Index ¶
- type AdminDivisionService
- func (a *AdminDivisionService) Create(ctx context.Context, request payload.AdminDivisionCreateRequest) payload.AdminDivisionResponse
- func (a *AdminDivisionService) Delete(ctx context.Context, id int)
- func (a *AdminDivisionService) FindAll(ctx context.Context) []payload.AdminDivisionResponse
- func (a *AdminDivisionService) FindById(ctx context.Context, id int) payload.AdminDivisionResponse
- func (a *AdminDivisionService) Update(ctx context.Context, request payload.AdminDivisionUpdateRequest) payload.AdminDivisionResponse
- type AdminTierService
- func (a *AdminTierService) Create(ctx context.Context, request payload.AdminTierCreateRequest) payload.AdminTierResponse
- func (a *AdminTierService) FindAllPaged(ctx context.Context, request payload.AdminTierPagedRequest) []payload.AdminTierResponse
- func (a *AdminTierService) FindById(ctx context.Context, id util.StringInt) payload.AdminTierResponse
- func (a *AdminTierService) Update(ctx context.Context, request payload.AdminTierUpdateRequest) payload.AdminTierResponse
- type IAdminDivisionService
- type IAdminTierService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminDivisionService ¶
type AdminDivisionService struct { AdminDivisionRepository repository.IAdminDivisionRepository Validate *validator.Validate }
func (*AdminDivisionService) Create ¶
func (a *AdminDivisionService) Create(ctx context.Context, request payload.AdminDivisionCreateRequest) payload.AdminDivisionResponse
func (*AdminDivisionService) Delete ¶
func (a *AdminDivisionService) Delete(ctx context.Context, id int)
func (*AdminDivisionService) FindAll ¶
func (a *AdminDivisionService) FindAll(ctx context.Context) []payload.AdminDivisionResponse
func (*AdminDivisionService) FindById ¶
func (a *AdminDivisionService) FindById(ctx context.Context, id int) payload.AdminDivisionResponse
func (*AdminDivisionService) Update ¶
func (a *AdminDivisionService) Update(ctx context.Context, request payload.AdminDivisionUpdateRequest) payload.AdminDivisionResponse
type AdminTierService ¶
type AdminTierService struct { AdminTierRepository repository.IAdminTierRepository Validate *validator.Validate }
func (*AdminTierService) Create ¶
func (a *AdminTierService) Create(ctx context.Context, request payload.AdminTierCreateRequest) payload.AdminTierResponse
func (*AdminTierService) FindAllPaged ¶
func (a *AdminTierService) FindAllPaged(ctx context.Context, request payload.AdminTierPagedRequest) []payload.AdminTierResponse
func (*AdminTierService) FindById ¶
func (a *AdminTierService) FindById(ctx context.Context, id util.StringInt) payload.AdminTierResponse
func (*AdminTierService) Update ¶
func (a *AdminTierService) Update(ctx context.Context, request payload.AdminTierUpdateRequest) payload.AdminTierResponse
type IAdminDivisionService ¶
type IAdminDivisionService interface { Create(ctx context.Context, request payload.AdminDivisionCreateRequest) payload.AdminDivisionResponse Update(ctx context.Context, request payload.AdminDivisionUpdateRequest) payload.AdminDivisionResponse Delete(ctx context.Context, id int) FindById(ctx context.Context, id int) payload.AdminDivisionResponse FindAll(ctx context.Context) []payload.AdminDivisionResponse }
func NewAdminDivisionService ¶
func NewAdminDivisionService(adminDivisionRepository repository.IAdminDivisionRepository, validate *validator.Validate) IAdminDivisionService
type IAdminTierService ¶
type IAdminTierService interface { Create(ctx context.Context, request payload.AdminTierCreateRequest) payload.AdminTierResponse Update(ctx context.Context, request payload.AdminTierUpdateRequest) payload.AdminTierResponse FindById(ctx context.Context, id util.StringInt) payload.AdminTierResponse FindAllPaged(ctx context.Context, request payload.AdminTierPagedRequest) []payload.AdminTierResponse }
func NewAdminTierService ¶
func NewAdminTierService(adminTierRepository repository.IAdminTierRepository, validate *validator.Validate) IAdminTierService
Click to show internal directories.
Click to hide internal directories.