package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Dec 28, 2023
License: GPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
ParamSign
@Description: 向参数映射中添加 wts 和 w_rid 鉴权签名
@param param 需要加签名的参数映射
@return map[string]interface{}
UpdateWbiKey
@Description: 更新缓存中的 wbi 鉴权所需参数 img_key 和 sub_key
type NavData struct {
IsLogin bool `json:"isLogin"`
WbiImg NavWbiImg `json:"wbi_img"`
}
type NavResp struct {
Code int `json:"code"`
Message string `json:"message"`
TTL int `json:"ttl"`
Data NavData `json:"data"`
}
type NavWbiImg struct {
ImgURL string `json:"img_url"`
SubURL string `json:"sub_url"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.