service

package
v0.0.0-...-30b40a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(db database, oa oauth) Service

func (Service) AddComic

func (svc Service) AddComic(ctx context.Context, data model.AddComic, v *model.Comic) error

func (Service) AddComicChapter

func (svc Service) AddComicChapter(ctx context.Context, data model.AddComicChapter, v *model.ComicChapter) error
func (svc Service) AddComicChapterLink(ctx context.Context, data model.AddComicChapterLink, v *model.ComicChapterLink) error
func (svc Service) AddComicLink(ctx context.Context, data model.AddComicLink, v *model.ComicLink) error

func (Service) AddLanguage

func (svc Service) AddLanguage(ctx context.Context, data model.AddLanguage, v *model.Language) error
func (svc Service) AddLink(ctx context.Context, data model.AddLink, v *model.Link) error

func (Service) AddLinkTLLanguage

func (svc Service) AddLinkTLLanguage(ctx context.Context, data model.AddLinkTLLanguage, v *model.LinkTLLanguage) error

func (Service) AddWebsite

func (svc Service) AddWebsite(ctx context.Context, data model.AddWebsite, v *model.Website) error

func (Service) AddWebsiteTLLanguage

func (svc Service) AddWebsiteTLLanguage(ctx context.Context, data model.AddWebsiteTLLanguage, v *model.WebsiteTLLanguage) error

func (Service) CountComic

func (svc Service) CountComic(ctx context.Context, conds any) (int, error)

func (Service) CountComicChapter

func (svc Service) CountComicChapter(ctx context.Context, conds any) (int, error)
func (svc Service) CountComicChapterLink(ctx context.Context, conds any) (int, error)
func (svc Service) CountComicLink(ctx context.Context, conds any) (int, error)

func (Service) CountLanguage

func (svc Service) CountLanguage(ctx context.Context, conds any) (int, error)
func (svc Service) CountLink(ctx context.Context, conds any) (int, error)

func (Service) CountLinkTLLanguage

func (svc Service) CountLinkTLLanguage(ctx context.Context, conds any) (int, error)

func (Service) CountWebsite

func (svc Service) CountWebsite(ctx context.Context, conds any) (int, error)

func (Service) CountWebsiteTLLanguage

func (svc Service) CountWebsiteTLLanguage(ctx context.Context, conds any) (int, error)

func (Service) DeleteComicByCode

func (svc Service) DeleteComicByCode(ctx context.Context, code string) error

func (Service) DeleteComicChapterBySID

func (svc Service) DeleteComicChapterBySID(ctx context.Context, sid model.ComicChapterSID) error

func (Service) DeleteComicChapterLinkBySID

func (svc Service) DeleteComicChapterLinkBySID(ctx context.Context, sid model.ComicChapterLinkSID) error

func (Service) DeleteComicLinkBySID

func (svc Service) DeleteComicLinkBySID(ctx context.Context, sid model.ComicLinkSID) error

func (Service) DeleteLanguageByIETF

func (svc Service) DeleteLanguageByIETF(ctx context.Context, ietf string) error

func (Service) DeleteLinkBySID

func (svc Service) DeleteLinkBySID(ctx context.Context, sid model.LinkSID) error

func (Service) DeleteLinkTLLanguageBySID

func (svc Service) DeleteLinkTLLanguageBySID(ctx context.Context, sid model.LinkTLLanguageSID) error

func (Service) DeleteWebsiteByDomain

func (svc Service) DeleteWebsiteByDomain(ctx context.Context, domain string) error

func (Service) DeleteWebsiteTLLanguageBySID

func (svc Service) DeleteWebsiteTLLanguageBySID(ctx context.Context, sid model.WebsiteTLLanguageSID) error

func (Service) ExistsComicByCode

func (svc Service) ExistsComicByCode(ctx context.Context, code string) (bool, error)

func (Service) ExistsComicChapterBySID

func (svc Service) ExistsComicChapterBySID(ctx context.Context, sid model.ComicChapterSID) (bool, error)

func (Service) GetComicByCode

func (svc Service) GetComicByCode(ctx context.Context, code string) (*model.Comic, error)

func (Service) GetComicChapterBySID

func (svc Service) GetComicChapterBySID(ctx context.Context, sid model.ComicChapterSID) (*model.ComicChapter, error)

func (Service) GetComicChapterLinkBySID

