diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-15 13:37:22 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-15 13:37:22 +0530 |
commit | d0d0d0cdc4218f1f944481a5116c74d81682deff (patch) | |
tree | 9cca99607126273d317ad9bae0b66c6248f07035 /mg.go | |
parent | 266af04ade2dd1617bb27079779bdb81d6f18ee0 (diff) |
added validators for read-only endpoints
Diffstat (limited to 'mg.go')
-rw-r--r-- | mg.go | 70 |
1 files changed, 70 insertions, 0 deletions
@@ -41,3 +41,73 @@ const ( Tags = "tags" Comments = "comments" ) + +// for getting ranking list +const ( + // for anime only + RankingTypeAiring = "airing" + RankingTypeUpcoming = "upcoming" + RankingTypeTV = "tv" + RankingTypeOVA = "ova" + RankingTypeMovie = "movie" + RankingTypeSpecial = "special" + + // for manga only + RankingTypeManga = "manga" + RankingTypeNovel = "novels" + RankingTypeOneShot = "oneshots" + RankingTypeDoujin = "doujin" + RankingTypeManhwa = "manhwa" + RankingTypeManhua = "manhua" + + // for both + RankingTypeAll = "all" + RankingTypeByPopularity = "bypopularity" + RankingTypeFavorite = "favorite" +) + +// for anime/manga list sort +const ( + // for anime only + SortByAnimeTitle = "anime_title" + SortByAnimeStartDate = "anime_start_date" + SortByAnimeId = "anime_id" + + // for manga only + SortByMangaTitle = "manga_title" + SortByMangaStartDate = "manga_start_date" + SortByMangaId = "manga_id" + + // for both + SortByListScore = "list_score" + SortByListUpdatedAt = "list_updated_at" +) + +// for anime/manga list status +const ( + // for anime only + ListStatusWatching = "watching" + ListStatusPTW = "plan_to_watch" + + // for manga only + ListStatusReading = "watching" + ListStatusPTR = "plan_to_read" + + // for both + ListStatusCompleted = "completed" + ListStatusOnHold = "on_hold" + ListStatusDropped = "dropped" +) + +// for anime seasons +const ( + // season names + SeasonWinter = "winter" + SeasonSpring = "spring" + SeasonSummer = "summer" + SeasonFall = "fall" + + // sorting + SeasonSortByAnimeScore = "anime_score" + SeasonSortByNumListUsers = "num_list_users" +) |