Documentation
¶
Index ¶
Constants ¶
View Source
const ( Addr = "https://www.douyu.com" RoomYYF = 9999 GiftGlowSticks = 268 // 粉丝荧光棒 GiftFansGlowSticks = 2358 // 钻粉粉丝荧光棒 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Badge ¶
type Badge struct {
Room int // 房间号
Anchor string // 主播名称
Name string // 名称
Level int // 等级
Intimacy float64 // 亲密度
Rank int // 排名
AccessAt time.Time // 获得时间
}
Badge 徽章
type Client ¶
type Client struct {
Uid string // cookie: acf_uid
Auth string // cookie: acf_auth
Stk string // cookie: acf_stk
Ltkid string // cookie: acf_ltkid
Username string // cookie: acf_username
// contains filtered or unexported fields
}
func (*Client) ListBadges ¶
type Gift ¶
type Gift struct {
Id int `json:"id"` // id
Name string `json:"name"` // 名称
Count int `json:"count"` // 现有数量
Exp int `json:"exp"` // 经验
Intimate int `json:"intimate"` // 亲密度
Met int `json:"met"` // 过期时间
Price int `json:"price" table:",ignored"` // 价值
PriceType int `json:"priceType" table:",ignored"` // 价值类型(不确定)2-免费礼物
PropType int `json:"propType" table:",ignored"` // 礼物类型(不确定)2-免费礼物 5-等级礼包 6-分区喇叭
}
func (*Gift) TodayExpired ¶
Click to show internal directories.
Click to hide internal directories.