sdk

package
v0.0.76 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

*

@author: taco
@Date: 2023/10/27
@Time: 10:29

*

Index

Constants

This section is empty.

Variables

View Source
var VersionF embed.FS

Functions

This section is empty.

Types

type AIot added in v0.0.69

type AIot struct {
	aiot.AIotJStyleRpcServiceClient
	Num    int64
	Status int
	Retry  int
}

func NewAIot added in v0.0.69

func NewAIot(RpcClientConf *zrpc.RpcClientConf) *AIot

type Auth

type Auth struct {
	shield.ShieldRpcServiceClient
	Num     int64
	Timeout time.Duration
}

func NewAuth

func NewAuth(RpcClientConf *zrpc.RpcClientConf) *Auth

func (*Auth) RequestLogin

func (c *Auth) RequestLogin(AccessKeyId, AccessKeySecret string) (*shield.AuthApiResp, error)

func (*Auth) RequestPing

func (c *Auth) RequestPing() (*shield.PingResp, error)

func (*Auth) RequestRefresh

func (c *Auth) RequestRefresh(AccessKeyId, RefreshToken string) (*shield.RefreshTokenResp, error)

type CloudC

type CloudC struct {
	cloudc.CloudCRpcServiceClient
	Num    int64
	Status int
	Retry  int
}

func NewCloudC

func NewCloudC(RpcClientConf *zrpc.RpcClientConf) *CloudC

type Config

type Config struct {
	AutoRetry        bool          `default:"false"`
	MaxRetryTimes    int           `default:"3"`
	Debug            bool          `default:"false"`
	Timeout          time.Duration `default:"5000"`
	AutoRefreshToken bool          `default:"true"`
	AccessKeyId      string
	AccessKeySecret  string
	RpcClientConf    *zrpc.RpcClientConf
}

func DefaultConfig

func DefaultConfig(AccessKeyId, AccessKeySecret string, Endpoints []string) (config *Config)

func NewConfig

func NewConfig(AccessKeyId, AccessKeySecret string, Endpoints []string) (config *Config)

func (*Config) WithAccessKeyId

func (c *Config) WithAccessKeyId(AccessKeyId string) *Config

func (*Config) WithAccessKeySecret

func (c *Config) WithAccessKeySecret(AccessKeySecret string) *Config

func (*Config) WithAutoRefreshToken

func (c *Config) WithAutoRefreshToken(AutoRefreshToken bool) *Config

func (*Config) WithAutoRetry

func (c *Config) WithAutoRetry(isAutoRetry bool) *Config

func (*Config) WithDebug

func (c *Config) WithDebug(Debug bool) *Config

func (*Config) WithMaxRetryTimes

func (c *Config) WithMaxRetryTimes(MaxRetryTimes int) *Config

func (*Config) WithTimeout

func (c *Config) WithTimeout(Timeout time.Duration) *Config

type H5 added in v0.0.51

type H5 struct {
	h5.H5RpcServiceClient
	Num    int64
	Status int
	Retry  int
}

func NewH5 added in v0.0.52

func NewH5(RpcClientConf *zrpc.RpcClientConf) *H5

type Mix added in v0.0.50

type Mix struct {
	mix.MixRpcServiceClient
	Num    int64
	Status int
	Retry  int
}

func NewMix added in v0.0.50

func NewMix(RpcClientConf *zrpc.RpcClientConf) *Mix

type Sdk

type Sdk struct {
	Version             string
	Config              *Config
	Status              int
	AccessToken         string
	AccessTokenExpires  int64
	RefreshToken        string
	RefreshTokenExpires int64
	RetryTimes          int
	Deadline            int64
	Context             context.Context
	Auth                *Auth
	CloudC              *CloudC
	ThirdParty          *ThirdParty
	Sls                 *Sls
	Mix                 *Mix
	H5                  *H5
	Transactions        *Transactions
	AIot                *AIot
}

func NewSdk

func NewSdk() *Sdk

func (*Sdk) AIotCheckStatus added in v0.0.69

func (s *Sdk) AIotCheckStatus() *Sdk

func (*Sdk) AIotJStyleDeviceHeartOneParse added in v0.0.69

