Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCookieInitialTips ¶
func GetCookieInitialTips() string
Types ¶
type GameRole ¶
type GameRole struct { Uid string `json:"game_uid"` NickName string `json:"nickname"` Region string `json:"region"` RegionName string `json:"region_name"` }
func GetUserGameRoles ¶
type GameRoleExpedition ¶
type GameRoleList ¶
type GameRoleList struct {
List []GameRole `json:"list"`
}
type GenshinDailyNote ¶
type GenshinDailyNote struct { CurrentResin int `json:"current_resin"` // 当前树脂 MaxResin int `json:"max_resin"` // 最大树脂 ResinRecoveryTime string `json:"resin_recovery_time"` // 树脂恢复剩余时间 FinishedTaskNum int `json:"finished_task_num"` // 委托完成数 TotalTaskNum int `json:"total_task_num"` // 最大委托数 GetTaskExReward bool `json:"is_extra_task_reward_received"` // 是否已打扰凯瑟琳 RemainResinDiscountNum int `json:"remain_resin_discount_num"` // 周本体力减半剩余次数 ResinDiscountNumLimit int `json:"resin_discount_num_limit"` // 周本体力减半总次数 CurrentExpeditionNum int `json:"current_expedition_num"` // 当前派遣数 MaxExpeditionNum int `json:"max_expedition_num"` // 最大派遣数 Expeditions []GameRoleExpedition `json:"expeditions"` // 派遣角色详情 CurrentHomeCoin int `json:"current_home_coin"` // 当前洞天宝钱数 MaxHomeCoin int `json:"max_home_coin"` // 最大洞天宝钱数 HomeCoinRecoveryTime string `json:"home_coin_recovery_time"` // 洞天宝钱恢复剩余时间 }
func GetGenshinDailyNote ¶
func GetGenshinDailyNote(cookie, uid, server string) (*GenshinDailyNote, error)
type MiyoRequest ¶
type MiyoRequest struct {
// contains filtered or unexported fields
}
func NewMiyoRequest ¶
func NewMiyoRequest(url string) *MiyoRequest
func (*MiyoRequest) Execute ¶
func (th *MiyoRequest) Execute() ([]byte, error)
func (*MiyoRequest) Post ¶
func (th *MiyoRequest) Post(data interface{}) (MiyoResponse, error)
func (*MiyoRequest) SetHeader ¶
func (th *MiyoRequest) SetHeader(k, v string)
type MiyoResponse ¶
type MiyoResponse struct { RetCode int `json:"retcode"` Message string `json:"message"` Data json.RawMessage `json:"data"` }
type SignAwardsList ¶
type SignAwardsList struct { Awards []struct { Name string `json:"name"` Count int `json:"cnt"` } `json:"awards"` }
func GetSignAwardsList ¶
func GetSignAwardsList() (*SignAwardsList, error)
Click to show internal directories.
Click to hide internal directories.