optimization

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPrelink(params *GetPrelinkRequest) ([]string, error)

GetPrelink

Types

type GetPrelinkRequest

type GetPrelinkRequest struct {
	AccessToken string // 授权小程序的接口调用凭据
}

GetPrelinkRequest 请求结构体

type GetPrelinkResponse

type GetPrelinkResponse struct {
	Data      []string `json:"data"`       // 响应参数
	Errno     int64    `json:"errno"`      // 状态码
	ErrMsg    string   `json:"msg"`        // 错误信息
	ErrorCode int64    `json:"error_code"` // openapi 错误码
	ErrorMsg  string   `json:"error_msg"`  // openapi 错误信息
}

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

type SetPrelinkResponsedatacheckResultflexKey

type SetPrelinkResponsedatacheckResultflexKey struct {
	FailReason []string `json:"failReason"` //
	Status     string   `json:"status"`     //
}

type SetPrelinkResponsedatacheckResulthttpsBaikeBaiduCom

type SetPrelinkResponsedatacheckResulthttpsBaikeBaiduCom struct {
	FailReason []string `json:"failReason"` // 失败原因
	Status     int64    `json:"status"`     // 状态 1-失败 0-成功
}

type SetPrelinkResponsedatacheckResulthttpsWwwBaiduCom

type SetPrelinkResponsedatacheckResulthttpsWwwBaiduCom struct {
	FailReason []string `json:"failReason"` // 失败原因
	Status     int64    `json:"status"`     // 状态 1-失败 0-成功
}

Jump to

Keyboard shortcuts

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