{"Message":"增加钉钉工作通知测试","MessageType":2,"Modules":[{"State":1,"Type":1,"Name":"PCPage/开发测试"},{"State":1,"Type":11,"Name":"UserService"},{"State":1,"Type":40,"Name":"Plugin"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/初始化钉钉配置"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/通过免登码获取用户信息"},{"State":1,"Type":15,"Name":"ServerCommand/绑定钉钉UnionId"},{"State":3,"Type":15,"Name":"ServerCommand/服务端命令5"},{"State":3,"Type":15,"Name":"ServerCommand/发送工作通知消息"}],"Version":"v1"}
This commit is contained in:
@@ -38,6 +38,7 @@
|
||||
"SerializeProperty": "=钉钉配置.AppKey"
|
||||
},
|
||||
"DingTalkeExtendedName": "DingTalkUnionID",
|
||||
"DingTalkeUserIdExtendedName": "DingTalkUserID",
|
||||
"AppSecret": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=钉钉配置.AppSecret"
|
||||
|
||||
99
ServerCommands/钉钉/发送工作通知消息.json
Normal file
99
ServerCommands/钉钉/发送工作通知消息.json
Normal file
@@ -0,0 +1,99 @@
|
||||
{
|
||||
"Name": "发送工作通知消息",
|
||||
"Enabled": true,
|
||||
"Triggers": [
|
||||
{
|
||||
"$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon",
|
||||
"Permission": {
|
||||
"PermissionData": {
|
||||
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core",
|
||||
"permissionResource": {
|
||||
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core"
|
||||
},
|
||||
"permissionBindings": [
|
||||
{
|
||||
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core",
|
||||
"roleNames": [
|
||||
"FGC_LoginUser"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Parameters": [
|
||||
{
|
||||
"Name": "接收人",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
},
|
||||
"TestData": "shamus"
|
||||
},
|
||||
{
|
||||
"Name": "消息内容",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"InvokeTriggerTestData": {
|
||||
"UserName": "Administrator"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Commands": [
|
||||
{
|
||||
"$type": "DingTalkPlugin.Asyncsend, DingTalkPlugin",
|
||||
"Userid_list": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=接收人"
|
||||
},
|
||||
"MsgType": "text",
|
||||
"Text_Content": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=消息内容"
|
||||
},
|
||||
"Action_card_Btn_Type": "0",
|
||||
"Action_card_Markdown": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=生成结果"
|
||||
},
|
||||
"Action_card_Title": "这是一个工作汇报卡片模板测试",
|
||||
"Action_card_Single_title": "XXX提交了个人日报",
|
||||
"Action_card_Single_Url": "https://www.baidu.com",
|
||||
"Action_card_Btn_orientation": "1",
|
||||
"Action_card_Btn_list": [
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
},
|
||||
{
|
||||
"Title": "查看"
|
||||
}
|
||||
],
|
||||
"Task_id": "钉钉消息任务ID"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -54,6 +54,12 @@
|
||||
"ResultTo": {
|
||||
"SerializeProperty": "UnionId"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ResultPropertyName": "钉钉UserId",
|
||||
"ResultTo": {
|
||||
"SerializeProperty": "UserId"
|
||||
}
|
||||
}
|
||||
],
|
||||
"RefreshAfterFinish": true,
|
||||
@@ -215,6 +221,13 @@
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=UnionId"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "DingTalkUserID",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=UserId"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -234,7 +247,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "c64bbee5-ab11-4033-892f-0441fe2d7faa"
|
||||
"ID": "333bbd2b-db19-4b12-b585-da82edcb6437"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -272,7 +285,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "78b4fa6c-a0e2-4ebb-b351-bcf30798ce44"
|
||||
"ID": "68a92064-43fc-4301-904b-5694a78eaf64"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -290,17 +303,17 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "29f2d4cc-7ec2-4aff-81dc-33e4fcf656ee"
|
||||
"ID": "d00f17e3-9afd-4f26-beaa-f894b1c9ec01"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "b1533ed2-d7cb-4c1b-8c36-7b5ff67c27d8"
|
||||
"ID": "c5167a61-d7fa-4640-a368-25152215bf59"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "d697972d-1bee-41d6-9eb8-fa626cfe167b"
|
||||
"ID": "cae9fcb7-ba66-4115-b3e0-e3879a259a47"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -321,7 +334,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "bc8268c4-6832-4239-b690-657de19635cb"
|
||||
"ID": "27d55936-78c1-41d3-9bab-9151c7a607f7"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -34,6 +34,13 @@
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=用户信息.unionid"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "钉钉UserId",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=用户信息.userid"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -41,6 +48,9 @@
|
||||
"ReturnProperties": [
|
||||
{
|
||||
"Name": "钉钉UnionId"
|
||||
},
|
||||
{
|
||||
"Name": "钉钉UserId"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user