UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

31 lines (27 loc) 966 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); /** * @see [企业微信自助入群工具](https://iwiki.woa.com/p/541885852#%E4%BC%81%E4%B8%9A%E5%BE%AE%E4%BF%A1%E8%87%AA%E5%8A%A9%E5%85%A5%E7%BE%A4%E5%B7%A5%E5%85%B7) * https://nops.woa.com/pigeon/v1/tools/add_chat?chatId=群会话ID * @example * ```ts * getWxWorkAddChatLink('xxx-chat-id'); * // 'https://nops.woa.com/pigeon/v1/tools/add_chat?chatId=xxx-chat-id' * ``` */ function getWxWorkAddChatLink(chatId) { return "https://nops.woa.com/pigeon/v1/tools/add_chat?chatId=".concat(chatId); } /** * @example * ```ts * getWxWorkMessageLink('novlan1') * // => https://github.com/novlan1 * ``` */ function getWxWorkMessageLink(rtx) { // return `https://nops.woa.com/pigeon/v1/tools/send_message?rtx=${rtx}`; return "wxwork://message?username=".concat(rtx); } exports.getWxWorkAddChatLink = getWxWorkAddChatLink; exports.getWxWorkMessageLink = getWxWorkMessageLink;