Documentation ¶
Index ¶
- Constants
- func Close()
- func Init()
- func Pool() *pgxpool.Pool
- type AddCommentParams
- type AuthorsByBookGroupParams
- type BookAuthor
- type BookAuthorByIdRow
- type BookAuthorsParams
- type BookAuthorsRow
- type BookChapter
- type BookChapterImage
- type BookChapterView
- type BookChaptersByBookGroupIdParams
- type BookComment
- type BookGroup
- type BookGroupAltTitle
- type BookGroupArt
- type BookGroupAuthor
- type BookGroupAuthorParams
- type BookGroupByIdRow
- type BookGroupGenre
- type BookGroupGenreParams
- type BookGroupLike
- type BookGroupsByAuthorRow
- type BookGroupsByGenreParams
- type BookGroupsByGenreRow
- type BookGroupsByTitleParams
- type BookGroupsByTitleRow
- type BookGroupsByUserRow
- type BookGroupsTopViewAllRow
- type BookGroupsTopViewMonthRow
- type BookGroupsTopViewWeekRow
- type BookGroupsTopViewYearRow
- type CheckAlreadyDislikeParams
- type CheckAlreadyLikeParams
- type CheckImageExistsByHashParams
- type CheckPermissionOnUserIdParams
- type CheckUnlikeParams
- type CompleteOauthAccountParams
- type DBTX
- type DeleteBookGroupAuthorParams
- type DeleteBookGroupGenreParams
- type DisLikesParams
- type Genre
- type GenresByBookGroupParams
- type GetAllGenreRow
- type GetBookAuthorRow
- type GetBookChapterCommentsParams
- type GetBookChapterCommentsRow
- type GetBookChapterOwnerRow
- type GetBookGroupAndChapterCommentsParams
- type GetBookGroupAndChapterCommentsRow
- type GetBookGroupAuthorsRow
- type GetBookGroupChaptersRow
- type GetBookGroupCommentsParams
- type GetBookGroupCommentsRow
- type GetBookGroupCoverArtsRow
- type GetBookGroupGenresRow
- type GetCommentChapterInfoRow
- type GetCommenterRow
- type GetImageBasedOnHashParams
- type GetLatestCommentsRow
- type GetTotalBookGroupAndChapterCommentsParams
- type GetUserInfoRow
- type Image
- type ImagesByBookChapterRow
- type InsertBookAuthorParams
- type InsertBookChapterImageParams
- type InsertBookChapterParams
- type InsertBookGroupArtParams
- type InsertBookGroupAuthorParams
- type InsertBookGroupGenreParams
- type InsertBookGroupParams
- type InsertBookGroupRow
- type InsertGenreParams
- type InsertImageParams
- type InsertNewRoleParams
- type InsertUserParams
- type LatestBookGroupsParams
- type LatestBookGroupsRow
- type LikesParams
- type Queries
- func (q *Queries) AddComment(ctx context.Context, arg AddCommentParams) error
- func (q *Queries) AllBookGroupGenre(ctx context.Context) ([]BookGroupGenre, error)
- func (q *Queries) AuthorsByBookGroup(ctx context.Context, arg AuthorsByBookGroupParams) ([]int32, error)
- func (q *Queries) BookAuthorById(ctx context.Context, id int32) (BookAuthorByIdRow, error)
- func (q *Queries) BookAuthors(ctx context.Context, arg BookAuthorsParams) ([]BookAuthorsRow, error)
- func (q *Queries) BookChapterById(ctx context.Context, id int32) (BookChapter, error)
- func (q *Queries) BookChaptersByBookGroupId(ctx context.Context, arg BookChaptersByBookGroupIdParams) ([]BookChapter, error)
- func (q *Queries) BookGroupAuthor(ctx context.Context, arg BookGroupAuthorParams) (bool, error)
- func (q *Queries) BookGroupById(ctx context.Context, id int32) (BookGroupByIdRow, error)
- func (q *Queries) BookGroupGenre(ctx context.Context, arg BookGroupGenreParams) (bool, error)
- func (q *Queries) BookGroupsByAuthor(ctx context.Context, bookAuthorID int32) ([]BookGroupsByAuthorRow, error)
- func (q *Queries) BookGroupsByGenre(ctx context.Context, arg BookGroupsByGenreParams) ([]BookGroupsByGenreRow, error)
- func (q *Queries) BookGroupsByTitle(ctx context.Context, arg BookGroupsByTitleParams) ([]BookGroupsByTitleRow, error)
- func (q *Queries) BookGroupsByUser(ctx context.Context, id int32) ([]BookGroupsByUserRow, error)
- func (q *Queries) BookGroupsTopViewAll(ctx context.Context, limit int32) ([]BookGroupsTopViewAllRow, error)
- func (q *Queries) BookGroupsTopViewMonth(ctx context.Context, limit int32) ([]BookGroupsTopViewMonthRow, error)
- func (q *Queries) BookGroupsTopViewWeek(ctx context.Context, limit int32) ([]BookGroupsTopViewWeekRow, error)
- func (q *Queries) BookGroupsTopViewYear(ctx context.Context, limit int32) ([]BookGroupsTopViewYearRow, error)
- func (q *Queries) CheckAlreadyDislike(ctx context.Context, arg CheckAlreadyDislikeParams) (bool, error)
- func (q *Queries) CheckAlreadyLike(ctx context.Context, arg CheckAlreadyLikeParams) (bool, error)
- func (q *Queries) CheckAuthorExistById(ctx context.Context, id int32) (bool, error)
- func (q *Queries) CheckAuthorExistByName(ctx context.Context, name string) (bool, error)
- func (q *Queries) CheckBookGroupById(ctx context.Context, id int32) (bool, error)
- func (q *Queries) CheckEmailExist(ctx context.Context, email string) (bool, error)
- func (q *Queries) CheckGenreExistById(ctx context.Context, id int32) (bool, error)
- func (q *Queries) CheckIfCommentExist(ctx context.Context, id int32) (bool, error)
- func (q *Queries) CheckImageExistById(ctx context.Context, id int32) (bool, error)
- func (q *Queries) CheckImageExistsByHash(ctx context.Context, arg CheckImageExistsByHashParams) (bool, error)
- func (q *Queries) CheckPermissionOnUserId(ctx context.Context, arg CheckPermissionOnUserIdParams) (bool, error)
- func (q *Queries) CheckUnlike(ctx context.Context, arg CheckUnlikeParams) (bool, error)
- func (q *Queries) CheckUsernameExist(ctx context.Context, userName sql.NullString) (bool, error)
- func (q *Queries) ClearTempImages(ctx context.Context) ([]int32, error)
- func (q *Queries) CompleteOauthAccount(ctx context.Context, arg CompleteOauthAccountParams) error
- func (q *Queries) CountCommentInBookGroup(ctx context.Context, bookGroupID int32) (int64, error)
- func (q *Queries) DelBookGroupAuthorsByAuthor(ctx context.Context, bookAuthorID int32) error
- func (q *Queries) DelBookGroupAuthorsByBookGroup(ctx context.Context, bookGroupID int32) error
- func (q *Queries) DelBookGroupGenresByBookGroup(ctx context.Context, bookGroupID int32) error
- func (q *Queries) DelBookGroupGenresByGenre(ctx context.Context, genreID int32) error
- func (q *Queries) DeleteBookAuthor(ctx context.Context, id int32) error
- func (q *Queries) DeleteBookChapterByBookGroupId(ctx context.Context, bookGroupID int32) error
- func (q *Queries) DeleteBookChapterById(ctx context.Context, id int32) error
- func (q *Queries) DeleteBookGroup(ctx context.Context, id int32) error
- func (q *Queries) DeleteBookGroupAuthor(ctx context.Context, arg DeleteBookGroupAuthorParams) error
- func (q *Queries) DeleteBookGroupGenre(ctx context.Context, arg DeleteBookGroupGenreParams) error
- func (q *Queries) DeleteComment(ctx context.Context, id int32) error
- func (q *Queries) DeleteCoverOfBookGroup(ctx context.Context, bookGroupID int32) error
- func (q *Queries) DeleteGenre(ctx context.Context, id int32) error
- func (q *Queries) DeleteImage(ctx context.Context, id int32) error
- func (q *Queries) DeleteImageOfBookChapter(ctx context.Context, bookChapterID int32) error
- func (q *Queries) DeleteRole(ctx context.Context, name string) error
- func (q *Queries) DeleteTempImage(ctx context.Context, imageID int32) error
- func (q *Queries) DeleteUser(ctx context.Context, userName sql.NullString) error
- func (q *Queries) DisLikes(ctx context.Context, arg DisLikesParams) error
- func (q *Queries) GenreById(ctx context.Context, id int32) (Genre, error)
- func (q *Queries) GenresByBookGroup(ctx context.Context, arg GenresByBookGroupParams) ([]int32, error)
- func (q *Queries) GetAllGenre(ctx context.Context) ([]GetAllGenreRow, error)
- func (q *Queries) GetBookAuthor(ctx context.Context, id int32) (GetBookAuthorRow, error)
- func (q *Queries) GetBookChapterComments(ctx context.Context, arg GetBookChapterCommentsParams) ([]GetBookChapterCommentsRow, error)
- func (q *Queries) GetBookChapterOwner(ctx context.Context, id int32) (GetBookChapterOwnerRow, error)
- func (q *Queries) GetBookGroupAndChapterComments(ctx context.Context, arg GetBookGroupAndChapterCommentsParams) ([]GetBookGroupAndChapterCommentsRow, error)
- func (q *Queries) GetBookGroupAuthors(ctx context.Context, id int32) ([]GetBookGroupAuthorsRow, error)
- func (q *Queries) GetBookGroupChapters(ctx context.Context, id int32) ([]GetBookGroupChaptersRow, error)
- func (q *Queries) GetBookGroupComments(ctx context.Context, arg GetBookGroupCommentsParams) ([]GetBookGroupCommentsRow, error)
- func (q *Queries) GetBookGroupCoverArts(ctx context.Context, id int32) ([]GetBookGroupCoverArtsRow, error)
- func (q *Queries) GetBookGroupGenres(ctx context.Context, id int32) ([]GetBookGroupGenresRow, error)
- func (q *Queries) GetBookGroupView(ctx context.Context, id int32) (interface{}, error)
- func (q *Queries) GetCommentChapterInfo(ctx context.Context, id int32) (GetCommentChapterInfoRow, error)
- func (q *Queries) GetCommenter(ctx context.Context, id int32) (GetCommenterRow, error)
- func (q *Queries) GetCoverIdsOfBookGroup(ctx context.Context, bookGroupID int32) ([]int32, error)
- func (q *Queries) GetDislikes(ctx context.Context, bookGroupID int32) (interface{}, error)
- func (q *Queries) GetImageBasedOnHash(ctx context.Context, arg GetImageBasedOnHashParams) (Image, error)
- func (q *Queries) GetImageBasedOnId(ctx context.Context, id int32) (Image, error)
- func (q *Queries) GetLatestComments(ctx context.Context) ([]GetLatestCommentsRow, error)
- func (q *Queries) GetLikes(ctx context.Context, bookGroupID int32) (interface{}, error)
- func (q *Queries) GetRoleId(ctx context.Context, name string) (int32, error)
- func (q *Queries) GetTotalBookChapterComments(ctx context.Context, bookChapterID sql.NullInt32) (int64, error)
- func (q *Queries) GetTotalBookGroupAndChapterComments(ctx context.Context, arg GetTotalBookGroupAndChapterCommentsParams) (int64, error)
- func (q *Queries) GetTotalBookGroupComments(ctx context.Context, bookGroupID int32) (int64, error)
- func (q *Queries) GetUserInfo(ctx context.Context, id int32) (GetUserInfoRow, error)
- func (q *Queries) GetUserPermission(ctx context.Context, id int32) ([]RolePermission, error)
- func (q *Queries) GetViewByMonth(ctx context.Context, bookChapterID int32) (interface{}, error)
- func (q *Queries) GetViewByWeek(ctx context.Context, bookChapterID int32) (interface{}, error)
- func (q *Queries) GetViewByYear(ctx context.Context, bookChapterID int32) (interface{}, error)
- func (q *Queries) ImagesByBookChapter(ctx context.Context, bookChapterID int32) ([]ImagesByBookChapterRow, error)
- func (q *Queries) InsertBookAuthor(ctx context.Context, arg InsertBookAuthorParams) (BookAuthor, error)
- func (q *Queries) InsertBookChapter(ctx context.Context, arg InsertBookChapterParams) (BookChapter, error)
- func (q *Queries) InsertBookChapterImage(ctx context.Context, arg InsertBookChapterImageParams) error
- func (q *Queries) InsertBookGroup(ctx context.Context, arg InsertBookGroupParams) (InsertBookGroupRow, error)
- func (q *Queries) InsertBookGroupArt(ctx context.Context, arg InsertBookGroupArtParams) (BookGroupArt, error)
- func (q *Queries) InsertBookGroupAuthor(ctx context.Context, arg InsertBookGroupAuthorParams) (BookGroupAuthor, error)
- func (q *Queries) InsertBookGroupGenre(ctx context.Context, arg InsertBookGroupGenreParams) (BookGroupGenre, error)
- func (q *Queries) InsertGenre(ctx context.Context, arg InsertGenreParams) (Genre, error)
- func (q *Queries) InsertImage(ctx context.Context, arg InsertImageParams) (int32, error)
- func (q *Queries) InsertNewRole(ctx context.Context, arg InsertNewRoleParams) (Role, error)
- func (q *Queries) InsertUser(ctx context.Context, arg InsertUserParams) (User, error)
- func (q *Queries) LatestBookGroups(ctx context.Context, arg LatestBookGroupsParams) ([]LatestBookGroupsRow, error)
- func (q *Queries) Likes(ctx context.Context, arg LikesParams) error
- func (q *Queries) ListBookGroups(ctx context.Context, limit int32) ([]BookGroup, error)
- func (q *Queries) NumberBookGroup(ctx context.Context) (int64, error)
- func (q *Queries) NumberBookGroupSearchResult(ctx context.Context, query string) (int64, error)
- func (q *Queries) NumberRowBookGroupInGenre(ctx context.Context, genreID int32) (int64, error)
- func (q *Queries) RandomBookGroups(ctx context.Context, limit int32) ([]RandomBookGroupsRow, error)
- func (q *Queries) Role(ctx context.Context, id int32) (RoleRow, error)
- func (q *Queries) SearchAuthors(ctx context.Context, unaccent string) ([]SearchAuthorsRow, error)
- func (q *Queries) SearchResult(ctx context.Context, arg SearchResultParams) ([]SearchResultRow, error)
- func (q *Queries) SearchSuggestion(ctx context.Context, query string) ([]SearchSuggestionRow, error)
- func (q *Queries) SearchUsers(ctx context.Context, dollar_1 sql.NullString) ([]SearchUsersRow, error)
- func (q *Queries) SetRole(ctx context.Context, arg SetRoleParams) error
- func (q *Queries) Unlikes(ctx context.Context, arg UnlikesParams) error
- func (q *Queries) UpdateBookAuthor(ctx context.Context, arg UpdateBookAuthorParams) error
- func (q *Queries) UpdateBookChapter(ctx context.Context, arg UpdateBookChapterParams) error
- func (q *Queries) UpdateBookGroup(ctx context.Context, arg UpdateBookGroupParams) error
- func (q *Queries) UpdateComment(ctx context.Context, arg UpdateCommentParams) error
- func (q *Queries) UpdateGenre(ctx context.Context, arg UpdateGenreParams) error
- func (q *Queries) UpdatePassword(ctx context.Context, arg UpdatePasswordParams) error
- func (q *Queries) UpdateUserInfo(ctx context.Context, arg UpdateUserInfoParams) error
- func (q *Queries) UpsertViewByDate(ctx context.Context, bookChapterID int32) error
- func (q *Queries) UserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) UserByUsernameOrEmail(ctx context.Context, userName sql.NullString) (User, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RandomBookGroupsRow
- type Role
- type RolePermission
- type RoleRow
- type SearchAuthorsRow
- type SearchResultParams
- type SearchResultRow
- type SearchSuggestionRow
- type SearchUsersRow
- type SetRoleParams
- type TempImage
- type UnlikesParams
- type UpdateBookAuthorParams
- type UpdateBookChapterParams
- type UpdateBookGroupParams
- type UpdateCommentParams
- type UpdateGenreParams
- type UpdatePasswordParams
- type UpdateUserInfoParams
- type User
Constants ¶
View Source
const CodeVersion = 3
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddCommentParams ¶
type BookAuthor ¶
type BookAuthor struct { ID int32 `json:"id"` Name string `json:"name"` Aliases sql.NullString `json:"aliases"` Description sql.NullString `json:"description"` AvatarImageID sql.NullInt32 `json:"avatarImageID"` BookAuthorTsv sql.NullString `json:"bookAuthorTsv"` }
type BookAuthorByIdRow ¶
type BookAuthorByIdRow struct { ID int32 `json:"id"` Name string `json:"name"` Aliases sql.NullString `json:"aliases"` Description sql.NullString `json:"description"` AvatarImageID sql.NullInt32 `json:"avatarImageID"` }
type BookAuthorsParams ¶
type BookAuthorsRow ¶
type BookAuthorsRow struct { ID int32 `json:"id"` Name string `json:"name"` Aliases sql.NullString `json:"aliases"` Description sql.NullString `json:"description"` AvatarImageID sql.NullInt32 `json:"avatarImageID"` }
type BookChapter ¶
type BookChapter struct { ID int32 `json:"id"` DateCreated time.Time `json:"dateCreated"` ChapterNumber float64 `json:"chapterNumber"` Name sql.NullString `json:"name"` TextContent sql.NullString `json:"textContent"` Type string `json:"type"` BookGroupID int32 `json:"bookGroupID"` OwnerID int32 `json:"ownerID"` }
type BookChapterImage ¶
type BookChapterView ¶
type BookComment ¶
type BookGroup ¶
type BookGroup struct { ID int32 `json:"id"` Title string `json:"title"` Aliases sql.NullString `json:"aliases"` Description sql.NullString `json:"description"` DateCreated sql.NullTime `json:"dateCreated"` OwnerID int32 `json:"ownerID"` PrimaryCoverArtID sql.NullInt32 `json:"primaryCoverArtID"` BookGroupTsv interface{} `json:"bookGroupTsv"` }
type BookGroupAltTitle ¶
type BookGroupArt ¶
type BookGroupAuthor ¶
type BookGroupAuthorParams ¶
type BookGroupByIdRow ¶
type BookGroupByIdRow struct { ID int32 `json:"id"` Title string `json:"title"` Aliases sql.NullString `json:"aliases"` Description sql.NullString `json:"description"` DateCreated sql.NullTime `json:"dateCreated"` OwnerID int32 `json:"ownerID"` PrimaryCoverArtID sql.NullInt32 `json:"primaryCoverArtID"` }
type BookGroupGenre ¶
type BookGroupGenreParams ¶
type BookGroupLike ¶
type BookGroupsByAuthorRow ¶
type BookGroupsByAuthorRow struct { ID int32 `json:"id"` Image interface{} `json:"image"` Title interface{} `json:"title"` LatestChapter interface{} `json:"latestChapter"` LastUpdated interface{} `json:"lastUpdated"` Views interface{} `json:"views"` Comments int64 `json:"comments"` Likes interface{} `json:"likes"` }
type BookGroupsByGenreParams ¶
type BookGroupsByGenreRow ¶
type BookGroupsByGenreRow struct { ID int32 `json:"id"` Image interface{} `json:"image"` Title interface{} `json:"title"` LatestChapter interface{} `json:"latestChapter"` LastUpdated interface{} `json:"lastUpdated"` Views interface{} `json:"views"` Comments int64 `json:"comments"` Likes interface{} `json:"likes"` }
type BookGroupsByTitleParams ¶
type BookGroupsByTitleRow ¶
type BookGroupsByTitleRow struct { ID int32 `json:"id"` Title string `json:"title"` Aliases sql.NullString `json:"aliases"` Description sql.NullString `json:"description"` DateCreated sql.NullTime `json:"dateCreated"` OwnerID int32 `json:"ownerID"` PrimaryCoverArtID sql.NullInt32 `json:"primaryCoverArtID"` }
type BookGroupsByUserRow ¶
type BookGroupsByUserRow struct { ID int32 `json:"id"` Image interface{} `json:"image"` Title interface{} `json:"title"` LatestChapter interface{} `json:"latestChapter"` LastUpdated interface{} `json:"lastUpdated"` Views interface{} `json:"views"` Comments int64 `json:"comments"` Likes interface{} `json:"likes"` }
type BookGroupsTopViewAllRow ¶
type BookGroupsTopViewAllRow struct { ID int32 `json:"id"` Image interface{} `json:"image"` Title string `json:"title"` LatestChapter interface{} `json:"latestChapter"` LastUpdated interface{} `json:"lastUpdated"` Views interface{} `json:"views"` Comments int64 `json:"comments"` Likes interface{} `json:"likes"` }
type BookGroupsTopViewMonthRow ¶
type BookGroupsTopViewMonthRow struct { ID int32 `json:"id"` Image interface{} `json:"image"` Title string `json:"title"` LatestChapter interface{} `json:"latestChapter"` LastUpdated interface{} `json:"lastUpdated"` Views interface{} `json:"views"` Comments int64 `json:"comments"` Likes interface{} `json:"likes"` }
type BookGroupsTopViewWeekRow ¶
type BookGroupsTopViewWeekRow struct { ID int32 `json:"id"` Image interface{} `json:"image"` Title string `json:"title"` LatestChapter interface{} `json:"latestChapter"` LastUpdated interface{} `json:"lastUpdated"` Views interface{} `json:"views"` Comments int64 `json:"comments"` Likes interface{} `json:"likes"` }
type BookGroupsTopViewYearRow ¶
type BookGroupsTopViewYearRow struct { ID int32 `json:"id"` Image interface{} `json:"image"` Title string `json:"title"` LatestChapter interface{} `json:"latestChapter"` LastUpdated interface{} `json:"lastUpdated"` Views interface{} `json:"views"` Comments int64 `json:"comments"` Likes interface{} `json:"likes"` }
type CheckAlreadyLikeParams ¶
type CheckUnlikeParams ¶
type DisLikesParams ¶
type GenresByBookGroupParams ¶
type GetAllGenreRow ¶
type GetBookAuthorRow ¶
type GetBookAuthorRow struct { Name string `json:"name"` Description sql.NullString `json:"description"` Aliases sql.NullString `json:"aliases"` Avatar sql.NullString `json:"avatar"` Avatarid sql.NullInt32 `json:"avatarid"` }
type GetBookChapterCommentsRow ¶
type GetBookChapterCommentsRow struct { ID int32 `json:"id"` Content string `json:"content"` PostedTime time.Time `json:"postedTime"` Userid int32 `json:"userid"` UserName sql.NullString `json:"userName"` Avatarpath sql.NullString `json:"avatarpath"` Chapterid sql.NullInt32 `json:"chapterid"` ChapterNumber sql.NullFloat64 `json:"chapterNumber"` }
type GetBookChapterOwnerRow ¶
type GetBookChapterOwnerRow struct { ID int32 `json:"id"` UserName sql.NullString `json:"userName"` }
type GetBookGroupAndChapterCommentsRow ¶
type GetBookGroupAndChapterCommentsRow struct { ID int32 `json:"id"` Content string `json:"content"` PostedTime time.Time `json:"postedTime"` Userid int32 `json:"userid"` UserName sql.NullString `json:"userName"` Avatarpath sql.NullString `json:"avatarpath"` Chapterid sql.NullInt32 `json:"chapterid"` ChapterNumber sql.NullFloat64 `json:"chapterNumber"` }
type GetBookGroupAuthorsRow ¶
type GetBookGroupChaptersRow ¶
type GetBookGroupChaptersRow struct { ChapterNumber float64 `json:"chapterNumber"` Name sql.NullString `json:"name"` Chapterid int32 `json:"chapterid"` DateCreated time.Time `json:"dateCreated"` Userid int32 `json:"userid"` UserName sql.NullString `json:"userName"` Totalview interface{} `json:"totalview"` }
type GetBookGroupCommentsRow ¶
type GetBookGroupCommentsRow struct { ID int32 `json:"id"` Content string `json:"content"` PostedTime time.Time `json:"postedTime"` Userid int32 `json:"userid"` UserName sql.NullString `json:"userName"` Avatarpath sql.NullString `json:"avatarpath"` Chapterid sql.NullInt32 `json:"chapterid"` ChapterNumber sql.NullFloat64 `json:"chapterNumber"` }
type GetBookGroupGenresRow ¶
type GetCommenterRow ¶
type GetCommenterRow struct { ID int32 `json:"id"` UserName sql.NullString `json:"userName"` Path sql.NullString `json:"path"` }
type GetLatestCommentsRow ¶
type GetLatestCommentsRow struct { ID int32 `json:"id"` Content string `json:"content"` PostedTime time.Time `json:"postedTime"` Userid int32 `json:"userid"` UserName sql.NullString `json:"userName"` Avatarpath sql.NullString `json:"avatarpath"` Chapterid sql.NullInt32 `json:"chapterid"` Chaptername sql.NullString `json:"chaptername"` ChapterNumber sql.NullFloat64 `json:"chapterNumber"` Bookid int32 `json:"bookid"` Bookname string `json:"bookname"` }
type GetUserInfoRow ¶
type GetUserInfoRow struct { ID int32 `json:"id"` UserName sql.NullString `json:"userName"` Email string `json:"email"` Password sql.NullString `json:"password"` Role string `json:"role"` Summary sql.NullString `json:"summary"` Avatarpath sql.NullString `json:"avatarpath"` Avatarid sql.NullInt32 `json:"avatarid"` }
type Image ¶
type Image struct { ID int32 `json:"id"` Md5 string `json:"md5"` Sha1 string `json:"sha1"` Path string `json:"path"` Name sql.NullString `json:"name"` Description sql.NullString `json:"description"` }
type ImagesByBookChapterRow ¶
type InsertBookAuthorParams ¶
type InsertBookAuthorParams struct { Name string `json:"name"` Aliases sql.NullString `json:"aliases"` Description sql.NullString `json:"description"` AvatarImageID sql.NullInt32 `json:"avatarImageID"` }
type InsertBookChapterParams ¶
type InsertBookChapterParams struct { ChapterNumber float64 `json:"chapterNumber"` Name sql.NullString `json:"name"` TextContent sql.NullString `json:"textContent"` Type string `json:"type"` BookGroupID int32 `json:"bookGroupID"` OwnerID int32 `json:"ownerID"` }
type InsertBookGroupParams ¶
type InsertBookGroupParams struct { Title string `json:"title"` Aliases sql.NullString `json:"aliases"` Description sql.NullString `json:"description"` OwnerID int32 `json:"ownerID"` PrimaryCoverArtID sql.NullInt32 `json:"primaryCoverArtID"` }
type InsertBookGroupRow ¶
type InsertBookGroupRow struct { ID int32 `json:"id"` Title string `json:"title"` Aliases sql.NullString `json:"aliases"` Description sql.NullString `json:"description"` DateCreated sql.NullTime `json:"dateCreated"` OwnerID int32 `json:"ownerID"` PrimaryCoverArtID sql.NullInt32 `json:"primaryCoverArtID"` }
type InsertGenreParams ¶
type InsertGenreParams struct { Name string `json:"name"` Description sql.NullString `json:"description"` ImageID sql.NullInt32 `json:"imageID"` }
type InsertImageParams ¶
type InsertImageParams struct { Md5 string `json:"md5"` Sha1 string `json:"sha1"` Path string `json:"path"` Name sql.NullString `json:"name"` Description sql.NullString `json:"description"` }
type InsertNewRoleParams ¶
type InsertNewRoleParams struct { Name string `json:"name"` Description sql.NullString `json:"description"` }
type InsertUserParams ¶
type InsertUserParams struct { UserName sql.NullString `json:"userName"` Password sql.NullString `json:"password"` Email string `json:"email"` RoleName string `json:"roleName"` }
type LatestBookGroupsParams ¶
type LatestBookGroupsRow ¶
type LatestBookGroupsRow struct { ID int32 `json:"id"` Image interface{} `json:"image"` Title string `json:"title"` LatestChapter interface{} `json:"latestChapter"` LastUpdated interface{} `json:"lastUpdated"` Views interface{} `json:"views"` Comments int64 `json:"comments"` Likes interface{} `json:"likes"` }
type LikesParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddComment ¶
func (q *Queries) AddComment(ctx context.Context, arg AddCommentParams) error
func (*Queries) AllBookGroupGenre ¶
func (q *Queries) AllBookGroupGenre(ctx context.Context) ([]BookGroupGenre, error)
func (*Queries) AuthorsByBookGroup ¶
func (*Queries) BookAuthorById ¶
func (*Queries) BookAuthors ¶
func (q *Queries) BookAuthors(ctx context.Context, arg BookAuthorsParams) ([]BookAuthorsRow, error)
func (*Queries) BookChapterById ¶
func (*Queries) BookChaptersByBookGroupId ¶
func (q *Queries) BookChaptersByBookGroupId(ctx context.Context, arg BookChaptersByBookGroupIdParams) ([]BookChapter, error)
func (*Queries) BookGroupAuthor ¶
func (*Queries) BookGroupById ¶
func (*Queries) BookGroupGenre ¶
func (*Queries) BookGroupsByAuthor ¶
func (*Queries) BookGroupsByGenre ¶
func (q *Queries) BookGroupsByGenre(ctx context.Context, arg BookGroupsByGenreParams) ([]BookGroupsByGenreRow, error)
func (*Queries) BookGroupsByTitle ¶
func (q *Queries) BookGroupsByTitle(ctx context.Context, arg BookGroupsByTitleParams) ([]BookGroupsByTitleRow, error)
func (*Queries) BookGroupsByUser ¶
func (*Queries) BookGroupsTopViewAll ¶
func (*Queries) BookGroupsTopViewMonth ¶
func (*Queries) BookGroupsTopViewWeek ¶
func (*Queries) BookGroupsTopViewYear ¶
func (*Queries) CheckAlreadyDislike ¶
func (*Queries) CheckAlreadyLike ¶
func (*Queries) CheckAuthorExistById ¶
func (*Queries) CheckAuthorExistByName ¶
func (*Queries) CheckBookGroupById ¶
func (*Queries) CheckEmailExist ¶
func (*Queries) CheckGenreExistById ¶
func (*Queries) CheckIfCommentExist ¶
func (*Queries) CheckImageExistById ¶
func (*Queries) CheckImageExistsByHash ¶
func (*Queries) CheckPermissionOnUserId ¶
func (*Queries) CheckUnlike ¶
func (*Queries) CheckUsernameExist ¶
func (*Queries) ClearTempImages ¶
func (*Queries) CompleteOauthAccount ¶
func (q *Queries) CompleteOauthAccount(ctx context.Context, arg CompleteOauthAccountParams) error
func (*Queries) CountCommentInBookGroup ¶
func (*Queries) DelBookGroupAuthorsByAuthor ¶
func (*Queries) DelBookGroupAuthorsByBookGroup ¶
func (*Queries) DelBookGroupGenresByBookGroup ¶
func (*Queries) DelBookGroupGenresByGenre ¶
func (*Queries) DeleteBookAuthor ¶
func (*Queries) DeleteBookChapterByBookGroupId ¶
func (*Queries) DeleteBookChapterById ¶
func (*Queries) DeleteBookGroup ¶
func (*Queries) DeleteBookGroupAuthor ¶
func (q *Queries) DeleteBookGroupAuthor(ctx context.Context, arg DeleteBookGroupAuthorParams) error
func (*Queries) DeleteBookGroupGenre ¶
func (q *Queries) DeleteBookGroupGenre(ctx context.Context, arg DeleteBookGroupGenreParams) error
func (*Queries) DeleteComment ¶
func (*Queries) DeleteCoverOfBookGroup ¶
func (*Queries) DeleteImageOfBookChapter ¶
func (*Queries) DeleteTempImage ¶
func (*Queries) DeleteUser ¶
func (*Queries) DisLikes ¶
func (q *Queries) DisLikes(ctx context.Context, arg DisLikesParams) error
func (*Queries) GenresByBookGroup ¶
func (*Queries) GetAllGenre ¶
func (q *Queries) GetAllGenre(ctx context.Context) ([]GetAllGenreRow, error)
func (*Queries) GetBookAuthor ¶
func (*Queries) GetBookChapterComments ¶
func (q *Queries) GetBookChapterComments(ctx context.Context, arg GetBookChapterCommentsParams) ([]GetBookChapterCommentsRow, error)
func (*Queries) GetBookChapterOwner ¶
func (*Queries) GetBookGroupAndChapterComments ¶
func (q *Queries) GetBookGroupAndChapterComments(ctx context.Context, arg GetBookGroupAndChapterCommentsParams) ([]GetBookGroupAndChapterCommentsRow, error)
func (*Queries) GetBookGroupAuthors ¶
func (*Queries) GetBookGroupChapters ¶
func (*Queries) GetBookGroupComments ¶
func (q *Queries) GetBookGroupComments(ctx context.Context, arg GetBookGroupCommentsParams) ([]GetBookGroupCommentsRow, error)
func (*Queries) GetBookGroupCoverArts ¶
func (*Queries) GetBookGroupGenres ¶
func (*Queries) GetBookGroupView ¶
func (*Queries) GetCommentChapterInfo ¶
func (*Queries) GetCommenter ¶
func (*Queries) GetCoverIdsOfBookGroup ¶
func (*Queries) GetDislikes ¶
func (*Queries) GetImageBasedOnHash ¶
func (*Queries) GetImageBasedOnId ¶
func (*Queries) GetLatestComments ¶
func (q *Queries) GetLatestComments(ctx context.Context) ([]GetLatestCommentsRow, error)
func (*Queries) GetTotalBookChapterComments ¶
func (*Queries) GetTotalBookGroupAndChapterComments ¶
func (*Queries) GetTotalBookGroupComments ¶
func (*Queries) GetUserInfo ¶
func (*Queries) GetUserPermission ¶
func (*Queries) GetViewByMonth ¶
func (*Queries) GetViewByWeek ¶
func (*Queries) GetViewByYear ¶
func (*Queries) ImagesByBookChapter ¶
func (*Queries) InsertBookAuthor ¶
func (q *Queries) InsertBookAuthor(ctx context.Context, arg InsertBookAuthorParams) (BookAuthor, error)
func (*Queries) InsertBookChapter ¶
func (q *Queries) InsertBookChapter(ctx context.Context, arg InsertBookChapterParams) (BookChapter, error)
func (*Queries) InsertBookChapterImage ¶
func (q *Queries) InsertBookChapterImage(ctx context.Context, arg InsertBookChapterImageParams) error
func (*Queries) InsertBookGroup ¶
func (q *Queries) InsertBookGroup(ctx context.Context, arg InsertBookGroupParams) (InsertBookGroupRow, error)
func (*Queries) InsertBookGroupArt ¶
func (q *Queries) InsertBookGroupArt(ctx context.Context, arg InsertBookGroupArtParams) (BookGroupArt, error)
func (*Queries) InsertBookGroupAuthor ¶
func (q *Queries) InsertBookGroupAuthor(ctx context.Context, arg InsertBookGroupAuthorParams) (BookGroupAuthor, error)
func (*Queries) InsertBookGroupGenre ¶
func (q *Queries) InsertBookGroupGenre(ctx context.Context, arg InsertBookGroupGenreParams) (BookGroupGenre, error)
func (*Queries) InsertGenre ¶
func (*Queries) InsertImage ¶
func (*Queries) InsertNewRole ¶
func (*Queries) InsertUser ¶
func (*Queries) LatestBookGroups ¶
func (q *Queries) LatestBookGroups(ctx context.Context, arg LatestBookGroupsParams) ([]LatestBookGroupsRow, error)
func (*Queries) ListBookGroups ¶
func (*Queries) NumberBookGroup ¶
func (*Queries) NumberBookGroupSearchResult ¶
func (*Queries) NumberRowBookGroupInGenre ¶
func (*Queries) RandomBookGroups ¶
func (*Queries) SearchAuthors ¶
func (*Queries) SearchResult ¶
func (q *Queries) SearchResult(ctx context.Context, arg SearchResultParams) ([]SearchResultRow, error)
func (*Queries) SearchSuggestion ¶
func (*Queries) SearchUsers ¶
func (q *Queries) SearchUsers(ctx context.Context, dollar_1 sql.NullString) ([]SearchUsersRow, error)
func (*Queries) UpdateBookAuthor ¶
func (q *Queries) UpdateBookAuthor(ctx context.Context, arg UpdateBookAuthorParams) error
func (*Queries) UpdateBookChapter ¶
func (q *Queries) UpdateBookChapter(ctx context.Context, arg UpdateBookChapterParams) error
func (*Queries) UpdateBookGroup ¶
func (q *Queries) UpdateBookGroup(ctx context.Context, arg UpdateBookGroupParams) error
func (*Queries) UpdateComment ¶
func (q *Queries) UpdateComment(ctx context.Context, arg UpdateCommentParams) error
func (*Queries) UpdateGenre ¶
func (q *Queries) UpdateGenre(ctx context.Context, arg UpdateGenreParams) error
func (*Queries) UpdatePassword ¶
func (q *Queries) UpdatePassword(ctx context.Context, arg UpdatePasswordParams) error
func (*Queries) UpdateUserInfo ¶
func (q *Queries) UpdateUserInfo(ctx context.Context, arg UpdateUserInfoParams) error
func (*Queries) UpsertViewByDate ¶
func (*Queries) UserByEmail ¶
func (*Queries) UserByUsernameOrEmail ¶
type RandomBookGroupsRow ¶
type RandomBookGroupsRow struct { ID int32 `json:"id"` Image interface{} `json:"image"` Title string `json:"title"` LatestChapter interface{} `json:"latestChapter"` LastUpdated interface{} `json:"lastUpdated"` Views interface{} `json:"views"` Comments int64 `json:"comments"` Likes interface{} `json:"likes"` }
type Role ¶
type Role struct { ID int32 `json:"id"` Name string `json:"name"` Description sql.NullString `json:"description"` }
type RolePermission ¶
type SearchAuthorsRow ¶
type SearchAuthorsRow struct { Name string `json:"name"` ID int32 `json:"id"` Aliases sql.NullString `json:"aliases"` Path sql.NullString `json:"path"` }
type SearchResultParams ¶
type SearchResultRow ¶
type SearchResultRow struct { ID int32 `json:"id"` Image interface{} `json:"image"` Title string `json:"title"` LatestChapter interface{} `json:"latestChapter"` LastUpdated interface{} `json:"lastUpdated"` Views interface{} `json:"views"` Comments int64 `json:"comments"` Likes interface{} `json:"likes"` }
type SearchSuggestionRow ¶
type SearchUsersRow ¶
type SearchUsersRow struct { UserName sql.NullString `json:"userName"` ID int32 `json:"id"` Path sql.NullString `json:"path"` }
type SetRoleParams ¶
type UnlikesParams ¶
type UpdateBookAuthorParams ¶
type UpdateBookAuthorParams struct { ID int32 `json:"id"` Name string `json:"name"` Description sql.NullString `json:"description"` AvatarImageID sql.NullInt32 `json:"avatarImageID"` Aliases sql.NullString `json:"aliases"` }
type UpdateBookChapterParams ¶
type UpdateBookChapterParams struct { ID int32 `json:"id"` ChapterNumber float64 `json:"chapterNumber"` Name sql.NullString `json:"name"` TextContent sql.NullString `json:"textContent"` }
type UpdateBookGroupParams ¶
type UpdateBookGroupParams struct { ID int32 `json:"id"` Title string `json:"title"` Description sql.NullString `json:"description"` PrimaryCoverArtID sql.NullInt32 `json:"primaryCoverArtID"` Aliases sql.NullString `json:"aliases"` }
type UpdateCommentParams ¶
type UpdateGenreParams ¶
type UpdatePasswordParams ¶
type UpdatePasswordParams struct { ID int32 `json:"id"` Password sql.NullString `json:"password"` }
type UpdateUserInfoParams ¶
type UpdateUserInfoParams struct { ID int32 `json:"id"` Email string `json:"email"` UserName sql.NullString `json:"userName"` Summary sql.NullString `json:"summary"` AvatarImageID sql.NullInt32 `json:"avatarImageID"` }
type User ¶
type User struct { ID int32 `json:"id"` DateCreated time.Time `json:"dateCreated"` UserName sql.NullString `json:"userName"` Password sql.NullString `json:"password"` Email string `json:"email"` Summary sql.NullString `json:"summary"` AvatarImageID sql.NullInt32 `json:"avatarImageID"` RoleID int32 `json:"roleID"` FavoriteList sql.NullString `json:"favoriteList"` }
Source Files ¶
- book_author.sql.go
- book_chapter.sql.go
- book_chapter_images.sql.go
- book_group.sql.go
- book_group_art.sql.go
- book_group_arts.sql.go
- book_group_author.sql.go
- book_group_genre.sql.go
- comments.sql.go
- connection.go
- constants.go
- db.go
- genre.sql.go
- images.sql.go
- likes.sql.go
- models.go
- permission.sql.go
- queries.sql.go
- user.sql.go
- user_role.sql.go
- views.sql.go
Click to show internal directories.
Click to hide internal directories.