Documentation
¶
Index ¶
- Variables
- type CityResult
- type Controller
- type CosImageInfoDto
- type Detail
- type KeyAuthResult
- type M
- type Service
- func (x *Service) Cos() (_ *cos.Client)
- func (x *Service) CosImageInfo(ctx context.Context, url string) (r M, err error)
- func (x *Service) CosPresigned() (_ M, err error)
- func (x *Service) GetCity(ctx context.Context, ip string) (r *CityResult, err error)
- func (x *Service) KeyAuth(source string) (r *KeyAuthResult, err error)
- func (x *Service) SmsSend(ctx context.Context, sign string, tid string, params []string, phone []string) (err error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type CityResult ¶ added in v0.1.0
type CityResult struct {
Msg string `json:"msg"`
Success bool `json:"success"`
Code int `json:"code"`
Data struct {
OrderNo string `json:"orderNo"`
Result Detail `json:"result"`
} `json:"data"`
}
func (*CityResult) GetDetail ¶ added in v0.1.0
func (x *CityResult) GetDetail() Detail
type Controller ¶
type Controller struct {
TencentService *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,required"`
}
type Detail ¶ added in v0.1.0
type Detail struct {
Continent string `bson:"continent" json:"continent"`
Country string `bson:"country" json:"country"`
Prov 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 KeyAuthResult ¶ added in v0.1.0
type Service ¶
func (*Service) CosImageInfo ¶ added in v0.1.0
func (*Service) CosPresigned ¶
Click to show internal directories.
Click to hide internal directories.