{"Message":"1","MessageType":2,"Modules":[{"State":1,"Type":20,"Name":"ServerCommands/Gitee"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/请求令牌"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/创建一个仓库WebHook"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/删除一个仓库WebHook"},{"State":1,"Type":15,"Name":"ServerCommand/GitCallback"},{"State":1,"Type":1,"Name":"PCPage/选择Git仓库"},{"State":1,"Type":15,"Name":"ServerCommand/同步一个仓库到表"},{"State":1,"Type":15,"Name":"ServerCommand/搜索仓库"},{"State":2,"Type":15,"Name":"ServerCommand/获取用户的所有仓库"}],"Version":"v1"}

This commit is contained in:
超哥
2024-06-13 16:18:10 +08:00
parent 073a203f9d
commit b34d650fea
8 changed files with 477 additions and 835 deletions

View File

@@ -434,7 +434,7 @@
}
}
],
"ID": "062c8d39-13c7-4101-bd8d-6fc7ad6a3e5d"
"ID": "031b5ddf-ab69-4f5c-b019-04dffd44a385"
},
{
"CommandList": [
@@ -461,12 +461,12 @@
]
}
],
"ID": "2be60152-4f35-4b2d-8ac0-59bd10d495a1"
"ID": "77757baf-64c1-43e5-b44c-acabb396fb97"
}
]
}
],
"ID": "9e16d6e7-a0f1-4d32-9b6c-02a61e46b215"
"ID": "5a9df93d-443d-4f18-95e4-beb69f5af6fb"
},
{
"CommandList": [
@@ -502,12 +502,12 @@
]
}
],
"ID": "f1b86e04-26d0-48b8-a57a-627c6ab502c3"
"ID": "d571148c-ddcf-45ee-a42e-3becef8b19de"
}
]
}
],
"ID": "62249388-d560-49d9-b880-66c4dfe9917b"
"ID": "6f4b26b3-63d6-48cf-b7a7-5cc107627190"
},
{
"CommandList": [
@@ -528,12 +528,12 @@
]
}
],
"ID": "d4a841d5-616d-4856-91c1-5e09d9ef0d19"
"ID": "02c8bfbc-5390-4d4a-a763-978ff5dee27a"
}
]
}
],
"ID": "7ab9d8c8-5f25-411c-b84a-bc652e49872e"
"ID": "d190a6f3-a4b0-44e7-a1e5-977c67381fd8"
},
{
"CommandList": [
@@ -554,7 +554,7 @@
]
}
],
"ID": "f90f8336-7ffa-4974-9d86-28d538890261"
"ID": "dd54f4bf-7b36-4757-85e8-6260abdef1f8"
}
]
}

View File

@@ -257,7 +257,7 @@
}
}
],
"ID": "3d7aae36-4284-4774-b1b0-b9dd97b71884"
"ID": "452284ba-2452-4c0b-a055-d020ad61f420"
},
{
"CommandList": [
@@ -273,12 +273,12 @@
}
}
],
"ID": "dd119496-d60e-47fb-827d-6ae821d171c1"
"ID": "68f5ba75-4d15-4baf-9ee9-595e5c1815f0"
}
]
}
],
"ID": "22d13d2c-b49a-4d0d-8a7f-b56f412c3f84"
"ID": "0d3cb56e-14ec-420c-82f9-995d7b5a1a48"
},
{
"CommandList": [
@@ -288,7 +288,7 @@
"Message": "请先配置全局Gitee企业路径名"
}
],
"ID": "3c065a55-ba75-4fe4-b3f1-3114ed3aa694"
"ID": "abca0571-92c2-428d-870c-f50a45319d21"
}
]
}

View File

@@ -270,7 +270,7 @@
]
}
],
"ID": "80813e9f-283a-4403-a633-860f7c3c9e84"
"ID": "aebd842f-5e38-4248-bc8a-4cd8b7f809e4"
},
{
"CommandList": [
@@ -394,7 +394,7 @@
]
}
],
"ID": "2d93347d-4804-4cd7-90f0-bb959f962714"
"ID": "62a3c749-befb-4c70-8d39-5f5f5016f21e"
}
]
},
@@ -470,7 +470,7 @@
"Message": "仓库创建并订阅成功!"
}
],
"ID": "01bd4a4a-25a1-47a7-aff1-03e0fa05ed57"
"ID": "c55bf80e-90d8-4d7f-9365-34f71cfb6567"
},
{
"CommandList": [
@@ -480,7 +480,7 @@
"Message": "仓库创建成功,但未能订阅,请手动订阅"
}
],
"ID": "602cc6b8-a64d-4ffb-8f12-faf8c062ad86"
"ID": "a8c36ae0-f75f-4215-a245-ac6038b5d58c"
}
]
}

