{"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

@@ -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"
}
]
}