Documentation ¶
Index ¶
- Constants
- func FarmSign(love Love) (*http.Response, error)
- func GetLoveSpaceId(body string) string
- func GetLoveSpaceIdRaw(accessToken, appKey string) (*http.Response, error)
- func HomePost(accessToken string, taskType int, loveSpaceId string) (*http.Response, error)
- func QueryTreeInfo(accessToken, appKey string) ([]byte, error)
- func RandomHouse(accessToken string) (string, bool)
- func ServerRun(path, port string, server bool)
- func TreePost(accessToken, appKey string, op int) (*http.Response, error)
- func Visit(accessToken, loveSpaceId string) (*http.Response, error)
- type BuyItemStatus
- type Data
- type Love
- type PetStatus
- type PetTaskResult
- type QueryItem
- type Sig
- type WlHttpClient
Constants ¶
View Source
const KEY = "8b5b6eca8a9d1d1f"
Variables ¶
This section is empty.
Functions ¶
func GetLoveSpaceId ¶
func GetLoveSpaceIdRaw ¶
我们的家
func QueryTreeInfo ¶
func RandomHouse ¶
Types ¶
type BuyItemStatus ¶
type BuyItemStatus struct { Result int `json:"result"` Messages []struct { StallItem struct { BuyerHeadURL string `json:"buyer_head_url"` BuyerFarmName string `json:"buyer_farm_name"` ID int `json:"id"` } `json:"stall_item,omitempty"` OpTime int64 `json:"op_time"` MsgType int `json:"msg_type"` Warehouses []struct { Category int `json:"category"` ItemsInc []struct { ItemID int `json:"item_id"` Count int `json:"count"` } `json:"items_inc"` } `json:"warehouses,omitempty"` FarmID string `json:"farm_id,omitempty"` GoldCost int `json:"gold_cost,omitempty"` } `json:"messages"` }
func BuyItem ¶
func BuyItem(accessToken, sellerFarmId string, stallSaleId int) BuyItemStatus
type Love ¶
type Love struct { AccessToken string `json:"access_token"` AppKey string `json:"app_key"` Mobile string `json:"mobile"` LoverMobile string `json:"lover_mobile"` DayuAppKey string `json:"dayu_app_key"` DayuAppSecret string `json:"dayu_app_secret"` DayuSunlightTemplateCode string `json:"dayu_sunlight_template_code"` DayuWaterTemplateCode string `json:"dayu_water_template_code"` DayuHomeTemplateCode string `json:"dayu_home_template_code"` }
配置文件
type PetStatus ¶
type PetStatus struct { Result int `json:"result"` Messages []struct { MsgType int `json:"msg_type"` Pets []struct { PetID int `json:"pet_id"` PetTasks []struct { Count int `json:"count"` TaskType int `json:"task_type"` RemainTime int `json:"remain_time"` } `json:"pet_tasks"` } `json:"pets,omitempty"` Count int `json:"count,omitempty"` } `json:"messages"` }
func GetPetStatus ¶
type PetTaskResult ¶
type PetTaskResult struct { Messages []struct { Count int `json:"count"` MsgType int `json:"msg_type"` PetID int `json:"pet_id"` RemainTime int `json:"remain_time"` TaskType int `json:"task_type"` } `json:"messages"` Result int `json:"result"` ErrorMsg string `json:"error_msg"` }
func DoPetTask ¶
func DoPetTask(accessToken, petId, taskType string) PetTaskResult
type QueryItem ¶
type QueryItem struct { Result int `json:"result"` Messages []struct { OpTime int64 `json:"op_time"` MsgType int `json:"msg_type"` AdItems []struct { ItemID int `json:"item_id"` Count int `json:"count"` OpTime int64 `json:"op_time"` NeedHelp int `json:"need_help"` SellerFarmID string `json:"seller_farm_id"` HeadURLFamale string `json:"head_url_famale"` HeadURLMale string `json:"head_url_male"` ID int `json:"id"` FarmName string `json:"farm_name"` Coin int `json:"coin"` } `json:"ad_items"` } `json:"messages"` }
func QueryItems ¶
type WlHttpClient ¶
func NewWlHttpClient ¶
func NewWlHttpClient() *WlHttpClient
Click to show internal directories.
Click to hide internal directories.