msg-card.ftl 5.37 KB
{
  "elements": [
    {
      "tag": "markdown",
      "content": "${content}"
    }
    <#if appType??>,
    {
      "tag": "action",
      "actions": [
        {
          "tag": "${appType.tag}",
          "placeholder": {
            "tag": "plain_text",
            "content": "${appType.content}"
          },
          "value":{
            "key" : "appType"
          },
          "options": [
            <#list appType.options as appType_option>
            {
              "text": {
                "tag": "plain_text",
                "content": "${appType_option}"
              },
              "value": "${appType_option}"
            }
            <#if appType_option_has_next>,</#if>
            </#list>
          ]
        }
      ]
    }
    </#if>
    <#if module??>,
    {
      "tag": "action",
      "actions": [
        {
          "tag": "${module.tag}",
          "placeholder": {
            "tag": "plain_text",
            "content": "${module.content}"
          },
          "value":{
            "key" : "module"
          },
          "options": [
            <#list module.options as module_option>
            {
              "text": {
                "tag": "plain_text",
                "content": "${module_option}"
              },
              "value": "${module_option}"
            }
            <#if module_option_has_next>,</#if>
            </#list>
          ]
        }
      ]
    }
    </#if>
    <#if level??>,
    {
      "tag": "action",
      "actions": [
        {
          "tag": "${level.tag}",
          "placeholder": {
            "tag": "plain_text",
            "content": "${level.content}"
          },
          "value":{
              "key" : "level"
          },
          "options": [
            <#list level.options as levle_option>
            {
              "text": {
                "tag": "plain_text",
                "content": "${levle_option}"
              },
              "value": "${levle_option}"
            }<#if levle_option_has_next>,</#if>
            </#list>
          ]
        }
      ]
    }
    </#if>
    <#if assign??>,
    {
      "tag": "action",
      "actions": [
        {
          "tag": "${assign.tag}",
          "placeholder": {
            "tag": "plain_text",
            "content": "${assign.content}"
          },
          "value":{
            "key" : "assign"
          },
          "options": [
            <#list assign.options as assign_option>
            {
              "value": "${assign_option}"
            }<#if assign_option_has_next>,</#if>
            </#list>
          ]
        }
      ]
    }
    </#if>
    <#if verify??>,
    {
      "tag": "action",
      "actions": [
        {
          "tag": "${verify.tag}",
          "placeholder": {
            "tag": "plain_text",
            "content": "${verify.content}"
          },
          "value":{
            "key" : "verify"
          },
          "options": [
          <#list verify.options as verify_option>
            {
              "value": "${verify_option}"
            }<#if verify_option_has_next>,</#if>
          </#list>
          ]
        }
      ]
    }
    </#if>
    <#if handle??>,
    {
      "tag": "div",
      "text": {
      "content": "若需要转发可重新指派,自己处理请点击“我来”",
      "tag": "lark_md"
      }
    },
    {
      "tag": "action",
      "actions": [
        {
          "tag": "${handle.tag}",
          "text": {
            "tag": "plain_text",
            "content": "${handle.content}"
          },
          "type": "primary",
          "value":{
            "key" : "handle"
          }
        }
      ]
    }
    </#if>
    <#if finishTime??>,
    {
      "tag": "action",
      "actions": [
        {
          "tag": "${finishTime.tag}",
          "placeholder": {
            "tag": "plain_text",
            "content": "${finishTime.content}"
          },
          "value":{
              "key" : "finishTime"
          }
        }
      ]
    }
    </#if>
    <#if fileFinish??>,
    {
      "tag": "div",
      "text": {
        "tag": "lark_md",
        "content": " 负责人任务已完成,您可选择直接完成或归档。注意后续仍需要跟进处理的请选择归档,系统会帮你创建飞书任务,请慎重选择!"
      },
      "extra": {
        "tag": "${fileFinish.tag}",
        "options": [
          <#list fileFinish.options as fileFinish_option>
          {
            "text": {
              "tag": "plain_text",
              "content": "${fileFinish_option}"
            },
            "value": "${fileFinish_option}"
          }<#if fileFinish_option_has_next>,</#if>
          </#list>
        ],
       "value": {
          "key": "fileFinish"
        }
      }
    }
    </#if>
    <#if finish??>,
    {
      "tag": "action",
      "actions": [
        {
          "tag": "${finish.tag}",
          "text": {
            "tag": "plain_text",
            "content": "${finish.content}"
          },
          "type": "primary",
          "value":{
            "key" : "finish"
          }
        }
      ]
    }
    </#if>
  ],
  "header": {
    "template": "${color}",
    "title": {
      "tag": "plain_text",
      "content": "你有一条新的反馈群消息待处理!"
    }
  },
  "card_link": {
    "url": "https://applink.feishu.cn/client/chat/open?openChatId=oc_ffe88a3306221742b18f2bf9e119c17a"
  },
  "config": {
    "wide_screen_mode": true,
    "update_multi":true
  }
}