shorturl

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: GPL-3.0 Imports: 3 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"`
}

func (GenerateURLFastestData) Error added in v1.1.1

func (r GenerateURLFastestData) Error() string

func (GenerateURLFastestData) IsError added in v1.1.1

func (r GenerateURLFastestData) IsError() bool

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

func (GenerateURLFastestResponse) Error added in v1.1.1

func (GenerateURLFastestResponse) IsError added in v1.1.1

func (r GenerateURLFastestResponse) IsError() bool

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接口

func (GenerateURLFastestResult) Error added in v1.1.1

func (r GenerateURLFastestResult) Error() string

func (GenerateURLFastestResult) IsError added in v1.1.1

func (r GenerateURLFastestResult) IsError() bool

Jump to

Keyboard shortcuts

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