func (s *Sdk) AIotJStyleDeviceHeartOneParse(in *aiot.JStyleDeviceHeartOneParseReq) (*aiot.JStyleDeviceHeartOneParseResp, error)

func (*Sdk) AIotJStyleDeviceHeartParse added in v0.0.69

func (s *Sdk) AIotJStyleDeviceHeartParse(in *aiot.JStyleDeviceHeartParseReq) (*aiot.JStyleDeviceHeartParseResp, error)

func (*Sdk) AIotJStyleDeviceSleepParse added in v0.0.69

func (s *Sdk) AIotJStyleDeviceSleepParse(in *aiot.JStyleDeviceSleepParseReq) (*aiot.JStyleDeviceSleepParseResp, error)

func (*Sdk) AIotJStyleDeviceStepParse added in v0.0.73

func (s *Sdk) AIotJStyleDeviceStepParse(in *aiot.JStyleDeviceStepParseReq) (*aiot.JStyleDeviceStepParseResp, error)

func (*Sdk) ArticleAttaFileCreate added in v0.0.32

func (c *Sdk) ArticleAttaFileCreate(in *h5.CreateAttaFileReq) (*h5.CreateResponse, error)

func (*Sdk) ArticleAttaFileDelete added in v0.0.32

func (c *Sdk) ArticleAttaFileDelete(in *h5.DeleteReq) (*h5.Response, error)

func (*Sdk) ArticleAttaFileDeleteIds added in v0.0.32

func (c *Sdk) ArticleAttaFileDeleteIds(in *h5.DeleteIdsReq) (*h5.Response, error)

func (*Sdk) ArticleAttaFileQuery added in v0.0.32

func (c *Sdk) ArticleAttaFileQuery(in *h5.QueryReq) (*h5.QueryAttaFileResp, error)

func (*Sdk) ArticleAttaFileQueryList added in v0.0.32

func (c *Sdk) ArticleAttaFileQueryList(in *h5.QueryAttaFileListReq) (*h5.QueryAttaFileListResp, error)

func (*Sdk) ArticleAttachmentCreate added in v0.0.32

func (c *Sdk) ArticleAttachmentCreate(in *h5.CreateAttachmentReq) (*h5.CreateResponse, error)

func (*Sdk) ArticleAttachmentDelete added in v0.0.32

func (c *Sdk) ArticleAttachmentDelete(in *h5.DeleteReq) (*h5.Response, error)

func (*Sdk) ArticleAttachmentDeleteIds added in v0.0.32

func (c *Sdk) ArticleAttachmentDeleteIds(in *h5.DeleteIdsReq) (*h5.Response, error)

func (*Sdk) ArticleAttachmentQuery added in v0.0.32

func (c *Sdk) ArticleAttachmentQuery(in *h5.QueryReq) (*h5.QueryAttachmentResp, error)

func (*Sdk) ArticleAttachmentQueryList added in v0.0.32

func (c *Sdk) ArticleAttachmentQueryList(in *h5.QueryAttachmentListReq) (*h5.QueryAttachmentListResp, error)

func (*Sdk) ArticleAttachmentUpdate added in v0.0.32

func (c *Sdk) ArticleAttachmentUpdate(in *h5.UpdateAttachmentReq) (*h5.Response, error)

func (*Sdk) ArticleBindArticleLabels added in v0.0.18

func (c *Sdk) ArticleBindArticleLabels(in *h5.UpdateBindLabelsReq) (*h5.Response, error)

func (*Sdk) ArticleCreate added in v0.0.16

func (c *Sdk) ArticleCreate(in *h5.CreateArticleReq) (*h5.CreateArticleResp, error)

func (*Sdk) ArticleDelete added in v0.0.16

func (c *Sdk) ArticleDelete(in *h5.DeleteReq) (*h5.Response, error)

func (*Sdk) ArticleDeleteIds added in v0.0.16

func (c *Sdk) ArticleDeleteIds(in *h5.DeleteIdsReq) (*h5.Response, error)

func (*Sdk) ArticleQuery added in v0.0.16

func (c *Sdk) ArticleQuery(in *h5.QueryReq) (*h5.QueryArticleResp, error)

func (*Sdk) ArticleQueryList added in v0.0.16

