Versions in this module Expand all Collapse all v2 v2.0.2 Aug 29, 2022 Changes in this version + type BalanceChangeHistoryItem struct + Extra string + MapId string + OrderUid string + PreOrderId string + ProductName string + ProductUid string + ProductUrl string + PublicKey string + Quantity uint64 + Remark string + UserId string + type BalanceChangeHistoryResp struct + Data []BalanceChangeHistoryItem + Page uint64 + PageSize uint64 + Total uint64 + type BaseUserInfo struct + AvatarUrl string + ManagePowers []string + NickName string + Powers []string + type ChangeInfoSendBodyResp struct + AvatarUrl string + Event string + NickName string + ToUser string + type ChangePhoneSendBodyResp struct + Event string + Phone string + PublicKey string + ToUser string + type GetOrderInfoResp struct + Pay BalanceChangeHistoryItem + PreOrder PreOrderItem + type HitImgResp struct + Success bool + type HitTextResp struct + Msg string + Success bool + type Instance struct + Host string + Prefix string + PublicKey string + SecretKey string + var Sdk Instance + func New(publicKey, secretKey string) Instance + func (c *Instance) ChangeUserPower(data PowerChangeReq) (bool, error) + func (c *Instance) CheckSign(sign, randomStr, timeUnix string) bool + func (c *Instance) GetUploadKey() (UploadKeyResp, error) + func (c *Instance) HitImage(imageUrl string) (*HitImgResp, error) + func (c *Instance) HitText(content string) (*HitTextResp, error) + func (c *Instance) OrderIdGetInfo(orderId string) (GetOrderInfoResp, error) + func (c *Instance) PreOrderIdGetSuccessList(preOrderId string, page, pageSize uint64) (*BalanceChangeHistoryResp, error) + func (c *Instance) ProductPreOrder(data PreOrder) (PreOrderResp, error) + func (c *Instance) RunTr(data ProductReceipt, receipt bool) (ProductPayResp, error, int) + func (c *Instance) SetHost(host string) + func (c *Instance) Sign() (string, string, string) + func (c *Instance) UidGetUserInfo(uid string) (UidGetUserResp, error) + func (c *Instance) UidGetUserPowerSetting(uid string, eng string) (PowerSettingResp, error) + func (c *Instance) UploadImage(imgPath string, maxWidth int) (UploadImageResp, error) + func (c *Instance) UrlGen(prefix string, p string) string + type JsonSchemaReq struct + Data string + FormEng string + FormId string + InjectData string + SendSignInfo SignBase + SendUserInfo struct{ ... } + type PowerChangeBodyResp struct + Open bool + Reason string + type PowerChangeReq struct + Eng string + Open bool + Reason string + type PowerNeedVerifyBodyResp struct + type PowerRespBase struct + Eng string + Uid string + type PowerSettingChangeBodyResp struct + Body string + type PowerSettingReq struct + Eng string + type PowerSettingResp struct + Data string + UpdateAt string + type PreOrder struct + Count uint64 + Desc string + ExpireTime time.Time + Extra string + ImgUrl string + Name string + PreviewUrl []string + Price uint64 + Substance string + Uid string + type PreOrderItem struct + AppId string + ExpireTime time.Time + Extra string + ProductInfo ProductInfo + Substance string + type PreOrderResp struct + PreOrderId string + type ProductInfo struct + Count uint64 + Desc string + ImgUrl string + Name string + PreviewUrl []string + Price uint64 + Uid string + type ProductPayBase struct + ProductName string + ProductPrice uint64 + ProductUid string + ProductUrl string + Remark string + type ProductPayResp struct + Detail string + OrderNo string + type ProductPaySendBodyResp struct + Event string + Extra string + OrderNo string + PreOrderId string + Product ProductInfo + Remark string + Substance string + ToUser string + type ProductReceipt struct + Uid string + type RespBase struct + CreateAt time.Time + Id string + UpdateAt time.Time + type SignBase struct + RandomStr string + Sign string + T string + func (c *SignBase) GenSign() + type TrSendBodyResp struct + DetailUrl string + Event string + Name string + OrderNo string + PayUser string + Price uint64 + Remark string + ToUser string + type UidGetUserReq struct + Uid string + type UidGetUserResp struct + Info BaseUserInfo + User UserInfo + func (c *UidGetUserResp) HasManagePower(name string) bool + func (c *UidGetUserResp) HasPower(name string) bool + type UploadImageResp struct + Origin string + Thumbnail string + type UploadKeyResp struct + ExpiredTime uint64 + Prefix string + SecretID string + SecretKey string + SessionToken string + Visit string + type UserInfo struct + Balance uint64 + Id string + PromoteUserId string + TelPhone string + UniqueId string Other modules containing this package github.com/23233/sso