tencent

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2023 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Provides = wire.NewSet(
	wire.Struct(new(Controller), "*"),
	wire.Struct(new(Service), "*"),
)

Functions

This section is empty.

Types

type Controller

type Controller struct {
	TencentX *Service
}

func (*Controller) CosImageInfo added in v0.1.0

func (x *Controller) CosImageInfo(ctx context.Context, c *app.RequestContext)

func (*Controller) CosPresigned

func (x *Controller) CosPresigned(_ context.Context, c *app.RequestContext)

type CosImageInfoDto added in v0.1.0

type CosImageInfoDto struct {
	Url string `query:"url" vd:"required"`
}

type IpResult added in v0.1.14

type IpResult interface {
	GetMsg() string
	IsSuccess() bool
	GetDetail() interface{}
}

type Ipv4Detail added in v0.1.14

type Ipv4Detail struct {
	Continent string `bson:"continent" json:"continent"`
	Country   string `bson:"country" json:"country"`
	Province  string `bson:"prov" json:"prov"`
	City      string `bson:"city" json:"city"`
	Owner     string `bson:"owner" json:"owner"`
	ISP       string `bson:"isp" json:"isp"`
	Areacode  string `bson:"areacode" json:"areacode"`
	Asnumber  string `bson:"asnumber" json:"asnumber"`
	Adcode    string `bson:"adcode" json:"adcode"`
	Zipcode   string `bson:"zipcode" json:"zipcode"`
	Timezone  string `bson:"timezone" json:"timezone"`
	Accuracy  string `bson:"accuracy" json:"accuracy"`
	Lat       string `bson:"lat" json:"lat"`
	Lng       string `bson:"lng" json:"lng"`
	Radius    string `bson:"radius" json:"radius"`
	Source    string `bson:"source" json:"source"`
}

type Ipv4Result added in v0.1.14

type Ipv4Result struct {
	Msg     string `json:"msg"`
	Success bool   `json:"success"`
	Code    int    `json:"code"`
	Data    struct {
		OrderNo string     `json:"orderNo"`
		Result  Ipv4Detail `json:"result"`
	} `json:"data"`
}

func (*Ipv4Result) GetDetail added in v0.1.14

func (x *Ipv4Result) GetDetail() interface{}

func (*Ipv4Result) GetMsg added in v0.1.14

func (x *Ipv4Result) GetMsg() string

func (*Ipv4Result) IsSuccess added in v0.1.14

func (x *Ipv4Result) IsSuccess() bool

type Ipv6Detail added in v0.1.14

type Ipv6Detail struct {
	Continent string `bson:"continent" json:"continent"`
	Country   string `bson:"country" json:"country"`
	Province  string `bson:"prov" json:"province"`
	City      string `bson:"city" json:"city"`
	Owner     string `bson:"owner" json:"owner"`
	ISP       string `bson:"isp" json:"isp"`
	Areacode  string `bson:"areacode" json:"areacode"`
	Asnumber  string `bson:"asnumber" json:"asnumber"`
	Adcode    string `bson:"adcode" json:"adcode"`
	Zipcode   string `bson:"zipcode" json:"zipcode"`
	Timezone  string `bson:"timezone" json:"timezone"`
	Accuracy  string `bson:"accuracy" json:"accuracy"`
	Lat       string `bson:"lat" json:"lat"`
	Lng       string `bson:"lng" json:"lng"`
	Radius    string `bson:"radius" json:"radius"`
	Source    string `bson:"source" json:"source"`
}

type Ipv6Result added in v0.1.14

type Ipv6Result struct {
	Msg     string `json:"msg"`
	Success bool   `json:"success"`
	Code    int    `json:"code"`
	Data    struct {
		OrderNo string     `json:"orderNo"`
		Result  Ipv6Detail `json:"result"`
	} `json:"data"`
}

func (*Ipv6Result) GetDetail added in v0.1.14

func (x *Ipv6Result) GetDetail() interface{}

func (*Ipv6Result) GetMsg added in v0.1.14

func (x *Ipv6Result) GetMsg() string

func (*Ipv6Result) IsSuccess added in v0.1.14

func (x *Ipv6Result) IsSuccess() bool

type KeyAuthResult added in v0.1.0

type KeyAuthResult struct {
	Date string
	Txt  string
}

type M added in v0.1.0

type M = map[string]interface{}

type Service

type Service struct {
	*common.Inject
}

func (*Service) Cos added in v0.1.0

func (x *Service) Cos() (_ *cos.Client)

func (*Service) CosImageInfo added in v0.1.0

func (x *Service) CosImageInfo(ctx context.Context, url string) (r M, err error)

func (*Service) CosPresigned

func (x *Service) CosPresigned() (_ M, err error)

func (*Service) GetIpv4 added in v0.1.9

func (x *Service) GetIpv4(ctx context.Context, ip string) (_ IpResult, err error)

func (*Service) GetIpv6 added in v0.1.9

func (x *Service) GetIpv6(ctx context.Context, ip string) (_ IpResult, err error)

func (*Service) KeyAuth added in v0.1.0

func (x *Service) KeyAuth(source string, id string, key string) (r *KeyAuthResult, err error)

func (*Service) SmsSend added in v0.1.0

func (x *Service) SmsSend(ctx context.Context, sign string, tid string, params []string, phone []string) (err error)

func (*Service) TC3Authorization added in v0.1.24

func (x *Service) TC3Authorization(option TC3Option) string

type TC3Option added in v0.1.24

type TC3Option struct {
	Service   string
	Headers   map[string]string
	Timestamp int64
	Body      interface{}
}

Jump to

Keyboard shortcuts

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