{"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:
@@ -3,7 +3,23 @@
|
||||
"Enabled": true,
|
||||
"Triggers": [
|
||||
{
|
||||
"$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon",
|
||||
"$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": "仓库ID",
|
||||
@@ -18,6 +34,10 @@
|
||||
"IgnoreBlank": false
|
||||
},
|
||||
"TestData": "Administrator"
|
||||
},
|
||||
{
|
||||
"Name": "回调地址",
|
||||
"DataValidationInfo": {}
|
||||
}
|
||||
],
|
||||
"InvokeTriggerTestData": {
|
||||
@@ -26,6 +46,15 @@
|
||||
}
|
||||
],
|
||||
"Commands": [
|
||||
{
|
||||
"$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配置"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "当前用户",
|
||||
@@ -34,7 +63,7 @@
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "79da2071-159c-4a8d-8796-be57ae391a1f",
|
||||
"GUID": "c26e601c-dffb-46f1-be97-ce46d5deadcc",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "GIT用户名",
|
||||
@@ -43,7 +72,7 @@
|
||||
"ColumnName": "GIT用户名"
|
||||
},
|
||||
{
|
||||
"GUID": "68731a57-db25-4f90-bd1f-35011ff221a7",
|
||||
"GUID": "b594d85c-3422-4cb3-a063-69e472c32537",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "GIT密码",
|
||||
@@ -67,16 +96,68 @@
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "4d5b1b1010f84c79946ac09278aa8d66"
|
||||
"ID": "ea6babeddf554a1eb8f46e195877e952"
|
||||
},
|
||||
{
|
||||
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
|
||||
"JsonString": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=全局_Gitee"
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "仓库",
|
||||
"TableValue": {
|
||||
"TableName": "Git仓库表",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "375548fd-8c18-4c87-9511-bdb646a7a88a",
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库路径名",
|
||||
"GUID": "2c41e2fb-0784-4414-a2f6-e7bf48e1a825"
|
||||
},
|
||||
"ColumnName": "仓库路径名"
|
||||
},
|
||||
{
|
||||
"GUID": "4a543850-eab6-45df-9a9e-40fdac47d12c",
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "空间路径名",
|
||||
"GUID": "a4dc7e40-113c-4634-a254-bd3d364169e2"
|
||||
},
|
||||
"ColumnName": "空间路径名"
|
||||
},
|
||||
{
|
||||
"GUID": "cd748bcf-8be5-49ee-9828-0d140beb2581",
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "hook_url",
|
||||
"GUID": "b34b70ae-08b3-4667-be01-afce405fb9bc"
|
||||
},
|
||||
"ColumnName": "hook_url"
|
||||
},
|
||||
{
|
||||
"GUID": "3175ee74-7815-4217-b3b8-257b3cfbce93",
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "订阅成功",
|
||||
"GUID": "01bbed57-b961-4d6b-b4ee-dba6636960af"
|
||||
},
|
||||
"ColumnName": "绑定成功"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库ID",
|
||||
"GUID": "7aa0116e-f6a8-4a54-9dc1-10755107fdf9"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库ID"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"SampleJson": "{\r\n \"enterprise\": \"GridStudio\",\r\n \"client_id\": \"c7d05fcbaf78ad728fcc0267d081ae6c50dc667667758a0933525d4cbe09ed90\",\r\n \"client_secret\": \"b4d40db2155ca530e5771b37a2fb67161d4106c64df28f32504b4e3bcfb81313\"\r\n}",
|
||||
"ToParameter": "Gitee"
|
||||
"ID": "c7607e00ea68441eb59a50ac39babf53"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
@@ -88,47 +169,13 @@
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=Gitee.enterprise"
|
||||
"SerializeProperty": "=仓库"
|
||||
}
|
||||
},
|
||||
"value": "%Null%",
|
||||
"compareType": 1
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "仓库",
|
||||
"TableValue": {
|
||||
"TableName": "Git仓库表",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "f86fee2d-71be-4386-986f-58efe124ddbd",
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库路径名",
|
||||
"GUID": "2c41e2fb-0784-4414-a2f6-e7bf48e1a825"
|
||||
},
|
||||
"ColumnName": "仓库路径名"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库ID",
|
||||
"GUID": "7aa0116e-f6a8-4a54-9dc1-10755107fdf9"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库ID"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "18b47cd732ea4f5ca35425f3f67f2068"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
"ConditionAndCommandPairList": [
|
||||
@@ -139,63 +186,56 @@
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库"
|
||||
"SerializeProperty": "=仓库.绑定成功"
|
||||
}
|
||||
},
|
||||
"value": "%Null%",
|
||||
"value": "1",
|
||||
"compareType": 1
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "是否存在hook",
|
||||
"TableValue": {
|
||||
"TableName": "Git_WebHook",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "a39b5b84-ec17-4474-a3f1-024ba1e931a3",
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_WebHook",
|
||||
"ColumnName": "hook_id",
|
||||
"GUID": "a9ffabfc-9ef2-4051-bf27-4ac4bb9612a3"
|
||||
},
|
||||
"ColumnName": "hook_id"
|
||||
},
|
||||
{
|
||||
"GUID": "07448f15-a30a-46e3-98f5-454569fd9b9f",
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_WebHook",
|
||||
"ColumnName": "url",
|
||||
"GUID": "4ef09151-35ae-4d70-afa6-b779ea5dd6c9"
|
||||
},
|
||||
"ColumnName": "url"
|
||||
},
|
||||
{
|
||||
"GUID": "56c3cff0-bec6-4060-8500-5184a071b6df",
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_WebHook",
|
||||
"ColumnName": "password",
|
||||
"GUID": "5d84189e-bd75-4b4f-800d-a273ba9b1ef8"
|
||||
},
|
||||
"ColumnName": "password"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "Git_WebHook",
|
||||
"ColumnName": "仓库ID",
|
||||
"GUID": "62db27c9-59da-493e-a58b-8fd48148a5ca"
|
||||
},
|
||||
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
||||
"ServerCommandName": "列出仓库的WebHooks",
|
||||
"Parameters": [
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "仓库ID",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库ID"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "用户名",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=用户名"
|
||||
}
|
||||
}
|
||||
],
|
||||
"ResultErrorCodeTo": {
|
||||
"SerializeProperty": "code"
|
||||
},
|
||||
"ID": "4d967288116a47b58360492b81f91672"
|
||||
"ResultMessageTo": {
|
||||
"SerializeProperty": "msg"
|
||||
},
|
||||
"ReturnPropertiesTo": [
|
||||
{
|
||||
"ResultPropertyName": "钩子列表",
|
||||
"ResultTo": {
|
||||
"SerializeProperty": "钩子列表"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ResultPropertyName": "ACCESS_TOKEN",
|
||||
"ResultTo": {
|
||||
"SerializeProperty": "ACCESS_TOKEN"
|
||||
}
|
||||
}
|
||||
],
|
||||
"RefreshAfterFinish": true,
|
||||
"CheckDataValidation": true
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
@@ -207,46 +247,16 @@
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=是否存在hook"
|
||||
"SerializeProperty": "=code"
|
||||
}
|
||||
},
|
||||
"value": "%Null%"
|
||||
"value": "0"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
||||
"ServerCommandName": "请求令牌",
|
||||
"Parameters": [
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "用户名",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=用户名"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "强制刷新",
|
||||
"Value": "0"
|
||||
}
|
||||
],
|
||||
"ResultErrorCodeTo": {
|
||||
"SerializeProperty": "code"
|
||||
},
|
||||
"ResultMessageTo": {
|
||||
"SerializeProperty": "msg"
|
||||
},
|
||||
"ReturnPropertiesTo": [
|
||||
{
|
||||
"ResultPropertyName": "最新令牌",
|
||||
"ResultTo": {
|
||||
"SerializeProperty": "TOKEN"
|
||||
}
|
||||
}
|
||||
],
|
||||
"RefreshAfterFinish": true,
|
||||
"CheckDataValidation": true
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "查找钩子",
|
||||
"ID": "6eff079d11144740b4fd5e2b0587ba6a"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
@@ -258,10 +268,50 @@
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=code"
|
||||
"SerializeProperty": "=钩子列表.Count"
|
||||
}
|
||||
},
|
||||
"value": "0"
|
||||
"value": "0",
|
||||
"compareType": 2
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "CollectionOperationKit.ServerSideArrayQuery, CollectionOperationKit",
|
||||
"InParamater": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=钩子列表"
|
||||
},
|
||||
"Operation": 1,
|
||||
"OperationParamaterPairs": [
|
||||
{
|
||||
"Name": "url",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库.hook_url"
|
||||
}
|
||||
}
|
||||
],
|
||||
"OutParamaterName": "查找钩子"
|
||||
}
|
||||
],
|
||||
"ID": "46121cc4-33f5-4116-bde3-b6b15878703a"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
"ConditionAndCommandPairList": [
|
||||
{
|
||||
"Condition": {
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=查找钩子"
|
||||
}
|
||||
},
|
||||
"value": "%Null%"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
@@ -269,204 +319,231 @@
|
||||
"ParameterName": "url",
|
||||
"ParameterValue": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"https://gitee.com/api/v5/repos/\"&Gitee.enterprise&\"/\"&仓库.仓库路径名&\"/hooks\""
|
||||
"SerializeProperty": "=\"https://gitee.com/api/v5/repos/\"&仓库.空间路径名&\"/\"&仓库.仓库路径名&\"/hooks\""
|
||||
},
|
||||
"ID": "67f11c1341634f158b457443feca21de"
|
||||
"ID": "631a9d7da45544d598696dbdbc7e16e7"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
|
||||
"TryCommandPart": {
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "PostDataToWebApi.PostDataCommand, PostDataToWebApi",
|
||||
"PostData": {
|
||||
"DataItemType": 1,
|
||||
"Data": {
|
||||
"$type": "PostDataToWebApi.ObjectData, PostDataToWebApi",
|
||||
"Data": [
|
||||
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "PostDataToWebApi.PostDataCommand, PostDataToWebApi",
|
||||
"PostData": {
|
||||
"DataItemType": 1,
|
||||
"Data": {
|
||||
"$type": "PostDataToWebApi.ObjectData, PostDataToWebApi",
|
||||
"Data": [
|
||||
{
|
||||
"Name": "access_token",
|
||||
"DataItemType": 0,
|
||||
"Data": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ACCESS_TOKEN"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "url",
|
||||
"DataItemType": 0,
|
||||
"Data": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=IF(回调地址=\"\",Gitee配置.回调地址,回调地址)"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "encryption_type",
|
||||
"DataItemType": 0,
|
||||
"Data": 0
|
||||
},
|
||||
{
|
||||
"Name": "password",
|
||||
"DataItemType": 0,
|
||||
"Data": 6158891
|
||||
},
|
||||
{
|
||||
"Name": "push_events",
|
||||
"DataItemType": 0,
|
||||
"Data": true
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"JsonString": "",
|
||||
"WebUrl": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=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": [],
|
||||
"Timeout": 100.0
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "Git仓库表",
|
||||
"ShowConfirm": false,
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库ID",
|
||||
"GUID": "421e0ce9-cf66-4deb-8fe6-f586f95a2d78"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库ID"
|
||||
}
|
||||
},
|
||||
"UpdateBindingValues": [
|
||||
{
|
||||
"Name": "access_token",
|
||||
"DataItemType": 0,
|
||||
"Data": {
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "钩子ID",
|
||||
"GUID": "7474b27e-471f-45d3-9169-70ee07eb90fa"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=TOKEN"
|
||||
"SerializeProperty": "=result.id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "url",
|
||||
"DataItemType": 0,
|
||||
"Data": "http://www.baidu.com"
|
||||
},
|
||||
{
|
||||
"Name": "encryption_type",
|
||||
"DataItemType": 0,
|
||||
"Data": 0
|
||||
},
|
||||
{
|
||||
"Name": "password",
|
||||
"DataItemType": 0,
|
||||
"Data": 6158891
|
||||
},
|
||||
{
|
||||
"Name": "push_events",
|
||||
"DataItemType": 0,
|
||||
"Data": true
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "订阅成功",
|
||||
"GUID": "c25cba9f-2eae-4238-8259-a6e2015e3900"
|
||||
},
|
||||
"Value": "1"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"JsonString": "",
|
||||
"WebUrl": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=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": [],
|
||||
"Timeout": 100.0
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "Git_WebHook",
|
||||
"UpdateType": "add",
|
||||
"ShowConfirm": false,
|
||||
"UpdateBindingValues": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_WebHook",
|
||||
"ColumnName": "仓库ID",
|
||||
"GUID": "73a25ccf-ba9a-4c0b-a999-5598caeab5dc"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_WebHook",
|
||||
"ColumnName": "hook_id",
|
||||
"GUID": "8b359d8c-e7f0-45bc-8336-270f0e318259"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_WebHook",
|
||||
"ColumnName": "url",
|
||||
"GUID": "e835645b-cdc8-4f0c-904c-8d126c038e01"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.url"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_WebHook",
|
||||
"ColumnName": "password",
|
||||
"GUID": "d13c52b9-870b-43bd-b96f-6dd187ee44b1"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.password"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "获取成功",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "id",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "url",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.url"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "password",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.password"
|
||||
}
|
||||
}
|
||||
]
|
||||
"Message": "获取成功"
|
||||
}
|
||||
]
|
||||
},
|
||||
"CatchCommandPart": {
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "Git仓库表",
|
||||
"ShowConfirm": false,
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库ID",
|
||||
"GUID": "421e0ce9-cf66-4deb-8fe6-f586f95a2d78"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库ID"
|
||||
}
|
||||
},
|
||||
"UpdateBindingValues": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "钩子ID",
|
||||
"GUID": "acc607e0-06da-4c13-8831-596f16899736"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "订阅成功",
|
||||
"GUID": "c9954ca5-54b8-42c3-ba77-0a135764ea4b"
|
||||
},
|
||||
"Value": "0"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
|
||||
"JsonString": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=ExceptionMessage"
|
||||
},
|
||||
"SampleJson": "{\"message\":\"\"}",
|
||||
"ToParameter": "错误信息"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.message"
|
||||
},
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "id"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "url"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "password"
|
||||
}
|
||||
]
|
||||
"SerializeProperty": "=错误信息.message"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "031b5ddf-ab69-4f5c-b019-04dffd44a385"
|
||||
"ID": "63717820-b794-4564-b115-c085dbf33b17"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=code"
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "Git仓库表",
|
||||
"ShowConfirm": false,
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库ID",
|
||||
"GUID": "421e0ce9-cf66-4deb-8fe6-f586f95a2d78"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库ID"
|
||||
}
|
||||
},
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=msg"
|
||||
},
|
||||
"CustomReturns": [
|
||||
"UpdateBindingValues": [
|
||||
{
|
||||
"ReturnPropertyName": "id"
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "钩子ID",
|
||||
"GUID": "71681bd0-e7cb-4ba2-be9d-d8c902f124ae"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "url"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "password"
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "订阅成功",
|
||||
"GUID": "ec4e7230-0fb9-4452-bc19-f6ef21642efb"
|
||||
},
|
||||
"Value": "1"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "钩子已存在"
|
||||
}
|
||||
],
|
||||
"ID": "77757baf-64c1-43e5-b44c-acabb396fb97"
|
||||
"ID": "94b197b1-f2ea-400f-8cb3-b07705f1a8f9"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "5a9df93d-443d-4f18-95e4-beb69f5af6fb"
|
||||
"ID": "7f5dbfdf-16c7-4407-aa60-e35ffec13ded"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -475,99 +552,43 @@
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.message"
|
||||
},
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "id",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=是否存在hook.hook_id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "url",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=是否存在hook.url"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "password",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=是否存在hook.password"
|
||||
}
|
||||
}
|
||||
]
|
||||
"SerializeProperty": "=msg"
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "d571148c-ddcf-45ee-a42e-3becef8b19de"
|
||||
"ID": "fe312141-6c75-4967-aaa6-83e5804aae3a"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "6f4b26b3-63d6-48cf-b7a7-5cc107627190"
|
||||
"ID": "2ed5a7ee-177e-4784-9f96-36bbce804e9c"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "仓库不存在,请先同步仓库到系统中",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "id"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "url"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "password"
|
||||
}
|
||||
]
|
||||
"Message": "该仓库已绑定"
|
||||
}
|
||||
],
|
||||
"ID": "02c8bfbc-5390-4d4a-a763-978ff5dee27a"
|
||||
"ID": "4ee789dc-4642-4d34-9a2e-bfcb3b6397b8"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "d190a6f3-a4b0-44e7-a1e5-977c67381fd8"
|
||||
"ID": "35977f7a-cd68-4e5e-b448-a7faff3ce155"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": "请先配置全局Gitee企业路径名",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "id"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "url"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "password"
|
||||
}
|
||||
]
|
||||
"Message": "仓库不存在,请先同步仓库到系统中"
|
||||
}
|
||||
],
|
||||
"ID": "dd54f4bf-7b36-4757-85e8-6260abdef1f8"
|
||||
"ID": "43bcf490-993d-41b1-a794-513a3b128633"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ReturnProperties": [
|
||||
{
|
||||
"Name": "id"
|
||||
},
|
||||
{
|
||||
"Name": "url"
|
||||
},
|
||||
{
|
||||
"Name": "password"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user