Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultFilePath = "../config.toml"
Variables ¶
This section is empty.
Functions ¶
func GetEditionIds ¶
func GetEditionIds() []int64
func ReadConfig ¶
func ReadConfig() *toml.Tree
Types ¶
type Game ¶
type Game struct { ID uint `gorm:"primarykey" json:"id"` CreatedAt time.Time `json:"_"` UpdatedAt time.Time `json:"_"` DeletedAt time.Time `json:"_"` Title string `gorm:"type:varchar(100);unique_index" json:"title"` Cover string `gorm:"type:varchar(200)" json:"cover"` ReleaseDate string `gorm:"type:varchar(200)" json:"release_date"` // 原谅我 Rating float64 `gorm:"type:decimal(10, 2)" json:"rating"` Area string `gorm:"type:varchar(100)" json:"area"` Languages string `gorm:"type:varchar(100)" json:"languages"` Platforms string `gorm:"type:varchar(100)" json:"platforms"` DoubanID int `gorm:"type:int" json:"douban_id"` Price float64 `gorm:"type:decimal(10, 2)" json:"price"` Quantity int `gorm:"type:int" json:"quantity"` Desc string `gorm:"type:varchar(200)" json:"desc"` Subscribed bool `sql:"-" json:"subscribed"` }
func (*Game) MarshalJSON ¶
type GetAccessTokenResp ¶
type SubscribeData ¶
type SubscribeReq ¶
type SubscribeReq struct { AccessToken string `json:"access_token"` Touser string `json:"touser"` TemplateId int `json:"template_id"` Data SubscribeData `json:"data"` }
type Subscription ¶
type WeChatAuthResp ¶
Click to show internal directories.
Click to hide internal directories.