Documentation ¶
Index ¶
- func GetPrelink(params *GetPrelinkRequest) ([]string, error)
- type GetPrelinkRequest
- type GetPrelinkResponse
- type SetPrelinkRequest
- type SetPrelinkResponse
- type SetPrelinkResponsedata
- type SetPrelinkResponsedatacheckResult
- type SetPrelinkResponsedatacheckResultflexKey
- type SetPrelinkResponsedatacheckResulthttpsBaikeBaiduCom
- type SetPrelinkResponsedatacheckResulthttpsWwwBaiduCom
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GetPrelinkRequest ¶
type GetPrelinkRequest struct {
AccessToken string // 授权小程序的接口调用凭据
}
GetPrelinkRequest 请求结构体
type GetPrelinkResponse ¶
type SetPrelinkRequest ¶
type SetPrelinkRequest struct { AccessToken string // 授权小程序的接口调用凭据 PrelinkURL string // prelink 链接 }
SetPrelinkRequest 请求结构体
type SetPrelinkResponse ¶
type SetPrelinkResponse struct { Data SetPrelinkResponsedata `json:"data"` // 响应参数 Errno int64 `json:"errno"` // 状态码 ErrMsg string `json:"msg"` // 错误信息 ErrorCode int64 `json:"error_code"` // openapi 错误码 ErrorMsg string `json:"error_msg"` // openapi 错误信息 }
type SetPrelinkResponsedata ¶
type SetPrelinkResponsedata struct { CheckResult SetPrelinkResponsedatacheckResult `json:"checkResult"` // 域名检查返回 Status int64 `json:"status"` // 状态 1-失败 0-成功 }
func SetPrelink ¶
func SetPrelink(params *SetPrelinkRequest) (*SetPrelinkResponsedata, error)
SetPrelink
type SetPrelinkResponsedatacheckResult ¶
type SetPrelinkResponsedatacheckResult struct { FlexKey SetPrelinkResponsedatacheckResultflexKey `json:"flexKey"` // HTTPSBaikeBaiduCom SetPrelinkResponsedatacheckResulthttpsBaikeBaiduCom `json:"https://baike.baidu.com"` // HTTPSWwwBaiduCom SetPrelinkResponsedatacheckResulthttpsWwwBaiduCom `json:"https://www.baidu.com"` // }
Click to show internal directories.
Click to hide internal directories.