Skip to content

Commit

Permalink
doc: 删除在中文语境下显得很怪的文档注释开头
Browse files Browse the repository at this point in the history
  • Loading branch information
kvii committed Dec 16, 2024
1 parent 3386c0e commit 3e44cce
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions feishu/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ type BotClient struct {
Token string // 机器人令牌。
}

// SendText 方法发送文本信息。
// 方法发送文本信息。
// 目前只支持文本信息。信息内容需要包含指定关键字。
func (c BotClient) SendText(ctx context.Context, msg string) error {
c.logger().InfoContext(ctx, "发送文本消息", slog.String("msg", msg))
Expand All @@ -63,7 +63,7 @@ func (c BotClient) SendText(ctx context.Context, msg string) error {
})
}

// Send 方法发送信息。
// 方法发送信息。
// 目前只支持文本信息。信息内容需要包含指定关键字。
func (c BotClient) Send(ctx context.Context, msg Message) error {
c.logger().InfoContext(ctx, "发送消息", slog.String("msgType", msg.MsgType))
Expand Down
6 changes: 3 additions & 3 deletions wx/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type BotClient struct {
Key string // 机器人令牌。
}

// SendText 方法发送文本信息。
// 方法发送文本信息。
// 目前只支持文本信息。
func (c BotClient) SendText(ctx context.Context, msg string) error {
c.logger().InfoContext(ctx, "发送文本消息", slog.String("msg", msg))
Expand All @@ -71,7 +71,7 @@ func (c BotClient) SendText(ctx context.Context, msg string) error {
})
}

// SendMarkdown 发送 Markdown 信息。
// 发送 Markdown 信息。
func (c BotClient) SendMarkdown(ctx context.Context, msg string) error {
c.logger().InfoContext(ctx, "发送 Markdown 消息", slog.String("msg", msg))

Expand All @@ -81,7 +81,7 @@ func (c BotClient) SendMarkdown(ctx context.Context, msg string) error {
})
}

// Send 方法发送信息。
// 方法发送信息。
// 目前只支持文本信息。
func (c BotClient) Send(ctx context.Context, msg Message) error {
c.logger().InfoContext(ctx, "发送消息", slog.String("msgType", msg.MsgType))
Expand Down

0 comments on commit 3e44cce

Please sign in to comment.