func (c *Sdk) ArticleQueryList(in *h5.QueryArticleListReq) (*h5.QueryArticleListResp, error)

func (*Sdk) ArticleQueryListQueryIds added in v0.0.47

func (c *Sdk) ArticleQueryListQueryIds(in *h5.QueryIdsReq) (*h5.QueryArticleListResp, error)

func (*Sdk) ArticleQueryRecommendList added in v0.0.41

func (c *Sdk) ArticleQueryRecommendList(in *h5.QueryReq) (*h5.QueryRecommendListResp, error)

func (*Sdk) ArticleUnBindArticleLabels added in v0.0.18

func (c *Sdk) ArticleUnBindArticleLabels(in *h5.UpdateBindLabelsReq) (*h5.Response, error)

func (*Sdk) ArticleUpdate added in v0.0.16

func (c *Sdk) ArticleUpdate(in *h5.UpdateArticleReq) (*h5.Response, error)

func (*Sdk) ArticleUpdateStatus added in v0.0.16

func (c *Sdk) ArticleUpdateStatus(in *h5.UpdateStatusReq) (*h5.Response, error)

func (*Sdk) AuthFail

func (c *Sdk) AuthFail(err error)

func (*Sdk) AuthLogin

func (c *Sdk) AuthLogin() (*Sdk, error)

func (*Sdk) AuthPing

func (c *Sdk) AuthPing() *Sdk

func (*Sdk) AuthRefresh

func (c *Sdk) AuthRefresh() (*Sdk, error)

func (*Sdk) AuthSuccess

func (c *Sdk) AuthSuccess()

func (*Sdk) AutoAuth

func (c *Sdk) AutoAuth() *Sdk

func (*Sdk) AutoRefresh

func (c *Sdk) AutoRefresh() *Sdk

func (*Sdk) CloudCCaptchaConfigGet added in v0.0.2

func (c *Sdk) CloudCCaptchaConfigGet(in *cloudc.ConfigGetParams) (*cloudc.CaptchaConfigGetResp, error)

func (*Sdk) CloudCCaptchaConfigGetAll added in v0.0.2

func (c *Sdk) CloudCCaptchaConfigGetAll() (*cloudc.CaptchaConfigGetAllResp, error)

func (*Sdk) CloudCCaptchaConfigSet added in v0.0.2

func (c *Sdk) CloudCCaptchaConfigSet(in *cloudc.CaptchaConfigSetParams) (*cloudc.ConfigResp, error)

func (*Sdk) CloudCCheckStatus

func (c *Sdk) CloudCCheckStatus() *Sdk

func (*Sdk) CloudCDouyinConfigGet added in v0.0.36

func (c *Sdk) CloudCDouyinConfigGet(in *cloudc.ConfigGetParams) (*cloudc.DouyinConfigGetResp, error)

func (*Sdk) CloudCDouyinConfigGetAll added in v0.0.36

func (c *Sdk) CloudCDouyinConfigGetAll() (*cloudc.DouyinConfigGetAllResp, error)

func (*Sdk) CloudCDouyinConfigSet added in v0.0.36

func (c *Sdk) CloudCDouyinConfigSet(in *cloudc.DouyinConfigSetParams) (*cloudc.ConfigResp, error)

func (*Sdk) CloudCEmsConfigGet

func (c *Sdk) CloudCEmsConfigGet(in *cloudc.ConfigGetParams) (*cloudc.EmsConfigGetResp, error)

func (*Sdk) CloudCEmsConfigGetAll

func (c *Sdk) CloudCEmsConfigGetAll() (*cloudc.EmsConfigGetAllResp, error)

func (*Sdk) CloudCEmsConfigSet

func (c *Sdk) CloudCEmsConfigSet(in *cloudc.EmsConfigSetParams) (*cloudc.ConfigResp, error)

func (*Sdk) CloudCOssConfigGet

func (c *Sdk) CloudCOssConfigGet(in *cloudc.ConfigGetParams) (*cloudc.OssConfigGetResp, error)

func (*Sdk) CloudCOssConfigGetAll

func (c *Sdk) CloudCOssConfigGetAll() (*cloudc.OssConfigGetAllResp, error)

