Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Book ¶
type Book struct { Title string `json:"title" validate:"required,max=64"` TitleKana string `json:"titleKana" validate:"required,max=128"` Description string `json:"description" validate:"omitempty,max=2000"` Isbn string `json:"isbn" validate:"required,max=16"` Publisher string `json:"publisher" validate:"required,max=32"` PublishedOn string `json:"publishedOn" validate:"required"` ThumbnailURL string `json:"thumbnailUrl" validate:"omitempty"` RakutenURL string `json:"rakutenUrl" validate:"omitempty"` RakutenGenreID string `json:"rakutenGenreId" validate:"omitempty"` Authors []*BookAuthor `json:"authors" validate:"omitempty"` }
Book - 書籍登録/更新のリクエスト
type BookAuthor ¶
type BookAuthor struct { Name string `json:"name" validate:"required,max=32"` NameKana string `json:"nameKana" validate:"required,max=64"` }
BookAuthor - 著者のリクエスト
type Bookshelf ¶
type Bookshelf struct { UserID string `json:"userId" validate:"required"` BookID int `json:"bookId" validate:"required,gte=1"` Status int `json:"status" validate:"required,gte=0,lte=5"` ReadOn string `json:"readOn" validate:"omitempty"` Impression string `json:"impression" validate:"omitempty,max=1000"` }
Bookshelf - 本棚への書籍登録/更新のリクエスト
type ListBookByBookIDs ¶
type ListBookByBookIDs struct {
BookIDs []int `json:"bookIds" validate:"unique,dive,required,gte=1"`
}
ListBookByBookIDs - 書籍一覧取得のリクエスト
type ListBookReview ¶
type ListBookReview struct { BookID int `json:"bookId" validate:"required,gte=1"` Limit int `json:"limit" validate:"gte=0,lte=1000"` Offset int `json:"offset" validate:"gte=0"` By string `json:"by" validate:"omitempty,oneof=id score"` Direction string `json:"direction" validate:"omitempty,oneof=asc desc"` }
ListBookReview - 任意の書籍のレビュー一覧取得のリクエスト
type ListBookshelf ¶
type ListBookshelf struct { UserID string `json:"userId" validate:"required"` Limit int `json:"limit" validate:"gte=0,lte=1000"` Offset int `json:"offset" validate:"gte=0"` }
ListBookshelf - 本棚内の書籍一覧取得のリクエスト
type ListUserReview ¶
type ListUserReview struct { UserID string `json:"userId" validate:"required"` Limit int `json:"limit" validate:"gte=0,lte=1000"` Offset int `json:"offset" validate:"gte=0"` By string `json:"by" validate:"omitempty,oneof=id score"` Direction string `json:"direction" validate:"omitempty,oneof=asc desc"` }
ListUserReview - 任意のユーザのレビュー一覧取得のリクエスト
Click to show internal directories.
Click to hide internal directories.