cmsi

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package cmsi 提供邮件,短信等消息发送能力

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiClient

type ApiClient struct {
	define.BkApiClient
}

ApiClient 蓝鲸 CMSI 组件 API Client

func New

func New() (*ApiClient, error)

New 创建 ApiClient

func (*ApiClient) GetMsgType

func (c *ApiClient) GetMsgType(ctx context.Context) (map[string]any, error)

GetMsgType 获取支持发送的消息类型

func (*ApiClient) SendMail

func (c *ApiClient) SendMail(ctx context.Context, receiver, title, content string) (map[string]any, error)

SendMail 发送邮件 NOTE: cmsi.send_mail 不只支持以下参数,SaaS 开发者可查阅文档按需添加

func (*ApiClient) SendMsg

func (c *ApiClient) SendMsg(ctx context.Context, msgType, receiver, title, content string) (map[string]any, error)

SendMsg 发送指定类型的消息 NOTE: cmsi.send_msg 不只支持以下参数,SaaS 开发者可查阅文档按需添加

Jump to

Keyboard shortcuts

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