func (*Sdk) CloudCOssConfigSet

func (c *Sdk) CloudCOssConfigSet(in *cloudc.OssConfigSetParams) (*cloudc.ConfigResp, error)

func (*Sdk) CloudCSlsConfigGet added in v0.0.22

func (c *Sdk) CloudCSlsConfigGet(in *cloudc.ConfigGetParams) (*cloudc.SlsConfigGetResp, error)

func (*Sdk) CloudCSlsConfigGetAll added in v0.0.22

func (c *Sdk) CloudCSlsConfigGetAll() (*cloudc.SlsConfigGetAllResp, error)

func (*Sdk) CloudCSlsConfigSet added in v0.0.22

func (c *Sdk) CloudCSlsConfigSet(in *cloudc.SlsConfigSetParams) (*cloudc.ConfigResp, error)

func (*Sdk) CloudCSmsConfigGet

func (c *Sdk) CloudCSmsConfigGet(in *cloudc.ConfigGetParams) (*cloudc.SmsConfigGetResp, error)

func (*Sdk) CloudCSmsConfigGetAll

func (c *Sdk) CloudCSmsConfigGetAll() (*cloudc.SmsConfigGetAllResp, error)

func (*Sdk) CloudCSmsConfigSet

func (c *Sdk) CloudCSmsConfigSet(in *cloudc.SmsConfigSetParams) (*cloudc.ConfigResp, error)

func (*Sdk) CloudCSystemConfigGet added in v0.0.10

func (c *Sdk) CloudCSystemConfigGet(in *cloudc.ConfigGetParams) (*cloudc.SystemConfigGetResp, error)

func (*Sdk) CloudCSystemConfigGetAll added in v0.0.10

func (c *Sdk) CloudCSystemConfigGetAll() (*cloudc.SystemConfigGetAllResp, error)

func (*Sdk) CloudCSystemConfigSet added in v0.0.10

func (c *Sdk) CloudCSystemConfigSet(in *cloudc.SystemConfigSetParams) (*cloudc.ConfigResp, error)

func (*Sdk) CloudCWechatConfigGet

func (c *Sdk) CloudCWechatConfigGet(in *cloudc.ConfigGetParams) (*cloudc.WechatConfigGetResp, error)

func (*Sdk) CloudCWechatConfigGetAll

func (c *Sdk) CloudCWechatConfigGetAll() (*cloudc.WechatConfigGetAllResp, error)

func (*Sdk) CloudCWechatConfigSet

func (c *Sdk) CloudCWechatConfigSet(in *cloudc.WechatConfigSetParams) (*cloudc.ConfigResp, error)

func (*Sdk) DYMiniGameCode2Token added in v0.0.51

func (*Sdk) DYMiniGameOAAccessToken added in v0.0.51

func (*Sdk) GetVersion added in v0.0.49

func (c *Sdk) GetVersion() string

func (*Sdk) H5CheckStatus added in v0.0.52

func (c *Sdk) H5CheckStatus() *Sdk

func (*Sdk) InitAIot added in v0.0.69

func (s *Sdk) InitAIot() *Sdk

func (*Sdk) InitAuth

func (c *Sdk) InitAuth() *Sdk

func (*Sdk) InitCloudC

func (c *Sdk) InitCloudC() *Sdk

func (*Sdk) InitH5 added in v0.0.52

func (c *Sdk) InitH5() *Sdk

func (*Sdk) InitMix added in v0.0.50

func (s *Sdk) InitMix() *Sdk

func (*Sdk) InitSls added in v0.0.25

func (c *Sdk) InitSls() *Sdk

func (*Sdk) InitThirdParty added in v0.0.51

func (s *Sdk) InitThirdParty() *Sdk

func (*Sdk) InitTransactions added in v0.0.56

func (s *Sdk) InitTransactions() *Sdk

func (*Sdk) LabelCreate added in v0.0.13

func (c *Sdk) LabelCreate(in *h5.CreateLabelReq) (*h5.CreateLabelResp, error)

note: 标签增删改查

func (*Sdk) LabelDelete added in v0.0.13

func (c *Sdk) LabelDelete(in *h5.DeleteReq) (*h5.Response, error)

