781 lines
55 KiB
JSON
781 lines
55 KiB
JSON
{
|
|
"$type": "Forguncy.SaveLoad.ServerCommandSaveData, ServerDesignerCommon",
|
|
"Name": "创建一个仓库WebHook",
|
|
"Enabled": true,
|
|
"Triggers": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.TriggerSaveDataBase, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon",
|
|
"Permission": {
|
|
"$type": "Forguncy.SaveLoad.ServerCommandPermissionSaveData, ServerDesignerCommon",
|
|
"PermissionData": {
|
|
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core",
|
|
"permissionResource": {
|
|
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core"
|
|
},
|
|
"permissionBindings": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.RbacPermission.Core.Impl.ServerCommand.IServerCommandPermissionBinding, Forguncy.RbacPermission.Core]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core",
|
|
"roleNames": {
|
|
"$type": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib]], System.Private.CoreLib",
|
|
"$values": [
|
|
"FGC_LoginUser"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"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": "gyrnccc"
|
|
},
|
|
{
|
|
"$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon",
|
|
"Name": "用户名",
|
|
"DataValidationInfo": {
|
|
"$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon",
|
|
"IgnoreBlank": false
|
|
},
|
|
"TestData": "Administrator"
|
|
},
|
|
{
|
|
"$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon",
|
|
"Name": "回调地址",
|
|
"DataValidationInfo": {
|
|
"$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"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": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
|
|
"JsonString": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=全局_Gitee"
|
|
},
|
|
"SampleJson": "{\"client_id\":\"c7d05fcbaf78ad728fcc0267d081ae6c50dc667667758a0933525d4cbe09ed90\",\"client_secret\":\"b4d40db2155ca530e5771b37a2fb67161d4106c64df28f32504b4e3bcfb81313\",\"回调地址\":\"https://develop.gridfriend.cn/sims/ServerCommand/GitCallback\"}",
|
|
"ToParameter": "Gitee配置",
|
|
"BreakpointIdentity": "09b22a4d-9293-4baa-b78e-803aa03c32db"
|
|
},
|
|
{
|
|
"$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": "c26e601c-dffb-46f1-be97-ce46d5deadcc",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "GIT用户名",
|
|
"GUID": "a7631324-378f-4577-a8af-d976f21cda27"
|
|
},
|
|
"ColumnName": "GIT用户名"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
|
"GUID": "b594d85c-3422-4cb3-a063-69e472c32537",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "GIT密码",
|
|
"GUID": "523d4df5-59b6-4437-b68b-661078b7bab5"
|
|
},
|
|
"ColumnName": "GIT密码"
|
|
}
|
|
]
|
|
},
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "用户名",
|
|
"GUID": "86de2db8-485a-4991-bb27-80ceb2d895c8"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=用户名"
|
|
}
|
|
},
|
|
"NullFormulaValueQueryPolicy": 0,
|
|
"TopCount": "1"
|
|
},
|
|
"ID": "ea6babeddf554a1eb8f46e195877e952",
|
|
"BreakpointIdentity": "807667b9-5099-4525-94ec-1b739671f9d9"
|
|
},
|
|
{
|
|
"$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": "0a505d22-ea26-4dc6-b902-96c42172d2b9",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库路径名",
|
|
"GUID": "2c41e2fb-0784-4414-a2f6-e7bf48e1a825"
|
|
},
|
|
"ColumnName": "仓库路径名"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
|
"GUID": "121fa6ba-4747-40c0-b487-a07c961bfc2e",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "空间路径名",
|
|
"GUID": "a4dc7e40-113c-4634-a254-bd3d364169e2"
|
|
},
|
|
"ColumnName": "空间路径名"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
|
"GUID": "503ebf75-30bd-4a66-a195-648da8f8fc6e",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "Callback_url",
|
|
"GUID": "b34b70ae-08b3-4667-be01-afce405fb9bc"
|
|
},
|
|
"ColumnName": "hook_url"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
|
"GUID": "86dc894b-ec40-4338-9790-00d444e8415b",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "hook_api_url",
|
|
"GUID": "e2132ce0-b395-4f03-8d7d-f8ed3bea93f0"
|
|
},
|
|
"ColumnName": "hook_api_url"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
|
"GUID": "a05ca3bf-0ba0-4492-ba0c-214241c0d440",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "订阅成功",
|
|
"GUID": "01bbed57-b961-4d6b-b4ee-dba6636960af"
|
|
},
|
|
"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": "1b4300438e784c359a61002851e79412",
|
|
"BreakpointIdentity": "996de412-ef2f-445f-b94d-7de792dd825f"
|
|
},
|
|
{
|
|
"$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.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": "1",
|
|
"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": "列出仓库的WebHooks",
|
|
"Parameters": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.RequestServerCommandParamBase, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "仓库ID",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库ID"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "用户名",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=用户名"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"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": "钩子列表"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon",
|
|
"ResultPropertyName": "ACCESS_TOKEN",
|
|
"ResultTo": {
|
|
"$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon",
|
|
"SerializeProperty": "ACCESS_TOKEN"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"RefreshAfterFinish": true,
|
|
"CheckDataValidation": true,
|
|
"BreakpointIdentity": "b6988f5b-1a7d-4c2e-bf58-5095cd3e9f42"
|
|
},
|
|
{
|
|
"$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": "查找钩子",
|
|
"ID": "6f7ee52d7d6d4a18b64e15dc1131d859",
|
|
"BreakpointIdentity": "661f6637-389b-4a29-99ec-bd6a3ef55e03"
|
|
},
|
|
{
|
|
"$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": "=钩子列表.Count"
|
|
}
|
|
},
|
|
"value": "0",
|
|
"compareType": 2
|
|
},
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "CollectionOperationKit.ServerSideArrayQuery, CollectionOperationKit",
|
|
"InParamater": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=钩子列表"
|
|
},
|
|
"Operation": 1,
|
|
"OperationParamaterPairs": {
|
|
"$type": "System.Collections.Generic.List`1[[CollectionOperationKit.QueryConditionObject, CollectionOperationKit]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "CollectionOperationKit.QueryConditionObject, CollectionOperationKit",
|
|
"Name": "url",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库.hook_url"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"OutParamaterName": "查找钩子",
|
|
"BreakpointIdentity": "9994e958-04df-4b69-b72f-8c79ab2d1bd4"
|
|
}
|
|
]
|
|
},
|
|
"ID": "8989087e-979b-4f8a-a6c5-faaf82488b63"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "a9ab6adf-3530-4007-af28-5af083649d71"
|
|
},
|
|
{
|
|
"$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%"
|
|
},
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$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": "Forguncy.Model.ServerTransactionCommand, 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": "=ACCESS_TOKEN"
|
|
}
|
|
},
|
|
{
|
|
"$type": "PostDataToWebApi.DataItem, PostDataToWebApi",
|
|
"Name": "url",
|
|
"DataItemType": 0,
|
|
"Data": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=IF(回调地址=\"\",Gitee配置.回调地址,回调地址)"
|
|
}
|
|
},
|
|
{
|
|
"$type": "PostDataToWebApi.DataItem, PostDataToWebApi",
|
|
"Name": "encryption_type",
|
|
"DataItemType": 0,
|
|
"Data": 0
|
|
},
|
|
{
|
|
"$type": "PostDataToWebApi.DataItem, PostDataToWebApi",
|
|
"Name": "password",
|
|
"DataItemType": 0,
|
|
"Data": 6158891
|
|
},
|
|
{
|
|
"$type": "PostDataToWebApi.DataItem, PostDataToWebApi",
|
|
"Name": "push_events",
|
|
"DataItemType": 0,
|
|
"Data": true
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"JsonString": "",
|
|
"WebUrl": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库.hook_api_url"
|
|
},
|
|
"Method": "POST",
|
|
"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": "75efbb0d-aba6-423c-9720-46e4f876b511"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "Git仓库表",
|
|
"ShowConfirm": false,
|
|
"RowsToUpdate": 1,
|
|
"RowsToUpdateCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库ID",
|
|
"GUID": "421e0ce9-cf66-4deb-8fe6-f586f95a2d78"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库ID"
|
|
}
|
|
},
|
|
"UpdateBindingValues": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "钩子ID",
|
|
"GUID": "1f729556-f7f8-4aca-99f4-eece62450379"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=result.id"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "订阅成功",
|
|
"GUID": "70fb1703-fd1e-482a-b1e0-5aa14fa8b8f2"
|
|
},
|
|
"Value": "1"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "d06f07f7-bcee-4532-955b-1e0315e21c43"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "7d689a59-f232-4946-ace1-0447a3b3274d"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "获取成功",
|
|
"BreakpointIdentity": "a046dbf1-3a9d-402d-bc65-b5635b0b8a2c"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"CatchCommandPart": {
|
|
"$type": "Forguncy.Model.CatchCommandNode, ServerDesignerCommon",
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "Git仓库表",
|
|
"ShowConfirm": false,
|
|
"RowsToUpdate": 1,
|
|
"RowsToUpdateCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库ID",
|
|
"GUID": "421e0ce9-cf66-4deb-8fe6-f586f95a2d78"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库ID"
|
|
}
|
|
},
|
|
"UpdateBindingValues": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "钩子ID",
|
|
"GUID": "0262e00f-f0ad-4090-924a-be83852b83c7"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "订阅成功",
|
|
"GUID": "2b24ccec-ece7-4e8c-bea9-d2ca6214f106"
|
|
},
|
|
"Value": "0"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "17056627-4d60-4184-a2dc-5dd467bc51a7"
|
|
},
|
|
{
|
|
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
|
|
"JsonString": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=ExceptionMessage"
|
|
},
|
|
"SampleJson": "{\"message\":\"\"}",
|
|
"ToParameter": "错误信息",
|
|
"BreakpointIdentity": "703273d0-5422-4b1c-964c-6acc424ff917"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "400",
|
|
"Message": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=错误信息.message"
|
|
},
|
|
"BreakpointIdentity": "59b22ec0-fd36-41cc-8afd-2874c833da11"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"BreakpointIdentity": "651e5e33-01fd-4d79-a9af-b22169ad6faf"
|
|
}
|
|
]
|
|
},
|
|
"ID": "8cb81f96-59bb-46bf-a3e8-3af8ee911728"
|
|
},
|
|
{
|
|
"$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.UpdateDataTableCommand, ServerDesignerCommon",
|
|
"TableName": "Git仓库表",
|
|
"ShowConfirm": false,
|
|
"RowsToUpdate": 1,
|
|
"RowsToUpdateCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "仓库ID",
|
|
"GUID": "421e0ce9-cf66-4deb-8fe6-f586f95a2d78"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=仓库ID"
|
|
}
|
|
},
|
|
"UpdateBindingValues": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "钩子ID",
|
|
"GUID": "50e8d8ee-ac9a-4a54-b82d-b18e2eb768b1"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=查找钩子.id"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.UpdateBindingValueItem, ServerDesignerCommon",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "Git仓库表",
|
|
"ColumnName": "订阅成功",
|
|
"GUID": "c949b79f-2827-437e-a0f6-e08aae9b7521"
|
|
},
|
|
"Value": "1"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "77452f9a-99aa-48e9-966d-75fa64391eba"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "钩子已存在",
|
|
"BreakpointIdentity": "6e5ab00e-1a81-4239-a423-d59c0885c015"
|
|
}
|
|
]
|
|
},
|
|
"ID": "8cf5f407-c0dd-443c-80b1-303650d72e0e"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "8a8fe8fd-68a1-471f-adca-c667a15b30a1"
|
|
}
|
|
]
|
|
},
|
|
"ID": "11d0ecb0-fa7c-46c6-b98a-22d264177216"
|
|
},
|
|
{
|
|
"$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": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=msg"
|
|
},
|
|
"BreakpointIdentity": "68036532-bb9f-4375-8f3b-e195ef095599"
|
|
}
|
|
]
|
|
},
|
|
"ID": "98f49a0b-a886-40f5-8a54-091350f88d16"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "67e27479-f651-43e3-b9cc-9092f1d858c5"
|
|
}
|
|
]
|
|
},
|
|
"ID": "4f4340ee-4b32-4db1-8e6d-af5c7ff56995"
|
|
},
|
|
{
|
|
"$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": "0",
|
|
"Message": "该仓库已绑定",
|
|
"BreakpointIdentity": "0517e9ce-9260-413c-be9b-3bcb0fa629be"
|
|
}
|
|
]
|
|
},
|
|
"ID": "2b3c0da0-a641-433f-9fcb-e602b7808b0a"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "8fe00cd7-a624-453e-9ce8-78755ae333a5"
|
|
}
|
|
]
|
|
},
|
|
"ID": "9c8e8367-8414-44c8-be8a-7505123ea2e7"
|
|
},
|
|
{
|
|
"$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": "仓库不存在,请先同步仓库到系统中",
|
|
"BreakpointIdentity": "6896c465-f72a-4a2e-8f6d-91700a727b1e"
|
|
}
|
|
]
|
|
},
|
|
"ID": "75f86e9b-7534-4fc7-950b-a4d053fdb17d"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "f0654513-cd02-46cc-ae2f-b0f61cd02e51"
|
|
}
|
|
]
|
|
}
|
|
} |