feat: multi-module iteration
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
|
||||
* 企微群机器人 markdown/text 消息 @ 成员扩展语法。
|
||||
|
||||
* @see https://developer.work.weixin.qq.com/document/path/91770
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/** 生成 `<@userid>` 片段 */
|
||||
|
||||
export function formatWecomAtMention(wecomUserId?: string | null): string {
|
||||
|
||||
const uid = (wecomUserId || '').trim();
|
||||
|
||||
return uid ? `<@${uid}>` : '';
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user