func (*Sdk) LabelDeleteIds added in v0.0.13

func (c *Sdk) LabelDeleteIds(in *h5.DeleteIdsReq) (*h5.Response, error)

func (*Sdk) LabelQuery added in v0.0.13

func (c *Sdk) LabelQuery(in *h5.QueryReq) (*h5.QueryLabelResp, error)

func (*Sdk) LabelQueryList added in v0.0.13

func (c *Sdk) LabelQueryList(in *h5.QueryLabelListReq) (*h5.QueryLabelListResp, error)

func (*Sdk) LabelUpdate added in v0.0.13

func (c *Sdk) LabelUpdate(in *h5.UpdateLabelReq) (*h5.Response, error)

func (*Sdk) LabelUpdateStatus added in v0.0.13

func (c *Sdk) LabelUpdateStatus(in *h5.UpdateStatusReq) (*h5.Response, error)

func (*Sdk) MinisiteUserCreate added in v0.0.28

func (c *Sdk) MinisiteUserCreate(in *h5.CreateUserReq) (*h5.CreateResponse, error)

note: 用户增删改查

func (*Sdk) MinisiteUserDelete added in v0.0.28

func (c *Sdk) MinisiteUserDelete(in *h5.DeleteReq) (*h5.Response, error)

func (*Sdk) MinisiteUserDeleteIds added in v0.0.28

func (c *Sdk) MinisiteUserDeleteIds(in *h5.DeleteIdsReq) (*h5.Response, error)

func (*Sdk) MinisiteUserQuery added in v0.0.28

func (c *Sdk) MinisiteUserQuery(in *h5.QueryUserReq) (*h5.QueryUserResp, error)

func (*Sdk) MinisiteUserQueryList added in v0.0.28

func (c *Sdk) MinisiteUserQueryList(in *h5.QueryUserListReq) (*h5.QueryUserListResp, error)

func (*Sdk) MinisiteUserUpdate added in v0.0.28

func (c *Sdk) MinisiteUserUpdate(in *h5.UpdateUserReq) (*h5.Response, error)

func (*Sdk) MinisiteUserUpdateStatus added in v0.0.28

func (c *Sdk) MinisiteUserUpdateStatus(in *h5.UpdateStatusReq) (*h5.Response, error)

func (*Sdk) MixCaptchaGenerateByCustom added in v0.0.50

func (s *Sdk) MixCaptchaGenerateByCustom(DotCount, KeyLong, ImgWidth, ImgHeight int64, MaxSkew float64) (*mix.CaptchaResp, error)

func (*Sdk) MixCaptchaGenerateByKey added in v0.0.50

func (s *Sdk) MixCaptchaGenerateByKey(key string) (*mix.CaptchaResp, error)

func (*Sdk) MixCheckStatus added in v0.0.50

func (s *Sdk) MixCheckStatus() *Sdk

func (*Sdk) MixGenerateUploadSign added in v0.0.50

func (s *Sdk) MixGenerateUploadSign(key, Filename, UploadDir, CallBack string, IsCallBack bool) (*mix.GenerateUploadSignParamsResp, error)

func (*Sdk) MixSendEms added in v0.0.50

func (s *Sdk) MixSendEms(key, Subject, SendType, SendBody string, RecipientEmail []string, cc []*mix.Cc) (*mix.EmsResp, error)

func (*Sdk) MixSendSms added in v0.0.50

func (s *Sdk) MixSendSms(key, phone string, args ...any) (*mix.SmsResp, error)

func (*Sdk) MixSendSmsAndKey added in v0.0.50

func (s *Sdk) MixSendSmsAndKey(key, phone string, args ...any) (*mix.SmsResp, error)

func (*Sdk) NewSlsLogMsg added in v0.0.25

func (c *Sdk) NewSlsLogMsg(s *TemplateLog) *sls.Log

func (*Sdk) RelatedSitesCreate added in v0.0.41

func (c *Sdk) RelatedSitesCreate(in *h5.CreateRelatedSitesReq) (*h5.CreateResponse, error)

note: 相关站点的增删改查

func (*Sdk) RelatedSitesDelete added in v0.0.41

func (c *Sdk) RelatedSitesDelete(in *h5.DeleteReq) (*h5.Response, error)

