express

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiKey string = config.Param("KDN_KEY")
View Source
var EBusinessID string = config.Param("KDN_ID")
View Source
var Url string = config.Param("KDN_URL")

Functions

func CreateSearchLog

func CreateSearchLog(shipperCode string, logisticCode string, isCache int8, isSuccess int8, result string, ip string)

添加查询记录

func ExpressCompanyAll

func ExpressCompanyAll(c *gin.Context) result.Response

获取全部快递公司

func NewExpressSearch added in v1.0.3

func NewExpressSearch(logisticCode string) (string, error)

func RecentSearch

func RecentSearch(c *gin.Context) result.Response

获取最近的搜索记录

func SendPost added in v1.0.3

func SendPost(apiUrl string, resource string, headers map[string]string, postValues map[string]string) (string, error)

Types

type SearchService

type SearchService struct {
	ShipperCode  string `json:"shipper_code"`  // 快递公司编码
	LogisticCode string `json:"logistic_code"` // 快递单号
}

func (*SearchService) Search added in v1.0.3

func (searchService *SearchService) Search(c *gin.Context) (bool, result.Response)

查询快递

Jump to

Keyboard shortcuts

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