475 lines
26 KiB
JSON
475 lines
26 KiB
JSON
{
|
|
"$type": "Forguncy.SaveLoad.ServerCommandSaveData, ServerDesignerCommon",
|
|
"Name": "列出仓库的WebHooks",
|
|
"Enabled": true,
|
|
"Triggers": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.TriggerSaveDataBase, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon",
|
|
"Parameters": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon",
|
|
"Name": "仓库ID",
|
|
"DataValidationInfo": {
|
|
"$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon",
|
|
"IgnoreBlank": false
|
|
},
|
|
"TestData": "33487312"
|
|
},
|
|
{
|
|
"$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon",
|
|
"Name": "用户名",
|
|
"DataValidationInfo": {
|
|
"$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon",
|
|
"IgnoreBlank": false
|
|
},
|
|
"TestData": "Administrator"
|
|
}
|
|
]
|
|
},
|
|
"InvokeTriggerTestData": {
|
|
"$type": "Forguncy.SaveLoad.InvokeTriggerTestDataSaveData, ServerDesignerCommon",
|
|
"UserName": "Administrator"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"Commands": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "当前用户",
|
|
"TableValue": {
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValue, ServerDesignerCommon",
|
|
"TableName": "用户信息视图",
|
|
"TableValueType": 1,
|
|
"BindingInfos": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
|
"GUID": "c6eb66bd-c1e2-4bf4-ad2d-549a68fb23f2",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "GIT用户名",
|
|
"GUID": "68ee86fa-88ce-4787-9175-7fb4b1f4639f"
|
|
},
|
|
"ColumnName": "GIT用户名"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
|
"GUID": "30c3f423-ad80-474d-ae90-2e7dc076bddb",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "GIT密码",
|
|
"GUID": "4ca2adb0-be71-4cff-a7f0-0f319f33fc35"
|
|
},
|
|
"ColumnName": "GIT密码"
|
|
}
|
|
]
|
|
},
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "用户名",
|
|
"GUID": "e3ee2272-9867-43eb-97ee-199cb94862de"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=用户名"
|
|
}
|
|
},
|
|
"NullFormulaValueQueryPolicy": 0,
|
|
"TopCount": "1"
|
|
},
|
|
"ID": "22c08c26600240308f2761ba08d0b396",
|
|
"BreakpointIdentity": "2a7059b8-fbdc-482c-a0ec-a4ed999dd133"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "仓库",
|
|
"TableValue": {
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValue, ServerDesignerCommon",
|
|
"TableName": "Git仓库表",
|
|
"TableValueType": 1,
|
|
"BindingInfos": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
|
"GUID": "eab47598-bcd0-4b61-ab21-f4499617214f",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库路径名",
|
|
"GUID": "2c41e2fb-0784-4414-a2f6-e7bf48e1a825"
|
|
},
|
|
"ColumnName": "仓库路径名"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
|
"GUID": "72c9972f-e241-4bc7-8414-58a9ecdcd638",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "空间路径名",
|
|
"GUID": "a4dc7e40-113c-4634-a254-bd3d364169e2"
|
|
},
|
|
"ColumnName": "空间路径名"
|
|
}
|
|
]
|
|
},
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库ID",
|
|
"GUID": "7aa0116e-f6a8-4a54-9dc1-10755107fdf9"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库ID"
|
|
}
|
|
},
|
|
"NullFormulaValueQueryPolicy": 0,
|
|
"TopCount": "1"
|
|
},
|
|
"ID": "a2fa9d23eaeb4e18ba0abc7c6ba18b88",
|
|
"BreakpointIdentity": "b5de737b-48db-433b-9c22-2f9bb00e0af4"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
|
"ConditionAndCommandPairList": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon",
|
|
"Condition": {
|
|
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
|
"param": {
|
|
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
|
"ParamObject": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库"
|
|
}
|
|
},
|
|
"value": "%Null%",
|
|
"compareType": 1
|
|
},
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
|
"ServerCommandName": "请求令牌",
|
|
"Parameters": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.RequestServerCommandParamBase, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "用户名",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=用户名"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "强制刷新",
|
|
"Value": "0"
|
|
}
|
|
]
|
|
},
|
|
"ResultErrorCodeTo": {
|
|
"$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon",
|
|
"SerializeProperty": "code"
|
|
},
|
|
"ResultMessageTo": {
|
|
"$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon",
|
|
"SerializeProperty": "msg"
|
|
},
|
|
"ReturnPropertiesTo": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon",
|
|
"ResultPropertyName": "最新令牌",
|
|
"ResultTo": {
|
|
"$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon",
|
|
"SerializeProperty": "TOKEN"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"RefreshAfterFinish": true,
|
|
"CheckDataValidation": true,
|
|
"BreakpointIdentity": "62fab694-7e35-4a53-b5ed-fb3e03c830e6"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
|
"ConditionAndCommandPairList": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon",
|
|
"Condition": {
|
|
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
|
"param": {
|
|
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
|
"ParamObject": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=code"
|
|
}
|
|
},
|
|
"value": "0"
|
|
},
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "url",
|
|
"ParameterValue": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=\"https://gitee.com/api/v5/repos/\"&仓库.空间路径名&\"/\"&仓库.仓库路径名&\"/hooks\""
|
|
},
|
|
"ID": "fbb123be017a4289846192ec2842aebb",
|
|
"BreakpointIdentity": "9fd2dfab-43bc-44d0-9138-9b398e5efc66"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
|
|
"TryCommandPart": {
|
|
"$type": "Forguncy.Model.ExceptionCommandBaseNode, ServerDesignerCommon",
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "PostDataToWebApi.PostDataCommand, PostDataToWebApi",
|
|
"PostData": {
|
|
"$type": "PostDataToWebApi.DataItem, PostDataToWebApi",
|
|
"DataItemType": 1,
|
|
"Data": {
|
|
"$type": "PostDataToWebApi.ObjectData, PostDataToWebApi",
|
|
"Data": {
|
|
"$type": "System.Collections.Generic.List`1[[PostDataToWebApi.DataItem, PostDataToWebApi]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "PostDataToWebApi.DataItem, PostDataToWebApi",
|
|
"Name": "access_token",
|
|
"DataItemType": 0,
|
|
"Data": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=TOKEN"
|
|
}
|
|
},
|
|
{
|
|
"$type": "PostDataToWebApi.DataItem, PostDataToWebApi",
|
|
"Name": "page",
|
|
"DataItemType": 0,
|
|
"Data": 1
|
|
},
|
|
{
|
|
"$type": "PostDataToWebApi.DataItem, PostDataToWebApi",
|
|
"Name": "per_page",
|
|
"DataItemType": 0,
|
|
"Data": 100
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"JsonString": "",
|
|
"WebUrl": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=url"
|
|
},
|
|
"Method": "GET",
|
|
"SuccessCallback": "// 请求成功返回的数据存储在“result”变量中\r\n// 请使用“result”变量来完成请求成功的回调 \r\n//console.log(result);",
|
|
"ErrorCallback": "// 请求中发生的错误存储在“error”变量中\r\n// 请使用“error”变量来处理异常情况 \r\nconsole.error(error);",
|
|
"NewParameter": "result",
|
|
"Header": {
|
|
"$type": "System.Collections.Generic.List`1[[PostDataToWebApi.RequestHeaderSaveAndLoad, PostDataToWebApi]], System.Private.CoreLib",
|
|
"$values": []
|
|
},
|
|
"Timeout": 100.0,
|
|
"BreakpointIdentity": "de6ea5df-1149-490b-8bfe-8baeda3a45e5"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "完成",
|
|
"CustomReturns": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "钩子列表",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=result"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "ACCESS_TOKEN",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=TOKEN"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "952c124b-edc3-4d23-9b05-da7f2704e214"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"CatchCommandPart": {
|
|
"$type": "Forguncy.Model.CatchCommandNode, ServerDesignerCommon",
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
|
|
"JsonString": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=ExceptionMessage"
|
|
},
|
|
"SampleJson": "{\"message\":\"\"}",
|
|
"ToParameter": "错误信息",
|
|
"BreakpointIdentity": "9fb8c287-d338-4210-9cb2-606ee19e4c27"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "400",
|
|
"Message": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=错误信息.message"
|
|
},
|
|
"CustomReturns": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "钩子列表"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "ACCESS_TOKEN",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=TOKEN"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "097965aa-43b4-4dad-97e5-0b2f371797c3"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"BreakpointIdentity": "6a7ffa44-204d-4a43-b812-735e935bdc26"
|
|
}
|
|
]
|
|
},
|
|
"ID": "abb23f44-19bc-4107-bbaa-10fd53d08eb6"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon",
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=code"
|
|
},
|
|
"Message": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=msg"
|
|
},
|
|
"CustomReturns": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "钩子列表"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "ACCESS_TOKEN"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "c742ba16-49d5-488e-9d33-9b40f5f9bfdf"
|
|
}
|
|
]
|
|
},
|
|
"ID": "d33170ea-2b00-4066-a0e7-bea39d8fd021"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "c26db4eb-bcee-42e3-8fe8-eb37f4c3d6c8"
|
|
}
|
|
]
|
|
},
|
|
"ID": "6e9b6bb9-d407-485b-8adb-978f29968d3e"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon",
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "400",
|
|
"Message": "仓库不存在,请先同步仓库到系统中",
|
|
"CustomReturns": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "钩子列表"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "ACCESS_TOKEN"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "9c752f0c-1c29-4d77-b392-f0dd0ada8add"
|
|
}
|
|
]
|
|
},
|
|
"ID": "6ccca0a5-74d2-4572-b128-196492db1236"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "cf4fa366-530c-4c29-aa26-49a59f75eb1d"
|
|
}
|
|
]
|
|
},
|
|
"ReturnProperties": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon",
|
|
"Name": "钩子列表"
|
|
},
|
|
{
|
|
"$type": "Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon",
|
|
"Name": "ACCESS_TOKEN"
|
|
}
|
|
]
|
|
}
|
|
} |