func (*Sdk) RelatedSitesDeleteIds added in v0.0.41

func (c *Sdk) RelatedSitesDeleteIds(in *h5.DeleteIdsReq) (*h5.Response, error)

func (*Sdk) RelatedSitesQuery added in v0.0.41

func (c *Sdk) RelatedSitesQuery(in *h5.QueryReq) (*h5.QueryRelatedSitesResp, error)

func (*Sdk) RelatedSitesQueryIds added in v0.0.41

func (c *Sdk) RelatedSitesQueryIds(in *h5.QueryIdsReq) (*h5.QueryRelatedSitesListResp, error)

func (*Sdk) RelatedSitesQueryList added in v0.0.41

func (c *Sdk) RelatedSitesQueryList(in *h5.QueryRelatedSitesListReq) (*h5.QueryRelatedSitesListResp, error)

func (*Sdk) RelatedSitesUpdate added in v0.0.41

func (c *Sdk) RelatedSitesUpdate(in *h5.UpdateRelatedSitesReq) (*h5.Response, error)

func (*Sdk) SlsCheckStatus added in v0.0.25

func (c *Sdk) SlsCheckStatus() *Sdk

func (*Sdk) SlsLoadCloudConfig added in v0.0.25

func (c *Sdk) SlsLoadCloudConfig() (*Sdk, error)

func (*Sdk) SlsSendLog added in v0.0.25

func (c *Sdk) SlsSendLog(log *sls.Log, sourceIp string) error

func (*Sdk) SlsSendLogList added in v0.0.68

func (c *Sdk) SlsSendLogList(logs []*sls.Log, sourceIp string) error

func (*Sdk) SonyCtx

func (c *Sdk) SonyCtx() context.Context

func (*Sdk) ThirdPartyCheckStatus added in v0.0.51

func (s *Sdk) ThirdPartyCheckStatus() *Sdk

func (*Sdk) TransCloseOrder added in v0.0.56

func (s *Sdk) TransCloseOrder(in *transactions.CloseOrderParams) (*transactions.CloseOrderResp, error)

func (*Sdk) TransCreateOrder added in v0.0.56

func (s *Sdk) TransCreateOrder(in *transactions.CreateOrderParams) (*transactions.CreateOrderResp, error)

func (*Sdk) TransProductCreate added in v0.0.56

func (s *Sdk) TransProductCreate(in *transactions.ProductCreateReq) (*transactions.ProductCreateResp, error)

func (*Sdk) TransProductDeleteIds added in v0.0.56

func (s *Sdk) TransProductDeleteIds(in *transactions.ProductDeleteIdsReq) (*transactions.ProductDeleteIdsResp, error)

func (*Sdk) TransProductQuery added in v0.0.56

func (s *Sdk) TransProductQuery(in *transactions.ProductQueryReq) (*transactions.ProductQueryResp, error)

func (*Sdk) TransProductQueryIds added in v0.0.56

func (s *Sdk) TransProductQueryIds(in *transactions.ProductQueryIdsReq) (*transactions.ProductQueryIdsResp, error)

func (*Sdk) TransProductQueryList added in v0.0.57

func (s *Sdk) TransProductQueryList(in *transactions.ProductQueryListReq) (*transactions.ProductQueryListResp, error)

func (*Sdk) TransProductUpdate added in v0.0.56

func (s *Sdk) TransProductUpdate(in *transactions.ProductUpdateReq) (*transactions.ProductUpdateResp, error)

func (*Sdk) TransQueryOrder added in v0.0.56

func (s *Sdk) TransQueryOrder(in *transactions.QueryOrderParams) (*transactions.QueryOrderResp, error)

func (*Sdk) TransactionsCheckStatus added in v0.0.56

func (s *Sdk) TransactionsCheckStatus() *Sdk

func (*Sdk) TranssProductDelete added in v0.0.56

func (s *Sdk) TranssProductDelete(in *transactions.ProductDeleteReq) (*transactions.ProductDeleteResp, error)

func (*Sdk) WechatCode2Token added in v0.0.10

func (s *Sdk) WechatCode2Token(in *thirdparty.WechatCodeReq) (*thirdparty.WechatCodeResp, error)

