traP-jp / qtunes-backend

21 春 ハッカソン 02 班のバックエンドリポジトリ
0 stars 0 forks source link

DBリフレッシュAPI #64

Open ras0q opened 3 years ago

ras0q commented 3 years ago

管理者権限でほしい DBになにかあったときのため

ras0q commented 2 years ago

やります

ras0q commented 2 years ago

↓のMessageID取得するの最低でもtraQのAPI10回くらい叩かないといけなくて厳しいかも

type File struct {
    ID             string    `json:"id"  db:"id"`
    Title          string    `json:"title"  db:"title"`
    ComposerID     string    `json:"composer_id"  db:"composer_id"`
    ComposerName   string    `json:"composer_name"  db:"composer_name"`
    MessageID      string    `json:"message_id"  db:"message_id"`
    FavoriteCount  int       `json:"favorite_count"  db:"-"`
    IsFavoriteByMe bool      `json:"is_favorite_by_me"  db:"-"`
    CreatedAt      time.Time `json:"created_at"  db:"created_at"`
}