Documentation
¶
Index ¶
- type AlquranService
- func (svc *AlquranService) GetDetailChapter(ctx context.Context, ID int) (*models.Chapter, *errors.ErrorResponse)
- func (svc *AlquranService) GetDetailVerse(ctx context.Context, ID, VerseNumber int) (*models.Verse, *errors.ErrorResponse)
- func (svc *AlquranService) GetListChapter(ctx context.Context) (*[]models.Chapter, *errors.ErrorResponse)
- func (svc *AlquranService) GetListVerse(ctx context.Context, ID int) (*[]models.ChapterVerse, *errors.ErrorResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlquranService ¶
type AlquranService struct {
AlquranRepo *repository.AlquranRepo
}
func NewAlquranService ¶
func NewAlquranService(Repo *repository.AlquranRepo) *AlquranService
func (*AlquranService) GetDetailChapter ¶
func (svc *AlquranService) GetDetailChapter(ctx context.Context, ID int) (*models.Chapter, *errors.ErrorResponse)
func (*AlquranService) GetDetailVerse ¶
func (svc *AlquranService) GetDetailVerse(ctx context.Context, ID, VerseNumber int) (*models.Verse, *errors.ErrorResponse)
func (*AlquranService) GetListChapter ¶
func (svc *AlquranService) GetListChapter(ctx context.Context) (*[]models.Chapter, *errors.ErrorResponse)
func (*AlquranService) GetListVerse ¶
func (svc *AlquranService) GetListVerse(ctx context.Context, ID int) (*[]models.ChapterVerse, *errors.ErrorResponse)
Click to show internal directories.
Click to hide internal directories.