func (*Sdk) WechatMiniAppCode2Phone added in v0.0.45

func (s *Sdk) WechatMiniAppCode2Phone(in *thirdparty.WechatCodeReq) (*thirdparty.WechatMiniAppCode2PhoneResp, error)

func (*Sdk) WechatMiniAppCode2Session added in v0.0.44

func (s *Sdk) WechatMiniAppCode2Session(in *thirdparty.WechatCodeReq) (*thirdparty.WechatMiniAppCodeResp, error)

func (*Sdk) WechatOfficialAccountAccessToken added in v0.0.3

func (s *Sdk) WechatOfficialAccountAccessToken(in *thirdparty.WechatOaKeyReq) (*thirdparty.WechatOaAccessTokenResp, error)

func (*Sdk) WechatOfficialAccountJsApiTicket added in v0.0.24

func (s *Sdk) WechatOfficialAccountJsApiTicket(in *thirdparty.WechatOaKeyReq) (*thirdparty.WechatOaJsApiTicketResp, error)

func (*Sdk) WechatOfficialGenShareConfig added in v0.0.55

func (s *Sdk) WechatOfficialGenShareConfig(in *thirdparty.WechatGenShareConfigReq) (*thirdparty.WechatGenShareConfigResp, error)

func (*Sdk) WechatRefreshUserToken added in v0.0.10

func (s *Sdk) WechatRefreshUserToken(in *thirdparty.WechatRefreshReq) (*thirdparty.WechatRefreshResp, error)

func (*Sdk) WechatUserToken2UserInfo added in v0.0.10

func (s *Sdk) WechatUserToken2UserInfo(in *thirdparty.WechatTokenReq) (*thirdparty.WechatUserInfoResp, error)

func (*Sdk) WechatWebRedirectWechat

func (s *Sdk) WechatWebRedirectWechat(in *thirdparty.WechatWebRedirectReq) (*thirdparty.WechatWebRedirectResp, error)

func (*Sdk) WithConfig

func (c *Sdk) WithConfig(config *Config) *Sdk

func (*Sdk) WithContext

func (c *Sdk) WithContext(ctx context.Context) context.Context

func (*Sdk) WithDeadline added in v0.0.11

func (c *Sdk) WithDeadline(Deadline int64) *Sdk

func (*Sdk) WithRequestId added in v0.0.35

func (c *Sdk) WithRequestId(requestId string) *Sdk

note: 添加将requestID继承到下个服务的能力

type Sls added in v0.0.25

type Sls struct {
	Producer    *producer.Producer
	Client      sls.ClientInterface
	Num         int64
	Status      int
	Retry       int
	Configs     map[string]*cloudc.ModelSlsConfig
	UsingConfig *cloudc.ModelSlsConfig
}

func NewSls added in v0.0.25

func NewSls() *Sls

func (*Sls) GetAllConfigs added in v0.0.25

func (s *Sls) GetAllConfigs() map[string]*cloudc.ModelSlsConfig

func (*Sls) GetConfig added in v0.0.25

func (s *Sls) GetConfig() (*cloudc.ModelSlsConfig, error)

func (*Sls) SetConfig added in v0.0.25

func (s *Sls) SetConfig(key string) error

type TemplateLog added in v0.0.25

type TemplateLog struct {
	AppName     string `json:"app_name"`
	AppPlatform string `json:"app_platform"`
	RequestId   string `json:"requestId"`
	Time        string `json:"time"`
	Path        string `json:"path"`
	Method      string `json:"method"`
	Body        string `json:"body"`
	Message     string `json:"message"`
	UserId      string `json:"user_id"`
	UniqueId    string `json:"unique_id"`
}

type ThirdParty added in v0.0.51

type ThirdParty struct {
	thirdparty.ThirdPartyRpcServiceClient
	Num    int64
	Status int
	Retry  int
}

func NewThirdParty added in v0.0.51

func NewThirdParty(RpcClientConf *zrpc.RpcClientConf) *ThirdParty

type Transactions added in v0.0.56

func NewTransactions added in v0.0.56

func NewTransactions(RpcClientConf *zrpc.RpcClientConf) *Transactions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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