{"Message":"新增WebHook的订阅","MessageType":2,"Modules":[{"State":1,"Type":7,"Name":"Table/FGC_订单记录","ExclusiveType":0},{"State":1,"Type":7,"Name":"Table/FGC_订单明细表","ExclusiveType":0},{"State":1,"Type":7,"Name":"Table/FGC_商品表","ExclusiveType":0},{"State":1,"Type":7,"Name":"Table/项目动态"},{"State":1,"Type":7,"Name":"Table/项目版本"},{"State":1,"Type":23,"Name":"TableView/用户信息视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/用户组织关系视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/用户角色关系视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/组织信息视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/组织级别视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色信息视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色分类关系视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色拥有权限视图","ExclusiveType":0},{"State":1,"Type":23,"Name":"TableView/角色组织关系视图","ExclusiveType":0},{"State":1,"Type":7,"Name":"Table/message_test","ExclusiveType":0},{"State":1,"Type":1,"Name":"PCPage/项目版本管理"},{"State":1,"Type":1,"Name":"PCPage/任务版本详情"},{"State":1,"Type":1,"Name":"PCPage/任务-任务信息"},{"State":1,"Type":1,"Name":"PCPage/新增任务"},{"State":1,"Type":1,"Name":"PCPage/工时总览"},{"State":1,"Type":1,"Name":"PCPage/个人工时首页"},{"State":1,"Type":1,"Name":"PCPage/首页"},{"State":1,"Type":3,"Name":"MasterPCPage/FGC_母版页"},{"State":1,"Type":15,"Name":"ServerCommand/AI报工数据转日报"},{"State":1,"Type":8,"Name":"ApplicationSetting"},{"State":1,"Type":12,"Name":"CustomLibrary"},{"State":1,"Type":26,"Name":"Upload"},{"State":1,"Type":39,"Name":"PublishConfiguration"},{"State":1,"Type":40,"Name":"Plugin"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/请求令牌"},{"State":2,"Type":27,"Name":"ServerCommandPrivate/创建一个仓库WebHook"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/删除一个仓库WebHook"},{"State":1,"Type":7,"Name":"Table/Git仓库表"},{"State":1,"Type":15,"Name":"ServerCommand/GitCallback"},{"State":1,"Type":7,"Name":"Table/Git_事件记录"},{"State":1,"Type":1,"Name":"PCPage/选择Git仓库"},{"State":1,"Type":15,"Name":"ServerCommand/同步一个仓库到表"},{"State":1,"Type":15,"Name":"ServerCommand/搜索仓库"},{"State":3,"Type":27,"Name":"ServerCommandPrivate/列出仓库的WebHooks"},{"State":3,"Type":16,"Name":"TaskScheduler/应用部署时"},{"State":3,"Type":20,"Name":"ServerCommands/系统"},{"State":3,"Type":15,"Name":"ServerCommand/获取版本号"},{"State":3,"Type":15,"Name":"ServerCommand/列出授权用户所有的Namespace"},{"State":3,"Type":15,"Name":"ServerCommand/创建一个仓库WebHook"}],"Version":"v1"}

This commit is contained in:
超哥
2024-06-13 19:51:48 +08:00
parent b8f39fbefc
commit 658b5c7f8f
35 changed files with 2989 additions and 3212 deletions

View File

