service

package
v0.0.0-...-1814500 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) AddCategory

func (svc Service) AddCategory(ctx context.Context, data model.AddCategory, v *model.Category) error

func (Service) AddCategoryRelation

func (svc Service) AddCategoryRelation(ctx context.Context, data model.AddCategoryRelation, v *model.CategoryRelation) error

func (Service) AddCategoryType

func (svc Service) AddCategoryType(ctx context.Context, data model.AddCategoryType, v *model.CategoryType) error

func (Service) AddComic

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

func (Service) AddComicCategory

func (svc Service) AddComicCategory(ctx context.Context, data model.AddComicCategory, v *model.ComicCategory) error

func (Service) AddComicChapter

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

func (Service) AddComicCover

func (svc Service) AddComicCover(ctx context.Context, data model.AddComicCover, v *model.ComicCover) error

func (Service) AddComicExternal

func (svc Service) AddComicExternal(ctx context.Context, data model.AddComicExternal, v *model.ComicExternal) error

func (Service) AddComicRelation

func (svc Service) AddComicRelation(ctx context.Context, data model.AddComicRelation, v *model.ComicRelation) error

func (Service) AddComicRelationType

func (svc Service) AddComicRelationType(ctx context.Context, data model.AddComicRelationType, v *model.ComicRelationType) error

func (Service) AddComicSynopsis

func (svc Service) AddComicSynopsis(ctx context.Context, data model.AddComicSynopsis, v *model.ComicSynopsis) error

func (Service) AddComicTag

func (svc Service) AddComicTag(ctx context.Context, data model.AddComicTag, v *model.ComicTag) error

func (Service) AddComicTitle

func (svc Service) AddComicTitle(ctx context.Context, data model.AddComicTitle, v *model.ComicTitle) error

func (Service) AddLanguage

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

func (Service) AddTag

func (svc Service) AddTag(ctx context.Context, data model.AddTag, v *model.Tag) error

func (Service) AddTagType

func (svc Service) AddTagType(ctx context.Context, data model.AddTagType, v *model.TagType) error

func (Service) AddWebsite

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

func (Service) CountCategory

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

func (Service) CountCategoryRelation

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

func (Service) CountCategoryType

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

func (Service) CountComic

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

func (Service) CountComicCategory

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

func (Service) CountComicChapter

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

func (Service) CountComicCover

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

func (Service) CountComicExternal

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

func (Service) CountComicRelation

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

func (Service) CountComicRelationType

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

func (Service) CountComicSynopsis

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

func (Service) CountComicTag

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

func (Service) CountComicTitle

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

func (Service) CountLanguage

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

func (Service) CountTag

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

func (Service) CountTagType

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

func (Service) CountWebsite

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

func (Service) DeleteCategoryBySID

func (svc Service) DeleteCategoryBySID(ctx context.Context, sid model.CategorySID) error

func (Service) DeleteCategoryRelationBySID

func (svc Service) DeleteCategoryRelationBySID(ctx context.Context, sid model.CategoryRelationSID) error

func (Service) DeleteCategoryTypeByCode

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

func (Service) DeleteComicByCode

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

func (Service) DeleteComicCategoryBySID

func (svc Service) DeleteComicCategoryBySID(ctx context.Context, sid model.ComicCategorySID) error

func (Service) DeleteComicChapterBySID

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

func (Service) DeleteComicCoverBySID

func (svc Service) DeleteComicCoverBySID(ctx context.Context, sid model.ComicGenericSID) error

func (Service) DeleteComicExternalBySID

func (svc Service) DeleteComicExternalBySID(ctx context.Context, sid model.ComicGenericSID) error

func (Service) DeleteComicRelationBySID

func (svc Service) DeleteComicRelationBySID(ctx context.Context, sid model.ComicRelationSID) error

func (Service) DeleteComicRelationTypeByCode

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

func (Service) DeleteComicSynopsisBySID

func (svc Service) DeleteComicSynopsisBySID(ctx context.Context, sid model.ComicGenericSID) error

func (Service) DeleteComicTagBySID

func (svc Service) DeleteComicTagBySID(ctx context.Context, sid model.ComicTagSID) error

func (Service) DeleteComicTitleBySID

func (svc Service) DeleteComicTitleBySID(ctx context.Context, sid model.ComicGenericSID) error

func (Service) DeleteLanguageByIETF

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

func (Service) DeleteTagBySID

func (svc Service) DeleteTagBySID(ctx context.Context, sid model.TagSID) error

func (Service) DeleteTagTypeByCode

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

func (Service) DeleteWebsiteByDomain

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

func (Service) ExistsComicByCode

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

func (Service) GetCategoryBySID

func (svc Service) GetCategoryBySID(ctx context.Context, sid model.CategorySID) (*model.Category, error)

func (Service) GetCategoryRelationBySID

func (svc Service) GetCategoryRelationBySID(ctx context.Context, sid model.CategoryRelationSID) (*model.CategoryRelation, error)

func (Service) GetCategoryTypeByCode

func (svc Service) GetCategoryTypeByCode(ctx context.Context, code string) (*model.CategoryType, error)

func (Service) GetComicByCode

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

func (Service) GetComicCategoryBySID