View File

@@ -42,6 +42,11 @@
"Name": "行数",
"DataValidationInfo": {},
"TestData": "20"
},
{
"Name": "类型",
"DataValidationInfo": {},
"TestData": "企业"
}
],
"InvokeTriggerTestData": {
@@ -58,7 +63,7 @@
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "000f08ba-ce47-4275-bf3f-f4756cd687d0",
"GUID": "632e0994-2a36-41ec-9804-50a50c5a7a9c",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT用户名",
@@ -67,7 +72,7 @@
"ColumnName": "GIT用户名"
},
{
"GUID": "9e9b45e6-9e59-47bd-9dae-8eccefbdd168",
"GUID": "51efeb90-0f7f-48e1-8b17-2da73b571818",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT密码",
@@ -91,7 +96,7 @@
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "23ff64d5cb86411080f5dc3a39b71562"
"ID": "739a7b1fc47d4c43ab0f9926980780a3"
},
{
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
@@ -171,64 +176,291 @@
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "url",
"ParameterValue": "https://gitee.com/api/v5/search/repositories",
"ID": "c30bcacc060a4257a28355953a2d2985"
},
{
"$type": "PostDataToWebApi.PostDataCommand, PostDataToWebApi",
"PostData": {
"DataItemType": 1,
"Data": {
"$type": "PostDataToWebApi.ObjectData, PostDataToWebApi",
"Data": [
{
"Name": "access_token",
"DataItemType": 0,
"Data": {
"$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": "=TOKEN"
"SerializeProperty": "=类型"
}
},
"value": "个人"
},
"CommandList": [
{
"Name": "q",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=关键字"
}
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "url",
"ParameterValue": "https://gitee.com/api/v5/user/repos",
"ID": "e87eaebfa9f740ec9f36f69f062d99df"
},
{
"Name": "page",
"DataItemType": 0,
"Data": {
"$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": "=TOKEN"
}
},
{
"Name": "visibility",
"DataItemType": 0,
"Data": "all"
},
{
"Name": "affiliation",
"DataItemType": 0,
"Data": "admin"
},
{
"Name": "q",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=关键字"
}
},
{
"Name": "page",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=页码"
}
},
{
"Name": "per_page",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=行数"
}
}
]
}
},
"JsonString": "",
"WebUrl": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=页码"
}
},
{
"Name": "per_page",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=行数"
}
"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": [],
"Timeout": 100.0
}
]
],
"ID": "6ad852dc-f0f9-406b-876f-184f83524090"
},
{
"Condition": {
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
"param": {
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
"ParamObject": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=类型"
}
},
"value": "企业"
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "url",
"ParameterValue": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=\"https://gitee.com/api/v5/enterprises/\"&Gitee.enterprise&\"/repos\""
},
"ID": "47758608776342c69eba4ef82575a94e"
},
{
"$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": "=TOKEN"
}
},
{
"Name": "search",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=关键字"
}
},
{
"Name": "type",
"DataItemType": 0,
"Data": "all"
},
{
"Name": "direct",
"DataItemType": 0,
"Data": true
},
{
"Name": "page",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=页码"
}
},
{
"Name": "per_page",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=行数"
}
}
]
}
},
"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": [],
"Timeout": 100.0
}
],
"ID": "3a7dfa5c-2fbc-42e8-a9db-52c76a347a24"
},
{
"CommandList": [
{
"$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%",
"compareType": 1
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "url",
"ParameterValue": "https://gitee.com/api/v5/search/repositories",
"ID": "f6c4537f166f41d2ac4c7da839a2daa6"
},
{
"$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": "=TOKEN"
}
},
{
"Name": "q",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=关键字"
}
},
{
"Name": "fork",
"DataItemType": 0,
"Data": false
},
{
"Name": "page",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=页码"
}
},
{
"Name": "per_page",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=行数"
}
}
]
}
},
"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": [],
"Timeout": 100.0
}
],
"ID": "28684180-7bc4-4ceb-a40d-4089961cc44e"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "搜索所有仓库时,必须填写关键字",
"CustomReturns": [
{
"ReturnPropertyName": "仓库列表"
}
]
}
],
"ID": "08c2c1e8-fe59-4503-ba27-303f58aa602f"
}
]
}
],
"ID": "601681b2-eb33-4b89-af31-b9528b9ff14e"
}
},
"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": [],
"Timeout": 100.0
]
},
{
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
@@ -382,7 +614,7 @@
]
}
],
"ID": "a6e4557a-0215-4ccd-b386-f171fed6d096"
"ID": "5be73592-8762-4dc7-9792-95dd0a25da67"
},
{
"CommandList": [
@@ -397,7 +629,7 @@
]
}
],
"ID": "a680a444-14f6-41dc-ad33-2c1bf49a018c"
"ID": "d76def9f-10ce-46da-8ea2-437362839574"
}
]
}
@@ -422,7 +654,7 @@
}
}
],
"ID": "8c2cba52-280c-4817-bc34-92acfcdb7ec1"
"ID": "abcdda2d-3ea1-4638-a366-68531218353e"
},
{
"CommandList": [
@@ -443,12 +675,12 @@
]
}
],
"ID": "98396a37-1b66-41f8-8086-262a42884fbd"
"ID": "62914a42-8123-4e6c-9e67-54744d913100"
}
]
}
],
"ID": "1e65b0c1-d885-462d-87cb-3606c8ed982a"
"ID": "c6a43e25-6dde-4fb7-8f24-cbd2c728e192"
},
{
"CommandList": [
@@ -463,7 +695,7 @@
]
}
],
"ID": "251d4438-c171-476d-ac05-4b5f114d5a07"
"ID": "a0f96d73-acf3-410a-904d-3774cc75fca2"
}
]
}

