Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Create ¶
type Create struct {
AccountID uuid.UUID `json:"accountId"`
Comment string `json:"comment"`
Photos []string `json:"photos"`
Rate float64 `json:"rating"`
}
Create post create payload
type Media ¶
type Media struct {
User account.Media `json:"user"`
Comment string `json:"comment"`
Rate float64 `json:"rating"`
Photo string `json:"photo"`
CreatedAt time.Time `json:"createdAt"`
}
Media post media
type Post ¶
type Post struct {
ID uuid.UUID `json:"id" gorm:"primary_key" sql:"type:uuid" name:"ID"`
AccountID uuid.UUID `json:"accountId" sql:"type:uuid" name:"アカウントID"`
Comment string `json:"comment" name:"コメント"`
Rate sql.NullFloat64 `json:"rate" name:"レート"`
CreatedBy uuid.UUID `json:"createdBy" name:"作成者" sql:"type:uuid"`
UpdatedBy uuid.UUID `json:"updatedBy" name:"更新者" sql:"type:uuid"`
CreatedAt time.Time `json:"createdAt" name:"作成日"`
UpdatedAt time.Time `json:"updatedAt" name:"更新日"`
DeletedAt *time.Time `json:"deletedAt" name:"削除日"`
}
Post post
Click to show internal directories.
Click to hide internal directories.