func (svc Service) GetComicCategoryBySID(ctx context.Context, sid model.ComicCategorySID) (*model.ComicCategory, error)

func (Service) GetComicChapterBySID

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

func (Service) GetComicCoverBySID

func (svc Service) GetComicCoverBySID(ctx context.Context, sid model.ComicGenericSID) (*model.ComicCover, error)

func (Service) GetComicExternalBySID

func (svc Service) GetComicExternalBySID(ctx context.Context, sid model.ComicGenericSID) (*model.ComicExternal, error)

func (Service) GetComicRelationBySID

func (svc Service) GetComicRelationBySID(ctx context.Context, sid model.ComicRelationSID) (*model.ComicRelation, error)

func (Service) GetComicRelationTypeByCode

func (svc Service) GetComicRelationTypeByCode(ctx context.Context, code string) (*model.ComicRelationType, error)

func (Service) GetComicSynopsisBySID

func (svc Service) GetComicSynopsisBySID(ctx context.Context, sid model.ComicGenericSID) (*model.ComicSynopsis, error)

func (Service) GetComicTagBySID

func (svc Service) GetComicTagBySID(ctx context.Context, sid model.ComicTagSID) (*model.ComicTag, error)

func (Service) GetComicTitleBySID

func (svc Service) GetComicTitleBySID(ctx context.Context, sid model.ComicGenericSID) (*model.ComicTitle, error)

func (Service) GetLanguageByIETF

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

func (Service) GetTagBySID

func (svc Service) GetTagBySID(ctx context.Context, sid model.TagSID) (*model.Tag, error)

func (Service) GetTagTypeByCode

func (svc Service) GetTagTypeByCode(ctx context.Context, code string) (*model.TagType, error)

func (Service) GetWebsiteByDomain

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

func (Service) ListCategory

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

func (Service) ListCategoryRelation

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

func (Service) ListCategoryType

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

func (Service) ListComic

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

func (Service) ListComicCategory

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

func (Service) ListComicChapter

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

func (Service) ListComicCover

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

func (Service) ListComicExternal

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

func (Service) ListComicRelation

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

func (Service) ListComicRelationType

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

func (Service) ListComicSynopsis

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

func (Service) ListComicTag

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

func (Service) ListComicTitle

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

func (Service) ListLanguage

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

func (Service) ListTag

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

func (Service) ListTagType

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

func (Service) ListWebsite

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

func (Service) UpdateCategoryBySID

func (svc Service) UpdateCategoryBySID(ctx context.Context, sid model.CategorySID, data model.SetCategory, v *model.Category) error

func (Service) UpdateCategoryRelationBySID

func (svc Service) UpdateCategoryRelationBySID(ctx context.Context, sid model.CategoryRelationSID, data model.SetCategoryRelation, v *model.CategoryRelation) error

func (Service) UpdateCategoryTypeByCode

func (svc Service) UpdateCategoryTypeByCode(ctx context.Context, code string, data model.SetCategoryType, v *model.CategoryType) error

func (Service) UpdateComicByCode

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

func (Service) UpdateComicCategoryBySID

func (svc Service) UpdateComicCategoryBySID(ctx context.Context, sid model.ComicCategorySID, data model.SetComicCategory, v *model.ComicCategory) error

func (Service) UpdateComicChapterBySID

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

func (Service) UpdateComicCoverBySID

func (svc Service) UpdateComicCoverBySID(ctx context.Context, sid model.ComicGenericSID, data model.SetComicCover, v *model.ComicCover) error

func (Service) UpdateComicExternalBySID

func (svc Service) UpdateComicExternalBySID(ctx context.Context, sid model.ComicGenericSID, data model.SetComicExternal, v *model.ComicExternal) error

func (Service) UpdateComicRelationBySID

func (svc Service) UpdateComicRelationBySID(ctx context.Context, sid model.ComicRelationSID, data model.SetComicRelation, v *model.ComicRelation) error

func (Service) UpdateComicRelationTypeByCode

func (svc Service) UpdateComicRelationTypeByCode(ctx context.Context, code string, data model.SetComicRelationType, v *model.ComicRelationType) error

func (Service) UpdateComicSynopsisBySID

func (svc Service) UpdateComicSynopsisBySID(ctx context.Context, sid model.ComicGenericSID, data model.SetComicSynopsis, v *model.ComicSynopsis) error

func (Service) UpdateComicTagBySID

func (svc Service) UpdateComicTagBySID(ctx context.Context, sid model.ComicTagSID, data model.SetComicTag, v *model.ComicTag) error

func (Service) UpdateComicTitleBySID

func (svc Service) UpdateComicTitleBySID(ctx context.Context, sid model.ComicGenericSID, data model.SetComicTitle, v *model.ComicTitle) error

func (Service) UpdateLanguageByIETF

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

func (Service) UpdateTagBySID

func (svc Service) UpdateTagBySID(ctx context.Context, sid model.TagSID, data model.SetTag, v *model.Tag) error

func (Service) UpdateTagTypeByCode

func (svc Service) UpdateTagTypeByCode(ctx context.Context, code string, data model.SetTagType, v *model.TagType) error

func (Service) UpdateWebsiteByDomain

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

Jump to

Keyboard shortcuts

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