View File

@@ -1,475 +0,0 @@
{
"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": "Administrator"
},
{
"Name": "关键字",
"DataValidationInfo": {}
},
{
"Name": "页码",
"DataValidationInfo": {},
"TestData": "1"
},
{
"Name": "行数",
"DataValidationInfo": {},
"TestData": "20"
}
],
"InvokeTriggerTestData": {
"UserName": "Administrator"
}
}
],
"Commands": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "当前用户",
"TableValue": {
"TableName": "用户信息视图",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "594c3620-ea22-499f-a1e9-7b1a82710199",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT用户名",
"GUID": "2d81fd07-9009-46be-b80b-a2525ff065b3"
},
"ColumnName": "GIT用户名"
},
{
"GUID": "4143bb72-5cfe-4fe3-8b75-788af09fcecc",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "GIT密码",
"GUID": "c3b83a87-59d3-4082-93b1-96f89d00e612"
},
"ColumnName": "GIT密码"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "2809fe27-b8e0-427f-9915-4b78b669e87b"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户名"
}
},
"NullFormulaValueQueryPolicy": 0,
"TopCount": "1"
},
"ID": "3cc1580318c3452ab67b1729ac074d09"
},
{
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
"JsonString": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=全局_Gitee"
},
"SampleJson": "{\"enterprise\":\"GridStudio\",\"client_id\":\"c7d05fcbaf78ad728fcc0267d081ae6c50dc667667758a0933525d4cbe09ed90\",\"client_secret\":\"b4d40db2155ca530e5771b37a2fb67161d4106c64df28f32504b4e3bcfb81313\"}",
"ToParameter": "Gitee"
},
{
"$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": "=Gitee.enterprise"
}
},
"value": "%Null%",
"compareType": 1
},
"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": "1"
}
],
"ResultErrorCodeTo": {
"SerializeProperty": "code"
},
"ResultMessageTo": {
"SerializeProperty": "msg"
},
"ReturnPropertiesTo": [
{
"ResultPropertyName": "最新令牌",
"ResultTo": {
"SerializeProperty": "TOKEN"
}
}
],
"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.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=code"
}
},
"value": "0"
},
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "url",
"ParameterValue": "https://gitee.com/api/v5/user/repos",
"ID": "8f479887b1d34dcd88e3c5a8f8064a86"
},
{
"$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": "=TOKEN"
}
},
{
"Name": "q",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=关键字"
}
},
{
"Name": "page",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=页码"
}
},
{
"Name": "per_page",
"DataItemType": 0,
"Data": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=行数"
}
}
]
}
},
"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": [],
"Timeout": 100.0
},
{
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$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": "=result.Count"
}
},
"value": "0",
"compareType": 2
},
"CommandList": [
{
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
"OutParamaterName": "仓库列表"
},
{
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
"LoopInfo": {
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
"LoopCount": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result"
},
"LoopItemParamName": "Item"
},
"CommandList": [
{
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
"InParamater": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.members"
},
"Operation": 16,
"OperationParamaterAName": ",",
"OutParamaterName": "仓库成员名称"
},
{
"$type": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit",
"OperationParamaterPairs": [
{
"Name": "ID",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.id"
}
},
{
"Name": "空间路径名",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.namespace.path"
}
},
{
"Name": "空间名称",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.namespace.name"
}
},
{
"Name": "仓库路径名",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.path"
}
},
{
"Name": "仓库名称",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.name"
}
},
{
"Name": "仓库地址",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.html_url"
}
},
{
"Name": "仓库描述",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.description"
}
},
{
"Name": "仓库成员",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=仓库成员名称"
}
},
{
"Name": "创建人",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.owner.name"
}
},
{
"Name": "创建人头像",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=Item.owner.avatar_url"
}
}
],
"OutParamaterName": "仓库信息"
},
{
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
"InParamater": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=仓库列表"
},
"Operation": 4,
"OperationParamaterAName": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=仓库信息"
},
"OutParamaterName": "仓库列表"
}
]
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "获取成功",
"CustomReturns": [
{
"ReturnPropertyName": "仓库列表",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=仓库列表"
}
}
]
}
],
"ID": "b16c9ea2-e0a7-4675-be57-dde8f9417512"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "无仓库信息",
"CustomReturns": [
{
"ReturnPropertyName": "仓库列表"
}
]
}
],
"ID": "7abac783-f78e-4c64-ba43-708894d8a469"
}
]
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=result.message"
},
"CustomReturns": [
{
"ReturnPropertyName": "仓库列表"
}
]
}
]
}
}
],
"ID": "38803b46-52cc-45e3-abbe-5d6fad0469b1"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=code"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=msg"
},
"CustomReturns": [
{
"ReturnPropertyName": "仓库列表"
}
]
}
],
"ID": "ef251673-4d3c-4efc-9619-c687676af24b"
}
]
}
],
"ID": "03c68f4b-ef86-42fb-b42c-b099783f87ee"
},
{
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "400",
"Message": "请先配置全局Gitee企业路径名",
"CustomReturns": [
{
"ReturnPropertyName": "仓库列表"
}
]
}
],
"ID": "c15f485f-cdfb-4466-93db-be50e646ed40"
}
]
}
],
"ReturnProperties": [
{
"Name": "仓库列表"
}
]
}