func (svc Service) GetComicChapterLinkBySID(ctx context.Context, sid model.ComicChapterLinkSID) (*model.ComicChapterLink, error)

func (Service) GetComicLinkBySID

func (svc Service) GetComicLinkBySID(ctx context.Context, sid model.ComicLinkSID) (*model.ComicLink, error)

func (Service) GetLanguageByID

func (svc Service) GetLanguageByID(ctx context.Context, id uint) (*model.Language, error)

func (Service) GetLanguageByIETF

func (svc Service) GetLanguageByIETF(ctx context.Context, ietf string) (*model.Language, error)

func (Service) GetLinkBySID

func (svc Service) GetLinkBySID(ctx context.Context, sid model.LinkSID) (*model.Link, error)

func (Service) GetLinkTLLanguageBySID

func (svc Service) GetLinkTLLanguageBySID(ctx context.Context, sid model.LinkTLLanguageSID) (*model.LinkTLLanguage, error)

func (Service) GetWebsiteByDomain

func (svc Service) GetWebsiteByDomain(ctx context.Context, domain string) (*model.Website, error)

func (Service) GetWebsiteTLLanguageBySID

func (svc Service) GetWebsiteTLLanguageBySID(ctx context.Context, sid model.WebsiteTLLanguageSID) (*model.WebsiteTLLanguage, error)

func (Service) ListComic

func (svc Service) ListComic(ctx context.Context, params model.ListParams) ([]*model.Comic, error)

func (Service) ListComicChapter

func (svc Service) ListComicChapter(ctx context.Context, params model.ListParams) ([]*model.ComicChapter, error)
func (svc Service) ListComicChapterLink(ctx context.Context, params model.ListParams) ([]*model.ComicChapterLink, error)
func (svc Service) ListComicLink(ctx context.Context, params model.ListParams) ([]*model.ComicLink, error)

func (Service) ListLanguage

func (svc Service) ListLanguage(ctx context.Context, params model.ListParams) ([]*model.Language, error)
func (svc Service) ListLink(ctx context.Context, params model.ListParams) ([]*model.Link, error)

func (Service) ListLinkTLLanguage

func (svc Service) ListLinkTLLanguage(ctx context.Context, params model.ListParams) ([]*model.LinkTLLanguage, error)

func (Service) ListWebsite

func (svc Service) ListWebsite(ctx context.Context, params model.ListParams) ([]*model.Website, error)

func (Service) ListWebsiteTLLanguage

func (svc Service) ListWebsiteTLLanguage(ctx context.Context, params model.ListParams) ([]*model.WebsiteTLLanguage, error)

func (Service) UpdateComicByCode

func (svc Service) UpdateComicByCode(ctx context.Context, code string, data model.SetComic, v *model.Comic) error

func (Service) UpdateComicChapterBySID

func (svc Service) UpdateComicChapterBySID(ctx context.Context, sid model.ComicChapterSID, data model.SetComicChapter, v *model.ComicChapter) error

func (Service) UpdateComicChapterLinkBySID

func (svc Service) UpdateComicChapterLinkBySID(ctx context.Context, sid model.ComicChapterLinkSID, data model.SetComicChapterLink, v *model.ComicChapterLink) error

func (Service) UpdateComicLinkBySID

func (svc Service) UpdateComicLinkBySID(ctx context.Context, sid model.ComicLinkSID, data model.SetComicLink, v *model.ComicLink) error

func (Service) UpdateLanguageByIETF

func (svc Service) UpdateLanguageByIETF(ctx context.Context, ietf string, data model.SetLanguage, v *model.Language) error

func (Service) UpdateLinkBySID

func (svc Service) UpdateLinkBySID(ctx context.Context, sid model.LinkSID, data model.SetLink, v *model.Link) error

func (Service) UpdateLinkTLLanguageBySID

func (svc Service) UpdateLinkTLLanguageBySID(ctx context.Context, sid model.LinkTLLanguageSID, data model.SetLinkTLLanguage, v *model.LinkTLLanguage) error

func (Service) UpdateWebsiteByDomain

func (svc Service) UpdateWebsiteByDomain(ctx context.Context, domain string, data model.SetWebsite, v *model.Website) error

func (Service) UpdateWebsiteTLLanguageBySID

func (svc Service) UpdateWebsiteTLLanguageBySID(ctx context.Context, sid model.WebsiteTLLanguageSID, data model.SetWebsiteTLLanguage, v *model.WebsiteTLLanguage) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL