Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { ID AccountID `json:"-"` Username string `json:"username,omitempty"` PasswordHash string `json:"-" db:"password_hash"` DisplayName *string `json:"display_name,omitempty" db:"display_name"` Avatar *string `json:"avatar,omitempty"` Header *string `json:"header,omitempty"` Note *string `json:"note,omitempty"` CreateAt DateTime `json:"create_at,omitempty" db:"create_at"` // フォロワーの数 FollowersCount int64 `json:"followers_count" db:"followers_count"` // フォローしているアカウントの数 FollowingCount int64 `json:"following_count" db:"following_count"` }
func (*Account) CheckPassword ¶
func (*Account) SetPassword ¶
type Attachment ¶
type Attachment struct { ID int64 `json:"id"` Type string `json:"type"` URL string `json:"url"` Description string `json:"description"` }
func (*Attachment) CopyFile ¶
func (at *Attachment) CopyFile(file multipart.File, fileName string) error
func (*Attachment) CreateFileName ¶
func (at *Attachment) CreateFileName(h *multipart.FileHeader) string
type PasswordHash ¶
type PasswordHash = string
type Relationship ¶
type Status ¶
type Status struct { ID int `json:"id"` // AccountID of the status AccountID AccountID `json:"-" db:"account_id"` Account Account `json:"account"` Content string `json:"content"` FavoriteCount int64 `json:"favorite_count" db:"favorite_count"` CreateAt DateTime `json:"create_at,omitempty" db:"create_at"` }
Click to show internal directories.
Click to hide internal directories.