Documentation ¶
Overview ¶
*
@author: taco @Date: 2023/10/27 @Time: 10:29
*
Index ¶
- Variables
- type AIot
- type Auth
- type CloudC
- type Config
- func (c *Config) WithAccessKeyId(AccessKeyId string) *Config
- func (c *Config) WithAccessKeySecret(AccessKeySecret string) *Config
- func (c *Config) WithAutoRefreshToken(AutoRefreshToken bool) *Config
- func (c *Config) WithAutoRetry(isAutoRetry bool) *Config
- func (c *Config) WithDebug(Debug bool) *Config
- func (c *Config) WithMaxRetryTimes(MaxRetryTimes int) *Config
- func (c *Config) WithTimeout(Timeout time.Duration) *Config
- type H5
- type Mix
- type Sdk
- func (s *Sdk) AIotCheckStatus() *Sdk
- func (s *Sdk) AIotJStyleDeviceHeartOneParse(in *aiot.JStyleDeviceHeartOneParseReq) (*aiot.JStyleDeviceHeartOneParseResp, error)
- func (s *Sdk) AIotJStyleDeviceHeartParse(in *aiot.JStyleDeviceHeartParseReq) (*aiot.JStyleDeviceHeartParseResp, error)
- func (s *Sdk) AIotJStyleDeviceSleepParse(in *aiot.JStyleDeviceSleepParseReq) (*aiot.JStyleDeviceSleepParseResp, error)
- func (s *Sdk) AIotJStyleDeviceStepParse(in *aiot.JStyleDeviceStepParseReq) (*aiot.JStyleDeviceStepParseResp, error)
- func (c *Sdk) ArticleAttaFileCreate(in *h5.CreateAttaFileReq) (*h5.CreateResponse, error)
- func (c *Sdk) ArticleAttaFileDelete(in *h5.DeleteReq) (*h5.Response, error)
- func (c *Sdk) ArticleAttaFileDeleteIds(in *h5.DeleteIdsReq) (*h5.Response, error)
- func (c *Sdk) ArticleAttaFileQuery(in *h5.QueryReq) (*h5.QueryAttaFileResp, error)
- func (c *Sdk) ArticleAttaFileQueryList(in *h5.QueryAttaFileListReq) (*h5.QueryAttaFileListResp, error)
- func (c *Sdk) ArticleAttachmentCreate(in *h5.CreateAttachmentReq) (*h5.CreateResponse, error)
- func (c *Sdk) ArticleAttachmentDelete(in *h5.DeleteReq) (*h5.Response, error)
- func (c *Sdk) ArticleAttachmentDeleteIds(in *h5.DeleteIdsReq) (*h5.Response, error)
- func (c *Sdk) ArticleAttachmentQuery(in *h5.QueryReq) (*h5.QueryAttachmentResp, error)
- func (c *Sdk) ArticleAttachmentQueryList(in *h5.QueryAttachmentListReq) (*h5.QueryAttachmentListResp, error)
- func (c *Sdk) ArticleAttachmentUpdate(in *h5.UpdateAttachmentReq) (*h5.Response, error)
- func (c *Sdk) ArticleBindArticleLabels(in *h5.UpdateBindLabelsReq) (*h5.Response, error)
- func (c *Sdk) ArticleCreate(in *h5.CreateArticleReq) (*h5.CreateArticleResp, error)
- func (c *Sdk) ArticleDelete(in *h5.DeleteReq) (*h5.Response, error)
- func (c *Sdk) ArticleDeleteIds(in *h5.DeleteIdsReq) (*h5.Response, error)
- func (c *Sdk) ArticleQuery(in *h5.QueryReq) (*h5.QueryArticleResp, error)
- func (c *Sdk) ArticleQueryList(in *h5.QueryArticleListReq) (*h5.QueryArticleListResp, error)
- func (c *Sdk) ArticleQueryListQueryIds(in *h5.QueryIdsReq) (*h5.QueryArticleListResp, error)
- func (c *Sdk) ArticleQueryRecommendList(in *h5.QueryReq) (*h5.QueryRecommendListResp, error)
- func (c *Sdk) ArticleUnBindArticleLabels(in *h5.UpdateBindLabelsReq) (*h5.Response, error)
- func (c *Sdk) ArticleUpdate(in *h5.UpdateArticleReq) (*h5.Response, error)
- func (c *Sdk) ArticleUpdateStatus(in *h5.UpdateStatusReq) (*h5.Response, error)
- func (c *Sdk) AuthFail(err error)
- func (c *Sdk) AuthLogin() (*Sdk, error)
- func (c *Sdk) AuthPing() *Sdk
- func (c *Sdk) AuthRefresh() (*Sdk, error)
- func (c *Sdk) AuthSuccess()
- func (c *Sdk) AutoAuth() *Sdk
- func (c *Sdk) AutoRefresh() *Sdk
- func (c *Sdk) CloudCCaptchaConfigGet(in *cloudc.ConfigGetParams) (*cloudc.CaptchaConfigGetResp, error)
- func (c *Sdk) CloudCCaptchaConfigGetAll() (*cloudc.CaptchaConfigGetAllResp, error)
- func (c *Sdk) CloudCCaptchaConfigSet(in *cloudc.CaptchaConfigSetParams) (*cloudc.ConfigResp, error)
- func (c *Sdk) CloudCCheckStatus() *Sdk
- func (c *Sdk) CloudCDouyinConfigGet(in *cloudc.ConfigGetParams) (*cloudc.DouyinConfigGetResp, error)
- func (c *Sdk) CloudCDouyinConfigGetAll() (*cloudc.DouyinConfigGetAllResp, error)
- func (c *Sdk) CloudCDouyinConfigSet(in *cloudc.DouyinConfigSetParams) (*cloudc.ConfigResp, error)
- func (c *Sdk) CloudCEmsConfigGet(in *cloudc.ConfigGetParams) (*cloudc.EmsConfigGetResp, error)
- func (c *Sdk) CloudCEmsConfigGetAll() (*cloudc.EmsConfigGetAllResp, error)
- func (c *Sdk) CloudCEmsConfigSet(in *cloudc.EmsConfigSetParams) (*cloudc.ConfigResp, error)
- func (c *Sdk) CloudCOssConfigGet(in *cloudc.ConfigGetParams) (*cloudc.OssConfigGetResp, error)
- func (c *Sdk) CloudCOssConfigGetAll() (*cloudc.OssConfigGetAllResp, error)
- func (c *Sdk) CloudCOssConfigSet(in *cloudc.OssConfigSetParams) (*cloudc.ConfigResp, error)
- func (c *Sdk) CloudCSlsConfigGet(in *cloudc.ConfigGetParams) (*cloudc.SlsConfigGetResp, error)
- func (c *Sdk) CloudCSlsConfigGetAll() (*cloudc.SlsConfigGetAllResp, error)
- func (c *Sdk) CloudCSlsConfigSet(in *cloudc.SlsConfigSetParams) (*cloudc.ConfigResp, error)
- func (c *Sdk) CloudCSmsConfigGet(in *cloudc.ConfigGetParams) (*cloudc.SmsConfigGetResp, error)
- func (c *Sdk) CloudCSmsConfigGetAll() (*cloudc.SmsConfigGetAllResp, error)
- func (c *Sdk) CloudCSmsConfigSet(in *cloudc.SmsConfigSetParams) (*cloudc.ConfigResp, error)
- func (c *Sdk) CloudCSystemConfigGet(in *cloudc.ConfigGetParams) (*cloudc.SystemConfigGetResp, error)
- func (c *Sdk) CloudCSystemConfigGetAll() (*cloudc.SystemConfigGetAllResp, error)
- func (c *Sdk) CloudCSystemConfigSet(in *cloudc.SystemConfigSetParams) (*cloudc.ConfigResp, error)
- func (c *Sdk) CloudCWechatConfigGet(in *cloudc.ConfigGetParams) (*cloudc.WechatConfigGetResp, error)
- func (c *Sdk) CloudCWechatConfigGetAll() (*cloudc.WechatConfigGetAllResp, error)
- func (c *Sdk) CloudCWechatConfigSet(in *cloudc.WechatConfigSetParams) (*cloudc.ConfigResp, error)
- func (c *Sdk) DYMiniGameCode2Token(in *thirdparty.DYMiniGameCode2TokenReq) (*thirdparty.DYMiniGameCode2TokenResp, error)
- func (c *Sdk) DYMiniGameOAAccessToken(in *thirdparty.DYMiniGameOAAccessTokenReq) (*thirdparty.DYMiniGameOAAccessTokenResp, error)
- func (c *Sdk) GetVersion() string
- func (c *Sdk) H5CheckStatus() *Sdk
- func (s *Sdk) InitAIot() *Sdk
- func (c *Sdk) InitAuth() *Sdk
- func (c *Sdk) InitCloudC() *Sdk
- func (c *Sdk) InitH5() *Sdk
- func (s *Sdk) InitMix() *Sdk
- func (c *Sdk) InitSls() *Sdk
- func (s *Sdk) InitThirdParty() *Sdk
- func (s *Sdk) InitTransactions() *Sdk
- func (c *Sdk) LabelCreate(in *h5.CreateLabelReq) (*h5.CreateLabelResp, error)
- func (c *Sdk) LabelDelete(in *h5.DeleteReq) (*h5.Response, error)
- func (c *Sdk) LabelDeleteIds(in *h5.DeleteIdsReq) (*h5.Response, error)
- func (c *Sdk) LabelQuery(in *h5.QueryReq) (*h5.QueryLabelResp, error)
- func (c *Sdk) LabelQueryList(in *h5.QueryLabelListReq) (*h5.QueryLabelListResp, error)
- func (c *Sdk) LabelUpdate(in *h5.UpdateLabelReq) (*h5.Response, error)
- func (c *Sdk) LabelUpdateStatus(in *h5.UpdateStatusReq) (*h5.Response, error)
- func (c *Sdk) MinisiteUserCreate(in *h5.CreateUserReq) (*h5.CreateResponse, error)
- func (c *Sdk) MinisiteUserDelete(in *h5.DeleteReq) (*h5.Response, error)
- func (c *Sdk) MinisiteUserDeleteIds(in *h5.DeleteIdsReq) (*h5.Response, error)
- func (c *Sdk) MinisiteUserQuery(in *h5.QueryUserReq) (*h5.QueryUserResp, error)
- func (c *Sdk) MinisiteUserQueryList(in *h5.QueryUserListReq) (*h5.QueryUserListResp, error)
- func (c *Sdk) MinisiteUserUpdate(in *h5.UpdateUserReq) (*h5.Response, error)
- func (c *Sdk) MinisiteUserUpdateStatus(in *h5.UpdateStatusReq) (*h5.Response, error)
- func (s *Sdk) MixCaptchaGenerateByCustom(DotCount, KeyLong, ImgWidth, ImgHeight int64, MaxSkew float64) (*mix.CaptchaResp, error)
- func (s *Sdk) MixCaptchaGenerateByKey(key string) (*mix.CaptchaResp, error)
- func (s *Sdk) MixCheckStatus() *Sdk
- func (s *Sdk) MixGenerateUploadSign(key, Filename, UploadDir, CallBack string, IsCallBack bool) (*mix.GenerateUploadSignParamsResp, error)
- func (s *Sdk) MixSendEms(key, Subject, SendType, SendBody string, RecipientEmail []string, cc []*mix.Cc) (*mix.EmsResp, error)
- func (s *Sdk) MixSendSms(key, phone string, args ...any) (*mix.SmsResp, error)
- func (s *Sdk) MixSendSmsAndKey(key, phone string, args ...any) (*mix.SmsResp, error)
- func (c *Sdk) NewSlsLogMsg(s *TemplateLog) *sls.Log
- func (c *Sdk) RelatedSitesCreate(in *h5.CreateRelatedSitesReq) (*h5.CreateResponse, error)
- func (c *Sdk) RelatedSitesDelete(in *h5.DeleteReq) (*h5.Response, error)
- func (c *Sdk) RelatedSitesDeleteIds(in *h5.DeleteIdsReq) (*h5.Response, error)
- func (c *Sdk) RelatedSitesQuery(in *h5.QueryReq) (*h5.QueryRelatedSitesResp, error)
- func (c *Sdk) RelatedSitesQueryIds(in *h5.QueryIdsReq) (*h5.QueryRelatedSitesListResp, error)
- func (c *Sdk) RelatedSitesQueryList(in *h5.QueryRelatedSitesListReq) (*h5.QueryRelatedSitesListResp, error)
- func (c *Sdk) RelatedSitesUpdate(in *h5.UpdateRelatedSitesReq) (*h5.Response, error)
- func (c *Sdk) SlsCheckStatus() *Sdk
- func (c *Sdk) SlsLoadCloudConfig() (*Sdk, error)
- func (c *Sdk) SlsSendLog(log *sls.Log, sourceIp string) error
- func (c *Sdk) SlsSendLogList(logs []*sls.Log, sourceIp string) error
- func (c *Sdk) SonyCtx() context.Context
- func (s *Sdk) ThirdPartyCheckStatus() *Sdk
- func (s *Sdk) TransCloseOrder(in *transactions.CloseOrderParams) (*transactions.CloseOrderResp, error)
- func (s *Sdk) TransCreateOrder(in *transactions.CreateOrderParams) (*transactions.CreateOrderResp, error)
- func (s *Sdk) TransProductCreate(in *transactions.ProductCreateReq) (*transactions.ProductCreateResp, error)
- func (s *Sdk) TransProductDeleteIds(in *transactions.ProductDeleteIdsReq) (*transactions.ProductDeleteIdsResp, error)
- func (s *Sdk) TransProductQuery(in *transactions.ProductQueryReq) (*transactions.ProductQueryResp, error)
- func (s *Sdk) TransProductQueryIds(in *transactions.ProductQueryIdsReq) (*transactions.ProductQueryIdsResp, error)
- func (s *Sdk) TransProductQueryList(in *transactions.ProductQueryListReq) (*transactions.ProductQueryListResp, error)
- func (s *Sdk) TransProductUpdate(in *transactions.ProductUpdateReq) (*transactions.ProductUpdateResp, error)
- func (s *Sdk) TransQueryOrder(in *transactions.QueryOrderParams) (*transactions.QueryOrderResp, error)
- func (s *Sdk) TransactionsCheckStatus() *Sdk
- func (s *Sdk) TranssProductDelete(in *transactions.ProductDeleteReq) (*transactions.ProductDeleteResp, error)
- func (s *Sdk) WechatCode2Token(in *thirdparty.WechatCodeReq) (*thirdparty.WechatCodeResp, error)
- func (s *Sdk) WechatMiniAppCode2Phone(in *thirdparty.WechatCodeReq) (*thirdparty.WechatMiniAppCode2PhoneResp, error)
- func (s *Sdk) WechatMiniAppCode2Session(in *thirdparty.WechatCodeReq) (*thirdparty.WechatMiniAppCodeResp, error)
- func (s *Sdk) WechatOfficialAccountAccessToken(in *thirdparty.WechatOaKeyReq) (*thirdparty.WechatOaAccessTokenResp, error)
- func (s *Sdk) WechatOfficialAccountJsApiTicket(in *thirdparty.WechatOaKeyReq) (*thirdparty.WechatOaJsApiTicketResp, error)
- func (s *Sdk) WechatOfficialGenShareConfig(in *thirdparty.WechatGenShareConfigReq) (*thirdparty.WechatGenShareConfigResp, error)
- func (s *Sdk) WechatRefreshUserToken(in *thirdparty.WechatRefreshReq) (*thirdparty.WechatRefreshResp, error)
- func (s *Sdk) WechatUserToken2UserInfo(in *thirdparty.WechatTokenReq) (*thirdparty.WechatUserInfoResp, error)
- func (s *Sdk) WechatWebAutoRedirectWechat(in *thirdparty.WechatWebAutoRedirectReq) (*thirdparty.WechatWebAutoRedirectResp, error)
- func (s *Sdk) WechatWebRedirectWechat(in *thirdparty.WechatWebRedirectReq) (*thirdparty.WechatWebRedirectResp, error)
- func (c *Sdk) WithConfig(config *Config) *Sdk
- func (c *Sdk) WithContext(ctx context.Context) context.Context
- func (c *Sdk) WithDeadline(Deadline int64) *Sdk
- func (c *Sdk) WithRequestId(requestId string) *Sdk
- type Sls
- type TemplateLog
- type ThirdParty
- type Transactions
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) 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 (*Config) WithAccessKeyId ¶
func (*Config) WithAccessKeySecret ¶
func (*Config) WithAutoRefreshToken ¶
func (*Config) WithAutoRetry ¶
func (*Config) WithMaxRetryTimes ¶
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 (*Sdk) AIotCheckStatus ¶ added in v0.0.69
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 (*Sdk) ArticleAttaFileDeleteIds ¶ added in v0.0.32
func (*Sdk) ArticleAttaFileQuery ¶ added in v0.0.32
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 (*Sdk) ArticleAttachmentDeleteIds ¶ added in v0.0.32
func (*Sdk) ArticleAttachmentQuery ¶ added in v0.0.32
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 (*Sdk) ArticleBindArticleLabels ¶ added in v0.0.18
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 (*Sdk) ArticleDeleteIds ¶ added in v0.0.16
func (*Sdk) ArticleQuery ¶ added in v0.0.16
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 (*Sdk) ArticleUnBindArticleLabels ¶ added in v0.0.18
func (*Sdk) ArticleUpdate ¶ added in v0.0.16
func (*Sdk) ArticleUpdateStatus ¶ added in v0.0.16
func (*Sdk) AuthRefresh ¶
func (*Sdk) AuthSuccess ¶
func (c *Sdk) AuthSuccess()
func (*Sdk) AutoRefresh ¶
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 (*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 (c *Sdk) DYMiniGameCode2Token(in *thirdparty.DYMiniGameCode2TokenReq) (*thirdparty.DYMiniGameCode2TokenResp, error)
func (*Sdk) DYMiniGameOAAccessToken ¶ added in v0.0.51
func (c *Sdk) DYMiniGameOAAccessToken(in *thirdparty.DYMiniGameOAAccessTokenReq) (*thirdparty.DYMiniGameOAAccessTokenResp, error)
func (*Sdk) GetVersion ¶ added in v0.0.49
func (*Sdk) H5CheckStatus ¶ added in v0.0.52
func (*Sdk) InitCloudC ¶
func (*Sdk) InitThirdParty ¶ added in v0.0.51
func (*Sdk) InitTransactions ¶ added in v0.0.56
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 (*Sdk) LabelDeleteIds ¶ added in v0.0.13
func (*Sdk) LabelQuery ¶ added in v0.0.13
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 (*Sdk) LabelUpdateStatus ¶ added in v0.0.13
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 (*Sdk) MinisiteUserDeleteIds ¶ added in v0.0.28
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 (*Sdk) MinisiteUserUpdateStatus ¶ added in v0.0.28
func (*Sdk) MixCaptchaGenerateByCustom ¶ added in v0.0.50
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 (*Sdk) MixGenerateUploadSign ¶ added in v0.0.50
func (*Sdk) MixSendEms ¶ added in v0.0.50
func (*Sdk) MixSendSms ¶ added in v0.0.50
func (*Sdk) MixSendSmsAndKey ¶ added in v0.0.50
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 (*Sdk) RelatedSitesDeleteIds ¶ added in v0.0.41
func (*Sdk) RelatedSitesQuery ¶ added in v0.0.41
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 (*Sdk) SlsCheckStatus ¶ added in v0.0.25
func (*Sdk) SlsLoadCloudConfig ¶ added in v0.0.25
func (*Sdk) SlsSendLog ¶ added in v0.0.25
func (*Sdk) SlsSendLogList ¶ added in v0.0.68
func (*Sdk) ThirdPartyCheckStatus ¶ added in v0.0.51
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 (*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) WechatWebAutoRedirectWechat ¶
func (s *Sdk) WechatWebAutoRedirectWechat(in *thirdparty.WechatWebAutoRedirectReq) (*thirdparty.WechatWebAutoRedirectResp, error)
func (*Sdk) WechatWebRedirectWechat ¶
func (s *Sdk) WechatWebRedirectWechat(in *thirdparty.WechatWebRedirectReq) (*thirdparty.WechatWebRedirectResp, error)
func (*Sdk) WithConfig ¶
func (*Sdk) WithDeadline ¶ added in v0.0.11
func (*Sdk) WithRequestId ¶ added in v0.0.35
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 (*Sls) GetAllConfigs ¶ added in v0.0.25
func (s *Sls) GetAllConfigs() map[string]*cloudc.ModelSlsConfig
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
type Transactions struct { transactions.ProductRpcServiceClient transactions.TransactionsRpcServiceClient Num int64 Status int Retry int }
func NewTransactions ¶ added in v0.0.56
func NewTransactions(RpcClientConf *zrpc.RpcClientConf) *Transactions
Source Files ¶
Click to show internal directories.
Click to hide internal directories.