feat(lark-mcp): 重构资产确认卡片并更新项目配置
重构 send_asset_confirmation_card 工具,使用新的卡片模板和参数结构 - 将卡片布局从 column_set 改为 form,简化结构 - 更新参数:inputs/outputs 合并为 asset_list,新增 order_number 和 remark - 卡片交互按钮现在传递 order_number 和 user_id 到回调 - 更新工具描述和必填字段 同时更新 MCP 服务器配置: - 统一重命名项目为 lzwcai-lark-mcp 和 lzwcai-file-tools-mcp - 更新版本号和配置文件中的命令名称 - 更新 file-tools 的 MinIO 环境变量配置
This commit is contained in:
@@ -15,57 +15,30 @@
|
||||
"body": {
|
||||
"direction": "vertical",
|
||||
"elements": [
|
||||
{
|
||||
"tag": "column_set",
|
||||
"flex_mode": "stretch",
|
||||
"horizontal_spacing": "12px",
|
||||
"horizontal_align": "left",
|
||||
"columns": [
|
||||
{
|
||||
"tag": "column",
|
||||
"width": "weighted",
|
||||
"elements": [
|
||||
{
|
||||
"tag": "markdown",
|
||||
"content": "**<font color='blue-600'>用户:</font>** <person id=${user_id} show_name=true show_avatar=true style='normal'></person>",
|
||||
"text_align": "left",
|
||||
"text_size": "normal"
|
||||
}
|
||||
],
|
||||
"vertical_spacing": "8px",
|
||||
"horizontal_align": "left",
|
||||
"vertical_align": "top",
|
||||
"weight": 1
|
||||
},
|
||||
{
|
||||
"tag": "column",
|
||||
"width": "weighted",
|
||||
"elements": [
|
||||
{
|
||||
"tag": "markdown",
|
||||
"content": "**<font color='blue-600'>发生时间:</font>** <font color='grey'>${change_time}</font>",
|
||||
"text_align": "left",
|
||||
"text_size": "normal"
|
||||
}
|
||||
],
|
||||
"vertical_spacing": "8px",
|
||||
"horizontal_align": "left",
|
||||
"vertical_align": "top",
|
||||
"weight": 1
|
||||
}
|
||||
],
|
||||
"margin": "0px 0px 0px 0px"
|
||||
},
|
||||
{
|
||||
"tag": "hr",
|
||||
"margin": "0px 0px 0px 0px"
|
||||
},
|
||||
{
|
||||
"tag": "form",
|
||||
"elements": [
|
||||
{
|
||||
"tag": "markdown",
|
||||
"content": "**<font color='blue-600'>\\*请准确选择属于您的变动项:</font>**",
|
||||
"content": "**<font color='blue-600'>确认单号:</font>** <font color='grey'>${order_number}</font>",
|
||||
"text_align": "left",
|
||||
"text_size": "normal"
|
||||
},
|
||||
{
|
||||
"tag": "markdown",
|
||||
"content": "**<font color='blue-600'>用户:</font>** <person id=${user_id} show_name=true show_avatar=true style='normal'></person>",
|
||||
"text_align": "left",
|
||||
"text_size": "normal"
|
||||
},
|
||||
{
|
||||
"tag": "markdown",
|
||||
"content": "**<font color='blue-600'>发生时间:</font>** <font color='grey'>${change_time}</font>",
|
||||
"text_align": "left",
|
||||
"text_size": "normal"
|
||||
},
|
||||
{
|
||||
"tag": "markdown",
|
||||
"content": "**<font color='blue-600'>\\*请准确选择关于您的变动项:</font>**",
|
||||
"text_align": "left",
|
||||
"text_size": "normal",
|
||||
"margin": "0px 0px 8px 0px"
|
||||
@@ -76,29 +49,18 @@
|
||||
"tag": "plain_text",
|
||||
"content": "请选择资产变动项"
|
||||
},
|
||||
"options": [
|
||||
{
|
||||
"text": {
|
||||
"tag": "plain_text",
|
||||
"content": "资产项1"
|
||||
},
|
||||
"value": "item1"
|
||||
},
|
||||
{
|
||||
"text": {
|
||||
"tag": "plain_text",
|
||||
"content": "资产项2"
|
||||
},
|
||||
"value": "item2"
|
||||
}
|
||||
],
|
||||
"options": "${asset_list}",
|
||||
"type": "default",
|
||||
"width": "fill",
|
||||
"required": false,
|
||||
"name": "asset_changes",
|
||||
"name": "input_assets",
|
||||
"margin": "0px 0px 16px 0px",
|
||||
"element_id": "cIiptD7Z4hCtAeR5Rb0b"
|
||||
},
|
||||
{
|
||||
"tag": "hr",
|
||||
"margin": "0px 0px 0px 0px"
|
||||
},
|
||||
{
|
||||
"tag": "markdown",
|
||||
"content": "**<font color='blue-600'>其他说明:</font>**",
|
||||
@@ -114,7 +76,7 @@
|
||||
},
|
||||
"default_value": "",
|
||||
"width": "fill",
|
||||
"name": "Input_3h27n7woqci",
|
||||
"name": "input_remark",
|
||||
"margin": "0px 0px 0px 0px"
|
||||
},
|
||||
{
|
||||
@@ -140,7 +102,7 @@
|
||||
{
|
||||
"type": "callback",
|
||||
"value": {
|
||||
"action": "confirm_asset_changes"
|
||||
"action": "card.action.trigger"
|
||||
}
|
||||
}
|
||||
],
|
||||
@@ -168,7 +130,7 @@
|
||||
"confirm": {
|
||||
"title": {
|
||||
"tag": "plain_text",
|
||||
"content": "反馈并废除该确认单吗?"
|
||||
"content": "反馈误报并废除该确认单吗?"
|
||||
},
|
||||
"text": {
|
||||
"tag": "plain_text",
|
||||
@@ -179,7 +141,7 @@
|
||||
{
|
||||
"type": "callback",
|
||||
"value": {
|
||||
"": ""
|
||||
"action": "card.action.trigger"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user