sdk

package
v0.0.43 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

*

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

*

*

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

*

*

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

*

*

@author: taco
@Date: 2023/10/27
@Time: 11:07

*

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	article.ArticleRpcServiceClient
	Num    int64
	Status int
	Retry  int
}

func NewArticle

func NewArticle(RpcClientConf *zrpc.RpcClientConf) *Article

type Auth

type Auth struct {
	shield.ShieldServiceClient
	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 Captcha added in v0.0.2

type Captcha struct {
	captcha.CaptchaRpcServiceClient
	Num         int64
	Status      int
	Retry       int
	Configs     map[string]*cloudc.ModelCaptchaConfig
	UsingConfig *cloudc.ModelCaptchaConfig
}

func NewCaptcha added in v0.0.2

func NewCaptcha(RpcClientConf *zrpc.RpcClientConf) *Captcha

func (*Captcha) GetAllConfigs added in v0.0.2

func (s *Captcha) GetAllConfigs() map[string]*cloudc.ModelCaptchaConfig

func (*Captcha) GetConfig added in v0.0.2

func (s *Captcha) GetConfig() (*cloudc.ModelCaptchaConfig, error)

func (*Captcha) SetConfig added in v0.0.2

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

type CloudC

type CloudC struct {
	cloudc.CloudCServiceClient
	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 Douyin added in v0.0.36

type Douyin struct {
	douyin.DouyinRpcServiceClient
	Num         int64
	Status      int
	Retry       int
	Configs     map[string]*cloudc.ModelDouyinConfig
	UsingConfig *cloudc.ModelDouyinConfig
}

func NewDouyin added in v0.0.36

func NewDouyin(RpcClientConf *zrpc.RpcClientConf) *Douyin

func (*Douyin) GetAllConfigs added in v0.0.36

func (s *Douyin) GetAllConfigs() map[string]*cloudc.ModelDouyinConfig

func (*Douyin) GetConfig added in v0.0.36

func (s *Douyin) GetConfig() (*cloudc.ModelDouyinConfig, error)

func (*Douyin) SetConfig added in v0.0.36

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

type Ems

type Ems struct {
	ems.EmsRpcServiceClient
	Num         int64
	Status      int
	Retry       int
	Configs     map[string]*cloudc.ModelEmsConfig
	UsingConfig *cloudc.ModelEmsConfig
}

func NewEms

func NewEms(RpcClientConf *zrpc.RpcClientConf) *Ems

func (*Ems) GetAllConfigs

func (s *Ems) GetAllConfigs() map[string]*cloudc.ModelEmsConfig

func (*Ems) GetConfig

func (s *Ems) GetConfig() (*cloudc.ModelEmsConfig, error)

func (*Ems) SetConfig

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

type Label added in v0.0.17

type Label struct {
	label.LabelRpcServiceClient
	Num    int64
	Status int
	Retry  int
}

func NewLabel added in v0.0.17

func NewLabel(RpcClientConf *zrpc.RpcClientConf) *Label

type Minisite added in v0.0.28

type Minisite struct {
	minisite.MinisiteRpcServiceClient
	Num    int64
	Status int
	Retry  int
}

func NewMinisite added in v0.0.28

func NewMinisite(RpcClientConf *zrpc.RpcClientConf) *Minisite

type Oss

type Oss struct {
	oss.OssRpcServiceClient
	Num         int64
	Status      int
	Retry       int
	Configs     map[string]*cloudc.ModelOssConfig
	UsingConfig *cloudc.ModelOssConfig
}

func NewOss

func NewOss(RpcClientConf *zrpc.RpcClientConf) *Oss

func (*Oss) GetAllConfigs

func (s *Oss) GetAllConfigs() map[string]*cloudc.ModelOssConfig

func (*Oss) GetConfig

func (s *Oss) GetConfig() (*cloudc.ModelOssConfig, error)

func (*Oss) SetConfig

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

type Sdk

type Sdk struct {
	Config              *Config
	Status              int
	AccessToken         string
	AccessTokenExpires  int64
	RefreshToken        string
	RefreshTokenExpires int64
	RetryTimes          int
	Deadline            int64
	Context             context.Context
	Auth                *Auth
	Article             *Article
	SubTenant           *SubTenant
	CloudC              *CloudC
	Ems                 *Ems
	Oss                 *Oss
	Sms                 *Sms
	Wechat              *Wechat
	Captcha             *Captcha
	Label               *Label
	Sls                 *Sls
	Minisite            *Minisite
	Douyin              *Douyin
}

func NewSdk

func NewSdk() *Sdk

func (*Sdk) AddTenant

func (c *Sdk) AddTenant(in *tenant.EditTenantParams) (*tenant.AddTenantResp, error)

func (*Sdk) ArticleAttaFileCreate added in v0.0.32

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

func (*Sdk) ArticleAttaFileDelete added in v0.0.32

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

func (*Sdk) ArticleAttaFileDeleteIds added in v0.0.32

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

func (*Sdk) ArticleAttaFileQuery added in v0.0.32

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

func (*Sdk) ArticleAttaFileQueryList added in v0.0.32

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

func (*Sdk) ArticleAttachmentCreate added in v0.0.32

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

func (*Sdk) ArticleAttachmentDelete added in v0.0.32

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

func (*Sdk) ArticleAttachmentDeleteIds added in v0.0.32

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

func (*Sdk) ArticleAttachmentQuery added in v0.0.32

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

func (*Sdk) ArticleAttachmentQueryList added in v0.0.32

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

func (*Sdk) ArticleAttachmentUpdate added in v0.0.32

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

func (*Sdk) ArticleBindArticleLabels added in v0.0.18

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

func (*Sdk) ArticleCheckStatus

func (c *Sdk) ArticleCheckStatus() *Sdk

func (*Sdk) ArticleCreate added in v0.0.16

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

func (*Sdk) ArticleDelete added in v0.0.16

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

func (*Sdk) ArticleDeleteIds added in v0.0.16

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

func (*Sdk) ArticleQuery added in v0.0.16

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

func (*Sdk) ArticleQueryList added in v0.0.16

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

func (*Sdk) ArticleQueryRecommendList added in v0.0.41

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

func (*Sdk) ArticleUnBindArticleLabels added in v0.0.18

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

func (*Sdk) ArticleUpdate added in v0.0.16

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

func (*Sdk) ArticleUpdateStatus added in v0.0.16

func (c *Sdk) ArticleUpdateStatus(in *article.UpdateStatusReq) (*article.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) CaptchaCheckStatus added in v0.0.2

func (c *Sdk) CaptchaCheckStatus() *Sdk

func (*Sdk) CaptchaGenerate added in v0.0.2

func (c *Sdk) CaptchaGenerate() (*captcha.CaptchaResp, error)

func (*Sdk) CaptchaLoadCloudConfig added in v0.0.2

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

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) DeleteTenant

func (c *Sdk) DeleteTenant(in *tenant.DeleteTenantParams) (*tenant.TenantResp, error)

func (*Sdk) DouyinCheckStatus added in v0.0.36

func (c *Sdk) DouyinCheckStatus() *Sdk

func (*Sdk) DouyinCode2Token added in v0.0.36

func (c *Sdk) DouyinCode2Token(in *douyin.CodeReq) (*douyin.CodeResp, error)

func (*Sdk) DouyinLoadCloudConfig added in v0.0.36

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

func (*Sdk) DouyinOfficialAccountAccessToken added in v0.0.36

func (c *Sdk) DouyinOfficialAccountAccessToken(in *douyin.OaKeyReq) (*douyin.OaAccessTokenResp, error)

func (*Sdk) EditTenant

func (c *Sdk) EditTenant(in *tenant.EditTenantParams) (*tenant.TenantResp, error)

func (*Sdk) EmsCheckStatus

func (c *Sdk) EmsCheckStatus() *Sdk

func (*Sdk) EmsLoadCloudConfig

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

func (*Sdk) EmsSendEms

func (c *Sdk) EmsSendEms(RecipientEmail []string, cc []*ems.Cc, Subject, SendType, SendBody string) (*ems.EmsResp, error)

func (*Sdk) InitArticle

func (c *Sdk) InitArticle() *Sdk

func (*Sdk) InitAuth

func (c *Sdk) InitAuth() *Sdk

func (*Sdk) InitCaptcha added in v0.0.2

func (c *Sdk) InitCaptcha() *Sdk

func (*Sdk) InitCloudC

func (c *Sdk) InitCloudC() *Sdk

func (*Sdk) InitDouyin added in v0.0.36

func (c *Sdk) InitDouyin() *Sdk

func (*Sdk) InitEms

func (c *Sdk) InitEms() *Sdk

func (*Sdk) InitLabel added in v0.0.17

func (c *Sdk) InitLabel() *Sdk

func (*Sdk) InitMinisite added in v0.0.28

func (c *Sdk) InitMinisite() *Sdk

func (*Sdk) InitOss

func (c *Sdk) InitOss() *Sdk

func (*Sdk) InitSls added in v0.0.25

func (c *Sdk) InitSls() *Sdk

func (*Sdk) InitSms

func (c *Sdk) InitSms() *Sdk

func (*Sdk) InitSubTenant

func (c *Sdk) InitSubTenant() *Sdk

func (*Sdk) InitWechat

func (c *Sdk) InitWechat() *Sdk

func (*Sdk) LabelCheckStatus added in v0.0.17

func (c *Sdk) LabelCheckStatus() *Sdk

func (*Sdk) LabelCreate added in v0.0.13

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

func (*Sdk) LabelDelete added in v0.0.13

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

func (*Sdk) LabelDeleteIds added in v0.0.13

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

func (*Sdk) LabelQuery added in v0.0.13

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

func (*Sdk) LabelQueryList added in v0.0.13

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

func (*Sdk) LabelUpdate added in v0.0.13

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

func (*Sdk) LabelUpdateStatus added in v0.0.13

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

func (*Sdk) MinisiteCheckStatus added in v0.0.28

func (c *Sdk) MinisiteCheckStatus() *Sdk

func (*Sdk) MinisiteCreate added in v0.0.28

func (c *Sdk) MinisiteCreate(in *minisite.CreateMinisiteReq) (*minisite.Response, error)

func (*Sdk) MinisiteDelete added in v0.0.28

func (c *Sdk) MinisiteDelete(in *minisite.DeleteReq) (*minisite.Response, error)

func (*Sdk) MinisiteDeleteIds added in v0.0.28

func (c *Sdk) MinisiteDeleteIds(in *minisite.DeleteIdsReq) (*minisite.Response, error)

func (*Sdk) MinisiteQuery added in v0.0.28

func (c *Sdk) MinisiteQuery(in *minisite.QueryReq) (*minisite.QueryMinisiteResp, error)

func (*Sdk) MinisiteQueryList added in v0.0.28

func (c *Sdk) MinisiteQueryList(in *minisite.QueryMinisiteListReq) (*minisite.QueryMinisiteListResp, error)

func (*Sdk) MinisiteUpdate added in v0.0.28

func (c *Sdk) MinisiteUpdate(in *minisite.UpdateMinisiteReq) (*minisite.Response, error)

func (*Sdk) MinisiteUpdateStatus added in v0.0.28

func (c *Sdk) MinisiteUpdateStatus(in *minisite.UpdateStatusReq) (*minisite.Response, error)

func (*Sdk) MinisiteUserCreate added in v0.0.28

func (c *Sdk) MinisiteUserCreate(in *minisite.CreateUserReq) (*minisite.Response, error)

func (*Sdk) MinisiteUserDelete added in v0.0.28

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

func (*Sdk) MinisiteUserDeleteIds added in v0.0.28

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

func (*Sdk) MinisiteUserQuery added in v0.0.28

func (c *Sdk) MinisiteUserQuery(in *minisite.QueryReq) (*minisite.QueryUserResp, error)

func (*Sdk) MinisiteUserQueryList added in v0.0.28

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

func (*Sdk) MinisiteUserUpdate added in v0.0.28

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

func (*Sdk) MinisiteUserUpdateStatus added in v0.0.28

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

func (*Sdk) NewSlsLogMsg added in v0.0.25

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

func (*Sdk) OssCheckStatus

func (c *Sdk) OssCheckStatus() *Sdk

func (*Sdk) OssGenerateUploadSign

func (c *Sdk) OssGenerateUploadSign(Filename, UploadDir, CallBack string, IsCallBack bool) (*oss.GenerateUploadSignParamsResp, error)

func (*Sdk) OssLoadCloudConfig

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

func (*Sdk) PwdTenant

func (c *Sdk) PwdTenant(in *tenant.EditTenantParams) (*tenant.TenantResp, error)

func (*Sdk) RelatedSitesCreate added in v0.0.41

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

note: 相关站点的增删改查

func (*Sdk) RelatedSitesDelete added in v0.0.41

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

func (*Sdk) RelatedSitesDeleteIds added in v0.0.41

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

func (*Sdk) RelatedSitesQuery added in v0.0.41

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

func (*Sdk) RelatedSitesQueryIds added in v0.0.41

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

func (*Sdk) RelatedSitesQueryList added in v0.0.41

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

func (*Sdk) RelatedSitesUpdate added in v0.0.41

func (c *Sdk) RelatedSitesUpdate(in *article.UpdateRelatedSitesReq) (*article.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) SmsCheckStatus

func (c *Sdk) SmsCheckStatus() *Sdk

func (*Sdk) SmsLoadCloudConfig

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

func (*Sdk) SmsSendSms

func (c *Sdk) SmsSendSms(phone string, args ...any) (*sms.SmsResp, error)

func (*Sdk) SmsSendSmsAndKey added in v0.0.31

func (c *Sdk) SmsSendSmsAndKey(key, phone string, args ...any) (*sms.SmsResp, error)

func (*Sdk) SonyCtx

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

func (*Sdk) SubTenantCheckStatus

func (c *Sdk) SubTenantCheckStatus() *Sdk

func (*Sdk) TenantInfo

func (c *Sdk) TenantInfo(in *tenant.TenantInfoParams) (*tenant.TenantInfoResp, error)

func (*Sdk) TenantList

func (c *Sdk) TenantList(in *tenant.TenantListParams) (*tenant.TenantListResp, error)

func (*Sdk) WechatCheckStatus

func (c *Sdk) WechatCheckStatus() *Sdk

func (*Sdk) WechatCode2Token added in v0.0.10

func (c *Sdk) WechatCode2Token(in *wechat.CodeReq) (*wechat.CodeResp, error)

func (*Sdk) WechatLoadCloudConfig

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

func (*Sdk) WechatOfficialAccountAccessToken added in v0.0.3

func (c *Sdk) WechatOfficialAccountAccessToken(in *wechat.OaKeyReq) (*wechat.OaAccessTokenResp, error)

func (*Sdk) WechatOfficialAccountJsApiTicket added in v0.0.24

func (c *Sdk) WechatOfficialAccountJsApiTicket(in *wechat.OaKeyReq) (*wechat.OaJsApiTicketResp, error)

func (*Sdk) WechatRefreshUserToken added in v0.0.10

func (c *Sdk) WechatRefreshUserToken(in *wechat.RefreshReq) (*wechat.RefreshResp, error)

func (*Sdk) WechatUserToken2UserInfo added in v0.0.10

func (c *Sdk) WechatUserToken2UserInfo(in *wechat.TokenReq) (*wechat.UserInfoResp, error)

func (*Sdk) WechatWebAutoRedirectWechat

func (c *Sdk) WechatWebAutoRedirectWechat(in *wechat.WebAutoRedirectReq) (*wechat.WebAutoRedirectResp, error)

func (*Sdk) WechatWebRedirectWechat

func (c *Sdk) WechatWebRedirectWechat(in *wechat.WebRedirectReq) (*wechat.WebRedirectResp, 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 Sms

type Sms struct {
	sms.SmsRpcServiceClient
	Num         int64
	Status      int
	Retry       int
	Configs     map[string]*cloudc.ModelSmsConfig
	UsingConfig *cloudc.ModelSmsConfig
}

func NewSms

func NewSms(RpcClientConf *zrpc.RpcClientConf) *Sms

func (*Sms) GetAllConfigs

func (s *Sms) GetAllConfigs() map[string]*cloudc.ModelSmsConfig

func (*Sms) GetConfig

func (s *Sms) GetConfig() (*cloudc.ModelSmsConfig, error)

func (*Sms) SetConfig

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

type SubTenant

type SubTenant struct {
	tenant.TenantRpcServiceClient
	Num    int64
	Status int
	Retry  int
}

func NewSubTenant

func NewSubTenant(RpcClientConf *zrpc.RpcClientConf) *SubTenant

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 Wechat

type Wechat struct {
	wechat.WechatRpcServiceClient
	Num         int64
	Status      int
	Retry       int
	Configs     map[string]*cloudc.ModelWechatConfig
	UsingConfig *cloudc.ModelWechatConfig
}

func NewWechat

func NewWechat(RpcClientConf *zrpc.RpcClientConf) *Wechat

func (*Wechat) GetAllConfigs

func (s *Wechat) GetAllConfigs() map[string]*cloudc.ModelWechatConfig

func (*Wechat) GetConfig

func (s *Wechat) GetConfig() (*cloudc.ModelWechatConfig, error)

func (*Wechat) SetConfig

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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