@@ -67,55 +67,38 @@
}
],
"Commands": [
{
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
"JsonString": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=全局_Gitee"
},
"SampleJson": "{\"client_id\":\"c7d05fcbaf78ad728fcc0267d081ae6c50dc667667758a0933525d4cbe09ed90\",\"client_secret\":\"b4d40db2155ca530e5771b37a2fb67161d4106c64df28f32504b4e3bcfb81313\",\"回调地址\":\"https://develop.gridfriend.cn/pms/ServerCommand/GitCallback\"}",
"ToParameter": "Gitee配置"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "当前用户",
"TableValue": {
"TableName": "用户信息视图",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "366500b8-6b5a-415b-b080-c1984c5c546d",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT用户名",
"GUID": "56abe866-0cb9-4437-b844-3e8a8f30dfa5"
},
"ColumnName": "GIT用户名"
},
{
"GUID": "1483cbe9-393e-45d7-94c4-367742849f83",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT密码",
"GUID": "d2ce4ffe-abcb-4b1b-8fbd-f8481b08df32"
},
"ColumnName": "GIT密码"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "af5d8809-daac-453d-9874-3c1a16f44ecd"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户名"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "1635e0bf7bdf4b56b986f7c95a2104ef"
"ParameterValue": "%CurrentUser%",
"ID": "54d3c5b327f8449babca7b5f296cea3a"
},
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "查找仓库",
"TableValue": {
"TableName": "Git仓库表",
"TableValueType": 3,
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "4f669f8c-c38e-452c-9223-35f7a9a27572",
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "订阅成功",
"GUID": "917e816f-695c-4b75-af4d-bb404ea81fb2"
},
"ColumnName": "绑定成功"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
@@ -128,9 +111,10 @@
"SerializeProperty": "=仓库ID"
}
},
"NullFormulaValueQueryPolicy": 0
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "2abb0425c40841df8b09b37ecbbf58cb"
"ID": "fc30c0772f5e4ae99affdaa5209494b1"
},
{
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
@@ -148,7 +132,7 @@
"SerializeProperty": "=查找仓库"
}
},
"value": "0"
"value": "%Null%"
},
"CommandList": [
{
@@ -161,7 +145,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库ID",
"GUID": "dbd47bc5-1fde-4182-8e78-1d3c76ea6223"
"GUID": "1082605c-1429-4edc-8b4c-434c60c43252"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -172,7 +156,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "空间路径名",
"GUID": "abca3f5e-e20c-455b-b775-67f048fa8c87"
"GUID": "a2efe75d-6164-4966-b690-801e3795d21a"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -183,7 +167,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "空间名称",
"GUID": "87681325-0d60-4165-94da-7f3190953f10"
"GUID": "a2479990-5f1b-4983-acc4-20f68b94af90"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -194,7 +178,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库路径名",
"GUID": "5b0f1389-5fc4-4330-b890-9d20f57e44bc"
"GUID": "eaaa2b00-c63d-4394-a2fe-49c500e2faef"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -205,7 +189,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库名称",
"GUID": "714bfac1-405b-4a5d-9a22-bcff5b3cd28f"
"GUID": "1b2b0532-572e-4331-ac85-988cbce958c1"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -216,7 +200,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库地址",
"GUID": "7dce609f-eea9-4411-8037-4b6a3730449f"
"GUID": "5c424701-fce3-44cc-b626-7f14dc7f41c6"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -227,7 +211,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库描述",
"GUID": "de30e5d1-4837-4ebc-8ad3-344b36eb75ed"
"GUID": "c9c4e52a-839e-4483-9c35-9118cf4ce34d"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -238,7 +222,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库成员",
"GUID": "8ae4008a-c654-483d-ab3e-6ffe05ec8f68"
"GUID": "8e47036f-a48c-45a7-b205-b42e39cbf499"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -249,7 +233,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "创建人",
"GUID": "15f8dcd3-e557-413c-9edb-b065a7496b0e"
"GUID": "1599bc4e-4103-48b1-a5b4-960d658cee14"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -260,17 +244,36 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "创建人头像",
"GUID": "c26b8a11-866b-4c85-b69c-45501406eb3b"
"GUID": "abb4a6b9-7c75-4455-91c3-dd62370f62a5"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=创建人头像"
}
},
{
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "hook_url",
"GUID": "a9d19b38-b4ab-49dc-8ec3-0544384e5c58"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Gitee配置.回调地址"
}
},
{
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "订阅成功",
"GUID": "50edfabc-aecf-4851-af6f-0f8f09b6a4be"
},
"Value": "0"
}
]
}
],
"ID": "aebd842f-5e38-4248-bc8a-4cd8b7f809e4"
"ID": "cce9653e-ed26-4971-bb60-868b659af738"
},
{
"CommandList": [
@@ -296,7 +299,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "空间路径名",
"GUID": "4cace823-2051-4a68-be59-823a2b1af654"
"GUID": "dd12a605-d5a6-4fdc-8d3e-cb2c5afc191e"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -307,7 +310,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "空间名称",
"GUID": "1de7544c-bf71-4d40-8a9a-2007c833de53"
"GUID": "31dadfcb-2aef-4091-b467-3c1c15e30b76"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -318,7 +321,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库路径名",
"GUID": "00ae0991-9a9b-4f75-aac6-146b1421a1f3"
"GUID": "9dcbe99d-92b4-4cb1-aad2-ba5bbeb034b3"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -329,7 +332,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库名称",
"GUID": "31ce0962-b44b-4c79-96b8-a4fe0d660f24"
"GUID": "a4ae2be3-852a-469f-b408-142d80f48e19"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -340,7 +343,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库地址",
"GUID": "af88bb26-fcc8-494a-ae5f-f39d2c549612"
"GUID": "2bdc2766-1b71-49a0-b2af-3ac04a956158"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -351,7 +354,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库描述",
"GUID": "589d9932-db4e-403d-9484-af3ec8564b39"
"GUID": "1cf9fc74-7684-44f9-b48c-fc5f7b15b2b2"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -362,7 +365,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "仓库成员",
"GUID": "ffbef827-bb53-428e-a446-e6951cdd4efb"
"GUID": "91a2422b-e5db-4225-9ef3-2368813a02bb"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -373,7 +376,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "创建人",
"GUID": "6a03ba3f-11fb-4c27-a6a7-10cd85f29660"
"GUID": "88141a74-bb6d-415a-bc4e-dd6fe45111f1"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -384,7 +387,7 @@
"BindingInfo": {
"TableName": "Git仓库表",
"ColumnName": "创建人头像",
"GUID": "339132cf-3720-424e-87ef-0a539efe8026"
"GUID": "1329af92-8a83-4cba-9294-a8e6349f5e73"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
@@ -394,95 +397,118 @@
]
}
],
"ID": "62a3c749-befb-4c70-8d39-5f5f5016f21e"
"ID": "8d7222c3-a0df-4084-a9e8-39635a46a376"
}
]
},
}
]
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
"ServerCommandName": "创建一个仓库WebHook",
"Parameters": [
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "仓库ID",
"Value": {
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=仓库路径名"
"SerializeProperty": "=Gitee配置.回调地址"
}
},
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "用户名",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=当前用户"
}
}
],
"ResultErrorCodeTo": {
"SerializeProperty": "code"
"value": "%Null%",
"compareType": 1
},
"ResultMessageTo": {
"SerializeProperty": "msg"
},
"ReturnPropertiesTo": [
"CommandList": [
{
"ResultPropertyName": "id",
"ResultTo": {
"SerializeProperty": "res_hookId"
}
},
{
"ResultPropertyName": "url",
"ResultTo": {
"SerializeProperty": "res_URL"
}
},
{
"ResultPropertyName": "password",
"ResultTo": {
"SerializeProperty": "res_密码"
}
}
],
"RefreshAfterFinish": true,
"CheckDataValidation": true
},
{
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
"ServerCommandName": "创建一个仓库WebHook",
"Parameters": [
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "仓库ID",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=code"
"SerializeProperty": "=仓库ID"
}
},
"value": "0"
},
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "仓库创建并订阅成功!"
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "用户名",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=当前用户"
}
},
{
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
"ParamName": "回调地址",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Gitee配置.回调地址"
}
}
],
"ID": "c55bf80e-90d8-4d7f-9365-34f71cfb6567"
"ResultErrorCodeTo": {
"SerializeProperty": "code"
},
"ResultMessageTo": {
"SerializeProperty": "msg"
},
"RefreshAfterFinish": true,
"CheckDataValidation": true
},
{
"CommandList": [
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
"ConditionAndCommandPairList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "仓库创建成功,但未能订阅,请手动订阅"
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=code"
}
},
"value": "0"
},
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "仓库创建并订阅成功!"
}
],
"ID": "26633f60-fa35-46ed-8a51-214624ab8565"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"仓库创建成功,但未能订阅:\"&msg"
}
}
],
"ID": "f154763b-8f00-458c-b886-edf25bd928a8"
}
],
"ID": "a8c36ae0-f75f-4215-a245-ac6038b5d58c"
]
}
]
],
"ID": "937774c3-9d6c-4e46-a752-2d3f181e52de"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "仓库创建成功!"
}
],
"ID": "2eb0ad43-5996-4e32-8d39-1cd1f5e3cb0d"
}
]
}