web

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParamSign

func ParamSign(param map[string]string) map[string]string

ParamSign

@Description: 向参数映射中添加 wts 和 w_rid 鉴权签名
@param param 需要加签名的参数映射
@return map[string]interface{}

func UpdateWbiKey

func UpdateWbiKey()

UpdateWbiKey

@Description: 更新缓存中的 wbi 鉴权所需参数 img_key 和 sub_key

Types

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL