|
@@ -1,93 +1,177 @@
|
|
|
package org.jeecg.modules.adweb.common.constant;
|
|
|
|
|
|
/**
|
|
|
- * @Description:
|
|
|
- * @Author: wrk
|
|
|
+ * @Description: @Author: wrk
|
|
|
+ *
|
|
|
* @date 2022/7/18 18:02
|
|
|
*/
|
|
|
public class RobotMsgTemplate {
|
|
|
|
|
|
- public static final String EXCEPTION_MSG = "{\n" +
|
|
|
- " \"config\": {\n" +
|
|
|
- " \"wide_screen_mode\": true\n" +
|
|
|
- " },\n" +
|
|
|
- " \"elements\": [\n" +
|
|
|
- " {\n" +
|
|
|
- " \"fields\": [\n" +
|
|
|
- " {\n" +
|
|
|
- " \"is_short\": true,\n" +
|
|
|
- " \"text\": {\n" +
|
|
|
- " \"content\": \"** 询盘耗时:**\\n{consumeTime}\",\n" +
|
|
|
- " \"tag\": \"lark_md\"\n" +
|
|
|
- " }\n" +
|
|
|
- " },\n" +
|
|
|
- " {\n" +
|
|
|
- " \"is_short\": false,\n" +
|
|
|
- " \"text\": {\n" +
|
|
|
- " \"content\": \"\",\n" +
|
|
|
- " \"tag\": \"lark_md\"\n" +
|
|
|
- " }\n" +
|
|
|
- " },\n" +
|
|
|
- " {\n" +
|
|
|
- " \"is_short\": true,\n" +
|
|
|
- " \"text\": {\n" +
|
|
|
- " \"content\": \"** 发生时间:**\\n{time}\",\n" +
|
|
|
- " \"tag\": \"lark_md\"\n" +
|
|
|
- " }\n" +
|
|
|
- " },\n" +
|
|
|
- " {\n" +
|
|
|
- " \"is_short\": false,\n" +
|
|
|
- " \"text\": {\n" +
|
|
|
- " \"content\": \"\",\n" +
|
|
|
- " \"tag\": \"lark_md\"\n" +
|
|
|
- " }\n" +
|
|
|
- " },\n" +
|
|
|
- " {\n" +
|
|
|
- " \"is_short\": true,\n" +
|
|
|
- " \"text\": {\n" +
|
|
|
- " \"content\": \"** 系统模块:**\\n{title}\",\n" +
|
|
|
- " \"tag\": \"lark_md\"\n" +
|
|
|
- " }\n" +
|
|
|
- " },\n" +
|
|
|
- " {\n" +
|
|
|
- " \"is_short\": false,\n" +
|
|
|
- " \"text\": {\n" +
|
|
|
- " \"content\": \"\",\n" +
|
|
|
- " \"tag\": \"lark_md\"\n" +
|
|
|
- " }\n" +
|
|
|
- " },\n" +
|
|
|
- " {\n" +
|
|
|
- " \"is_short\": true,\n" +
|
|
|
- " \"text\": {\n" +
|
|
|
- " \"content\": \"** 异常方法:**\\n{methodName}\",\n" +
|
|
|
- " \"tag\": \"lark_md\"\n" +
|
|
|
- " }\n" +
|
|
|
- " },\n" +
|
|
|
- " {\n" +
|
|
|
- " \"is_short\": false,\n" +
|
|
|
- " \"text\": {\n" +
|
|
|
- " \"content\": \"\",\n" +
|
|
|
- " \"tag\": \"lark_md\"\n" +
|
|
|
- " }\n" +
|
|
|
- " },\n" +
|
|
|
- " {\n" +
|
|
|
- " \"is_short\": true,\n" +
|
|
|
- " \"text\": {\n" +
|
|
|
- " \"content\": \"** 错误消息:**\\n{errorMsg}\",\n" +
|
|
|
- " \"tag\": \"lark_md\"\n" +
|
|
|
- " }\n" +
|
|
|
- " }\n" +
|
|
|
- " ],\n" +
|
|
|
- " \"tag\": \"div\"\n" +
|
|
|
- " }\n" +
|
|
|
- " ],\n" +
|
|
|
- " \"header\": {\n" +
|
|
|
- " \"template\": \"red\",\n" +
|
|
|
- " \"title\": {\n" +
|
|
|
- " \"content\": \"Adweb询盘报警-{environment}\",\n" +
|
|
|
- " \"tag\": \"plain_text\"\n" +
|
|
|
- " }\n" +
|
|
|
- " }\n" +
|
|
|
- "}";
|
|
|
+ public static final String EXCEPTION_MSG =
|
|
|
+ "{\n"
|
|
|
+ + " \"config\": {\n"
|
|
|
+ + " \"wide_screen_mode\": true\n"
|
|
|
+ + " },\n"
|
|
|
+ + " \"elements\": [\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"fields\": [\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": true,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"** 询盘耗时:**\\n{consumeTime}\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " },\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": false,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " },\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": true,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"** 发生时间:**\\n{time}\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " },\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": false,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " },\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": true,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"** 系统模块:**\\n{title}\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " },\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": false,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " },\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": true,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"** 异常方法:**\\n{methodName}\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " },\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": false,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " },\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": true,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"** 错误消息:**\\n{errorMsg}\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " }\n"
|
|
|
+ + " ],\n"
|
|
|
+ + " \"tag\": \"div\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " ],\n"
|
|
|
+ + " \"header\": {\n"
|
|
|
+ + " \"template\": \"red\",\n"
|
|
|
+ + " \"title\": {\n"
|
|
|
+ + " \"content\": \"Adweb询盘报警-{environment}\",\n"
|
|
|
+ + " \"tag\": \"plain_text\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " }\n"
|
|
|
+ + "}";
|
|
|
|
|
|
+ public static final String PRODUCT_EXCEPTION_MSG =
|
|
|
+ "{\n"
|
|
|
+ + " \"config\": {\n"
|
|
|
+ + " \"wide_screen_mode\": true\n"
|
|
|
+ + " },\n"
|
|
|
+ + " \"elements\": [\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"fields\": [\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": true,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"** 消费产品耗时:**\\n{consumeTime}\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " },\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": false,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " },\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": true,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"** 发生时间:**\\n{time}\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " },\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": false,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " },\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": true,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"** 系统模块:**\\n{title}\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " },\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": false,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " },\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": true,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"** 异常方法:**\\n{methodName}\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " },\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": false,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " },\n"
|
|
|
+ + " {\n"
|
|
|
+ + " \"is_short\": true,\n"
|
|
|
+ + " \"text\": {\n"
|
|
|
+ + " \"content\": \"** 错误消息:**\\n{errorMsg}\",\n"
|
|
|
+ + " \"tag\": \"lark_md\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " }\n"
|
|
|
+ + " ],\n"
|
|
|
+ + " \"tag\": \"div\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " ],\n"
|
|
|
+ + " \"header\": {\n"
|
|
|
+ + " \"template\": \"red\",\n"
|
|
|
+ + " \"title\": {\n"
|
|
|
+ + " \"content\": \"Adweb产品入库报警-{environment}\",\n"
|
|
|
+ + " \"tag\": \"plain_text\"\n"
|
|
|
+ + " }\n"
|
|
|
+ + " }\n"
|
|
|
+ + "}";
|
|
|
}
|