shorturl

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateURLFastestData

type GenerateURLFastestData struct {
	Result *GenerateURLFastestResult `json:"generatejdurl_result,omitempty"`
}

type GenerateURLFastestRequest

type GenerateURLFastestRequest struct {
	api.BaseRequest
	Domain      string `json:"domain"`      // 3.cn
	Length      uint   `json:"length"`      // 短码长度,最小8位:100天,9位365天
	RealUrl     string `json:"realUrl"`     // 长域名
	ExpiredDays uint   `json:"expiredDays"` // 0为有访问自动续期,8位最大100天,9位最大365天
}

type GenerateURLFastestResponse

type GenerateURLFastestResponse struct {
	ErrorResp *api.ErrorResponnse     `json:"error_response,omitempty"`
	Data      *GenerateURLFastestData `json:"jingdong_shorturl_generateURLFastest_responce,omitempty"`
}

type GenerateURLFastestResult

type GenerateURLFastestResult struct {
	Code     string `json:"code,omitempty"`
	Message  string `json:"codeText,omitempty"`
	ShortUrl string `json:"shortUrl,omitempty"`
	RealUrl  string `json:"realUrl,omitempty"`
	Username string `json:"username,omitempty"`
	Ts       int64  `json:"ts,omitempty"`
}

func GenerateURLFastest

func GenerateURLFastest(req *GenerateURLFastestRequest) (*GenerateURLFastestResult, error)

生成短域新的api接口

Jump to

Keyboard shortcuts

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