View File

@@ -199,7 +199,7 @@
]
}
],
"ID": "53b11b53-affa-4304-a79c-6e2bf4a79056"
"ID": "fbb8609c-5624-404e-a16c-14e9e8550b15"
},
{
"CommandList": [
@@ -320,7 +320,7 @@
]
}
],
"ID": "6d7d06aa-cda4-42cf-a024-b3e275563d1c"
"ID": "6aa74ad7-c578-4fef-af9c-fb96a6631550"
},
{
"CommandList": [
@@ -341,17 +341,17 @@
]
}
],
"ID": "a4604038-3dfd-44b8-8f2b-37c959cdcce4"
"ID": "cb2dbe62-dd22-4eaa-a70c-8be8feeb74c5"
}
]
}
],
"ID": "ae183917-f587-49bf-b4ee-5afdc0bbf410"
"ID": "8d208ae4-19ac-49ba-92d2-d3f1133ef4dc"
}
]
}
],
"ID": "7b246abb-a979-411a-a993-50e07771671c"
"ID": "ebf144b0-dd6f-4c75-b889-9ada8b6db780"
},
{
"CommandList": [
@@ -366,12 +366,12 @@
]
}
],
"ID": "451e6167-1825-432c-bd77-e3ba407c349d"
"ID": "3036ecd5-8001-4122-82b6-31e54d15c529"
}
]
}
],
"ID": "f0ff371e-c8e7-476a-990a-9d854658eb97"
"ID": "e8e2fdd1-88f6-481e-86f1-5d189154b0a7"
},
{
"CommandList": [
@@ -386,7 +386,7 @@
]
}
],
"ID": "10f1f898-b406-4c1f-8015-88e59a950766"
"ID": "403fa8e4-ab3a-4db8-ae32-e95b4c4a3d26"
}
]
}