Documentation ¶
Index ¶
- func MonthlyResultKey(year int32, month int32) string
- type Admin
- type Admins
- type Auth
- type Book
- type Books
- type Bookshelf
- type BookshelfStatus
- type Bookshelves
- type ChatMessage
- type ChatRoom
- type ChatRooms
- type Follow
- type Follower
- type Followers
- type Follows
- type Gender
- type MonthlyResult
- type MonthlyResults
- type OrderBy
- type Review
- type Reviews
- type Role
- type User
- type UserProfile
- type Users
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MonthlyResultKey ¶
Types ¶
type Bookshelf ¶
func NewBookshelf ¶
func (*Bookshelf) Status ¶
func (b *Bookshelf) Status() BookshelfStatus
type BookshelfStatus ¶
type BookshelfStatus int32
BookshelfStatus - 読書ステータス
const ( BookshelfStatusNone BookshelfStatus = 0 // 不明なステータス BookshelfStatusRead BookshelfStatus = 1 // 読み終えた本 BookshelfStatusReading BookshelfStatus = 2 // 読んでいる本 BookshelfStatusStacked BookshelfStatus = 3 // 積読本 BookshelfStatusWant BookshelfStatus = 4 // 読みたい本 BookshelfStatusRelease BookshelfStatus = 5 // 手放したい本 )
func NewBookshelfStatus ¶
func NewBookshelfStatus(s book.BookshelfStatus) BookshelfStatus
func NewBookshelfStatusByValue ¶
func NewBookshelfStatusByValue(key string) BookshelfStatus
func (BookshelfStatus) Name ¶
func (s BookshelfStatus) Name() string
func (BookshelfStatus) Proto ¶
func (s BookshelfStatus) Proto() book.BookshelfStatus
type Bookshelves ¶
type Bookshelves []*Bookshelf
func NewBookshelves ¶
func NewBookshelves(bs []*book.Bookshelf) Bookshelves
func (Bookshelves) BookIDs ¶
func (bs Bookshelves) BookIDs() []int64
type ChatMessage ¶
func NewChatMessage ¶
func NewChatMessage(cm *chat.Message) *ChatMessage
type ChatRoom ¶
func NewChatRoom ¶
type Follower ¶
func NewFollower ¶
type MonthlyResult ¶
type MonthlyResult struct {
*book.MonthlyResult
}
func NewMonthlyResult ¶
func NewMonthlyResult(r *book.MonthlyResult) *MonthlyResult
type MonthlyResults ¶
type MonthlyResults []*MonthlyResult
func NewMonthlyResults ¶
func NewMonthlyResults(rs []*book.MonthlyResult) MonthlyResults
func (MonthlyResults) Map ¶
func (rs MonthlyResults) Map() map[string]*MonthlyResult
type UserProfile ¶
type UserProfile struct {
*user.UserProfile
}
func NewUserProfile ¶
func NewUserProfile(p *user.UserProfile) *UserProfile
Source Files ¶
Click to show internal directories.
Click to hide internal directories.