{"Message":"完善版本Git绑定设置","MessageType":2,"Modules":[{"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":9,"Name":"Theme"},{"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":1,"Type":15,"Name":"ServerCommand/创建一个仓库WebHook"},{"State":3,"Type":15,"Name":"ServerCommand/获取单个仓库信息"},{"State":3,"Type":31,"Name":"UserControlPage/Git仓库卡片"},{"State":3,"Type":38,"Name":"Image/gitee.svg"}],"Version":"v1"}
This commit is contained in:
@@ -37,103 +37,183 @@
|
||||
"ResultTo": "钩子数据"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "日志表",
|
||||
"UpdateType": "add",
|
||||
"ShowConfirm": false,
|
||||
"UpdateBindingValues": [
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
"ConditionAndCommandPairList": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "日志表",
|
||||
"ColumnName": "标题",
|
||||
"GUID": "acc9be7e-d2cc-4975-b407-e09f377b0000"
|
||||
},
|
||||
"Value": "Gitee_WebHook回调事件"
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "日志表",
|
||||
"ColumnName": "内容",
|
||||
"GUID": "242f4bae-61e3-4cbd-a8d9-781ecebc0061"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=data"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "日志表",
|
||||
"ColumnName": "类型",
|
||||
"GUID": "9ff90dff-f345-4a07-806c-bfce7324674c"
|
||||
},
|
||||
"Value": "信息"
|
||||
}
|
||||
],
|
||||
"Disabled": true
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
|
||||
"LoopInfo": {
|
||||
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
|
||||
"LoopCount": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=钩子数据.commits"
|
||||
},
|
||||
"LoopItemParamName": "Item"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "Git_事件记录",
|
||||
"UpdateType": "add",
|
||||
"ShowConfirm": false,
|
||||
"UpdateBindingValues": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_事件记录",
|
||||
"ColumnName": "事件名称",
|
||||
"GUID": "b8714ad4-5742-4115-9873-9fb493234164"
|
||||
},
|
||||
"Value": {
|
||||
"Condition": {
|
||||
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
||||
"param": {
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=钩子数据.hook_name"
|
||||
}
|
||||
},
|
||||
"value": "push_hooks"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_事件记录",
|
||||
"ColumnName": "hook_id",
|
||||
"GUID": "95971d9c-d698-4047-9b88-f9e44fb21db9"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
|
||||
"JsonString": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=钩子数据.hook_id"
|
||||
}
|
||||
"SerializeProperty": "=钩子数据.head_commit.message"
|
||||
},
|
||||
"SampleJson": "{\r\n \"Message\": \"新增WebHook的订阅\",\r\n \"MessageType\": 2,\r\n \"Modules\": [\r\n {\r\n \"State\": 3,\r\n \"Type\": 15,\r\n \"Name\": \"ServerCommand/创建一个仓库WebHook\"\r\n }\r\n ],\r\n \"Version\": \"v1\"\r\n}",
|
||||
"ToParameter": "message"
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_事件记录",
|
||||
"ColumnName": "提交人",
|
||||
"GUID": "3924cbf8-fb60-4a3d-8078-9ef7bbfb330e"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=Item.author.name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_事件记录",
|
||||
"ColumnName": "事件内容",
|
||||
"GUID": "87c9243c-b42f-4266-bd23-52c6abe2ab90"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=Item.message"
|
||||
}
|
||||
"$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": "=message.MessageType"
|
||||
}
|
||||
},
|
||||
"value": "2"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "Git_事件记录",
|
||||
"UpdateType": "add",
|
||||
"ShowConfirm": false,
|
||||
"UpdateBindingValues": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_事件记录",
|
||||
"ColumnName": "事件名称",
|
||||
"GUID": "48fafe37-7bc7-4552-8811-651a6a2b802c"
|
||||
},
|
||||
"Value": "签入工程"
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_事件记录",
|
||||
"ColumnName": "hook_id",
|
||||
"GUID": "a8bc9b8a-1cb9-4f5d-9ce2-ad43c2057114"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=钩子数据.hook_id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_事件记录",
|
||||
"ColumnName": "提交人",
|
||||
"GUID": "3be4ac18-3ac4-4b3b-9e97-8a22102cf4cd"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=钩子数据.head_commit.committer.name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_事件记录",
|
||||
"ColumnName": "事件内容",
|
||||
"GUID": "d51b1c57-b726-45a3-9fc3-a0818eb81e0c"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=message.Message"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_事件记录",
|
||||
"ColumnName": "空间路径",
|
||||
"GUID": "a25d4509-2f03-4a9c-ba87-d5d815674a4b"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=钩子数据.repository.namespace"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_事件记录",
|
||||
"ColumnName": "仓库名称",
|
||||
"GUID": "fae2341c-394d-4d46-94a6-9a035c8041df"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=钩子数据.repository.name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_事件记录",
|
||||
"ColumnName": "仓库路径",
|
||||
"GUID": "dfcbc72c-02dc-43dd-996a-042748485d1b"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=钩子数据.repository.path"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_事件记录",
|
||||
"ColumnName": "url",
|
||||
"GUID": "a7e7c542-ea5a-471e-be51-6b70e8d7f94b"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=钩子数据.head_commit.url"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_事件记录",
|
||||
"ColumnName": "git用户名",
|
||||
"GUID": "90fa95b2-d77f-47c6-a901-6e7fc3fb673e"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=钩子数据.head_commit.username"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git_事件记录",
|
||||
"ColumnName": "仓库ID",
|
||||
"GUID": "e2fe3138-ecda-4430-9b11-2535a9f0f05c"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=钩子数据.repository.id"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "签入已被记录"
|
||||
}
|
||||
],
|
||||
"ID": "13d8dbd7-8919-49ca-8f18-292b44f8e2ad"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "忽略非签入事件"
|
||||
}
|
||||
],
|
||||
"ID": "eae9797b-acdc-47e4-b11a-952271b0401d"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
],
|
||||
"ID": "728a1fb4-2aa3-4c97-8d0e-a11b697a881c"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -106,7 +106,7 @@
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "375548fd-8c18-4c87-9511-bdb646a7a88a",
|
||||
"GUID": "0a505d22-ea26-4dc6-b902-96c42172d2b9",
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库路径名",
|
||||
@@ -115,7 +115,7 @@
|
||||
"ColumnName": "仓库路径名"
|
||||
},
|
||||
{
|
||||
"GUID": "4a543850-eab6-45df-9a9e-40fdac47d12c",
|
||||
"GUID": "121fa6ba-4747-40c0-b487-a07c961bfc2e",
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "空间路径名",
|
||||
@@ -124,16 +124,25 @@
|
||||
"ColumnName": "空间路径名"
|
||||
},
|
||||
{
|
||||
"GUID": "cd748bcf-8be5-49ee-9828-0d140beb2581",
|
||||
"GUID": "503ebf75-30bd-4a66-a195-648da8f8fc6e",
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "hook_url",
|
||||
"ColumnName": "Callback_url",
|
||||
"GUID": "b34b70ae-08b3-4667-be01-afce405fb9bc"
|
||||
},
|
||||
"ColumnName": "hook_url"
|
||||
},
|
||||
{
|
||||
"GUID": "3175ee74-7815-4217-b3b8-257b3cfbce93",
|
||||
"GUID": "86dc894b-ec40-4338-9790-00d444e8415b",
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "hook_api_url",
|
||||
"GUID": "e2132ce0-b395-4f03-8d7d-f8ed3bea93f0"
|
||||
},
|
||||
"ColumnName": "hook_api_url"
|
||||
},
|
||||
{
|
||||
"GUID": "a05ca3bf-0ba0-4492-ba0c-214241c0d440",
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "订阅成功",
|
||||
@@ -157,7 +166,7 @@
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "c7607e00ea68441eb59a50ac39babf53"
|
||||
"ID": "1b4300438e784c359a61002851e79412"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
@@ -256,7 +265,7 @@
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "查找钩子",
|
||||
"ID": "6eff079d11144740b4fd5e2b0587ba6a"
|
||||
"ID": "6f7ee52d7d6d4a18b64e15dc1131d859"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
@@ -294,7 +303,7 @@
|
||||
"OutParamaterName": "查找钩子"
|
||||
}
|
||||
],
|
||||
"ID": "46121cc4-33f5-4116-bde3-b6b15878703a"
|
||||
"ID": "b3b57df5-ecb6-42fa-bb73-c215f88d56cb"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -314,15 +323,6 @@
|
||||
"value": "%Null%"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "url",
|
||||
"ParameterValue": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"https://gitee.com/api/v5/repos/\"&仓库.空间路径名&\"/\"&仓库.仓库路径名&\"/hooks\""
|
||||
},
|
||||
"ID": "631a9d7da45544d598696dbdbc7e16e7"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
|
||||
"TryCommandPart": {
|
||||
@@ -374,7 +374,7 @@
|
||||
"JsonString": "",
|
||||
"WebUrl": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=url"
|
||||
"SerializeProperty": "=仓库.hook_api_url"
|
||||
},
|
||||
"Method": "POST",
|
||||
"SuccessCallback": "// 请求成功返回的数据存储在“result”变量中\r\n// 请使用“result”变量来完成请求成功的回调 \r\n//console.log(result);",
|
||||
@@ -405,7 +405,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "钩子ID",
|
||||
"GUID": "7474b27e-471f-45d3-9169-70ee07eb90fa"
|
||||
"GUID": "1f729556-f7f8-4aca-99f4-eece62450379"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -416,7 +416,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "订阅成功",
|
||||
"GUID": "c25cba9f-2eae-4238-8259-a6e2015e3900"
|
||||
"GUID": "70fb1703-fd1e-482a-b1e0-5aa14fa8b8f2"
|
||||
},
|
||||
"Value": "1"
|
||||
}
|
||||
@@ -455,14 +455,14 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "钩子ID",
|
||||
"GUID": "acc607e0-06da-4c13-8831-596f16899736"
|
||||
"GUID": "0262e00f-f0ad-4090-924a-be83852b83c7"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "订阅成功",
|
||||
"GUID": "c9954ca5-54b8-42c3-ba77-0a135764ea4b"
|
||||
"GUID": "2b24ccec-ece7-4e8c-bea9-d2ca6214f106"
|
||||
},
|
||||
"Value": "0"
|
||||
}
|
||||
@@ -489,7 +489,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "63717820-b794-4564-b115-c085dbf33b17"
|
||||
"ID": "760bd114-6783-442e-b507-7f0816d0e453"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -515,18 +515,18 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "钩子ID",
|
||||
"GUID": "71681bd0-e7cb-4ba2-be9d-d8c902f124ae"
|
||||
"GUID": "50e8d8ee-ac9a-4a54-b82d-b18e2eb768b1"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.id"
|
||||
"SerializeProperty": "=查找钩子.id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "订阅成功",
|
||||
"GUID": "ec4e7230-0fb9-4452-bc19-f6ef21642efb"
|
||||
"GUID": "c949b79f-2827-437e-a0f6-e08aae9b7521"
|
||||
},
|
||||
"Value": "1"
|
||||
}
|
||||
@@ -538,12 +538,12 @@
|
||||
"Message": "钩子已存在"
|
||||
}
|
||||
],
|
||||
"ID": "94b197b1-f2ea-400f-8cb3-b07705f1a8f9"
|
||||
"ID": "0b33a654-854b-4b97-96bd-58fab4325427"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "7f5dbfdf-16c7-4407-aa60-e35ffec13ded"
|
||||
"ID": "3c0f6f9d-fca7-471d-a936-547cb663e3b7"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -556,12 +556,12 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "fe312141-6c75-4967-aaa6-83e5804aae3a"
|
||||
"ID": "33aaf243-4c86-44fb-b88d-164bcd59956a"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "2ed5a7ee-177e-4784-9f96-36bbce804e9c"
|
||||
"ID": "9b734065-cb4d-4053-8f6c-9f038c68579a"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -571,12 +571,12 @@
|
||||
"Message": "该仓库已绑定"
|
||||
}
|
||||
],
|
||||
"ID": "4ee789dc-4642-4d34-9a2e-bfcb3b6397b8"
|
||||
"ID": "75510043-7a63-49cb-99f6-438f3b19992f"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "35977f7a-cd68-4e5e-b448-a7faff3ce155"
|
||||
"ID": "20a1f362-5334-4de1-b759-fe5daa25e6d6"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -586,7 +586,7 @@
|
||||
"Message": "仓库不存在,请先同步仓库到系统中"
|
||||
}
|
||||
],
|
||||
"ID": "43bcf490-993d-41b1-a794-513a3b128633"
|
||||
"ID": "1c9d0280-0f93-4e9f-8691-6443ba681b9f"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
"GUID": "bd5c6119-0f98-41ae-a979-aa49b426d2bf",
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "hook_url",
|
||||
"ColumnName": "Callback_url",
|
||||
"GUID": "7593214d-3ac3-4f31-8e29-e4230cf2b96a"
|
||||
},
|
||||
"ColumnName": "hook_url"
|
||||
@@ -279,7 +279,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "7bf94930-152d-4ad0-b0ed-06d9cf242245"
|
||||
"ID": "67e6f1f4-5eff-49e0-8926-27d1856fb5c1"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -314,7 +314,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "bfa84f55-a5a7-4e19-8ef6-7bcbd8149d2b"
|
||||
"ID": "8716d4a2-58e3-4aea-b167-741ed33baac8"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -330,12 +330,12 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "49a69f53-dc13-4115-8f1e-fba2282b4880"
|
||||
"ID": "71262bf0-6d26-4719-a357-b07f85494bc9"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "a9e37a05-1a06-4e28-be3c-79ac1f77bf06"
|
||||
"ID": "0fc6c357-c23c-4d12-9f93-86d3a4225087"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -345,7 +345,7 @@
|
||||
"Message": "仓库不存在!"
|
||||
}
|
||||
],
|
||||
"ID": "f69ab340-65a3-43d5-95c6-64efefd84138"
|
||||
"ID": "3b7d20e5-423a-453e-ab46-154da6fda2b2"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -62,6 +62,10 @@
|
||||
{
|
||||
"Name": "创建人头像",
|
||||
"DataValidationInfo": {}
|
||||
},
|
||||
{
|
||||
"Name": "api_url",
|
||||
"DataValidationInfo": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -90,7 +94,7 @@
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "4f669f8c-c38e-452c-9223-35f7a9a27572",
|
||||
"GUID": "0e7da4a8-d338-4585-b6f4-6ae272aea45f",
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "订阅成功",
|
||||
@@ -114,7 +118,7 @@
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "fc30c0772f5e4ae99affdaa5209494b1"
|
||||
"ID": "20e643f89e194c438087b618ea1c338d"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
|
||||
@@ -145,7 +149,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库ID",
|
||||
"GUID": "1082605c-1429-4edc-8b4c-434c60c43252"
|
||||
"GUID": "f278f2b3-b446-4dae-8aef-0201ead82b16"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -156,7 +160,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "空间路径名",
|
||||
"GUID": "a2efe75d-6164-4966-b690-801e3795d21a"
|
||||
"GUID": "8ad70fdd-f628-4030-9a80-bc9b2e911329"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -167,7 +171,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "空间名称",
|
||||
"GUID": "a2479990-5f1b-4983-acc4-20f68b94af90"
|
||||
"GUID": "d2d34e3b-f666-4a7e-ad09-1d9a1fd0f6a8"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -178,7 +182,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库路径名",
|
||||
"GUID": "eaaa2b00-c63d-4394-a2fe-49c500e2faef"
|
||||
"GUID": "4bf7ed6b-2f33-492d-94ea-ac19ab5dc207"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -189,7 +193,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库名称",
|
||||
"GUID": "1b2b0532-572e-4331-ac85-988cbce958c1"
|
||||
"GUID": "8c5a8472-cbd9-4a38-afae-1d6ef8da5d55"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -200,7 +204,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库地址",
|
||||
"GUID": "5c424701-fce3-44cc-b626-7f14dc7f41c6"
|
||||
"GUID": "e4a356de-ea3d-4a10-8161-60c670b4dcea"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -211,7 +215,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库描述",
|
||||
"GUID": "c9c4e52a-839e-4483-9c35-9118cf4ce34d"
|
||||
"GUID": "77c1c3f2-00b3-4835-b033-053fc6b582f5"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -222,7 +226,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库成员",
|
||||
"GUID": "8e47036f-a48c-45a7-b205-b42e39cbf499"
|
||||
"GUID": "929f6163-3e04-4ba3-a7d8-37edea5eaf44"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -233,7 +237,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "创建人",
|
||||
"GUID": "1599bc4e-4103-48b1-a5b4-960d658cee14"
|
||||
"GUID": "cfd7fd47-c234-452a-9db4-23be15c5044c"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -244,7 +248,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "创建人头像",
|
||||
"GUID": "abb4a6b9-7c75-4455-91c3-dd62370f62a5"
|
||||
"GUID": "8e758f6d-51fb-48ce-bd4c-210c3fe6f7e6"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -254,26 +258,37 @@
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "hook_url",
|
||||
"GUID": "a9d19b38-b4ab-49dc-8ec3-0544384e5c58"
|
||||
"ColumnName": "Callback_url",
|
||||
"GUID": "bbe9ea3b-e2a0-4f87-a2ca-70e7e12c1969"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=Gitee配置.回调地址"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "hook_api_url",
|
||||
"GUID": "82935348-3056-4b67-9e5b-c42913b609d8"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=api_url"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "订阅成功",
|
||||
"GUID": "50edfabc-aecf-4851-af6f-0f8f09b6a4be"
|
||||
"GUID": "202213a3-5f8f-41ac-a09b-8092bec46042"
|
||||
},
|
||||
"Value": "0"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "cce9653e-ed26-4971-bb60-868b659af738"
|
||||
"ID": "e1c14211-bea3-40a2-8209-c05ac6641717"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -299,7 +314,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "空间路径名",
|
||||
"GUID": "dd12a605-d5a6-4fdc-8d3e-cb2c5afc191e"
|
||||
"GUID": "852038c2-f6f6-4b56-9ba7-d305743e8aaa"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -310,7 +325,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "空间名称",
|
||||
"GUID": "31dadfcb-2aef-4091-b467-3c1c15e30b76"
|
||||
"GUID": "32994d59-895e-4a91-84b5-11004ba09778"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -321,7 +336,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库路径名",
|
||||
"GUID": "9dcbe99d-92b4-4cb1-aad2-ba5bbeb034b3"
|
||||
"GUID": "aeb5e23f-ba60-4482-96c0-6776d18d1bb5"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -332,7 +347,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库名称",
|
||||
"GUID": "a4ae2be3-852a-469f-b408-142d80f48e19"
|
||||
"GUID": "2fa19715-8877-47d7-9960-05d233f18f9c"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -343,7 +358,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库地址",
|
||||
"GUID": "2bdc2766-1b71-49a0-b2af-3ac04a956158"
|
||||
"GUID": "08d3b064-5361-4f0c-911e-d8fa7fe2ef8d"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -354,7 +369,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库描述",
|
||||
"GUID": "1cf9fc74-7684-44f9-b48c-fc5f7b15b2b2"
|
||||
"GUID": "bbeba002-5222-40f2-8497-09101ba4e5d8"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -365,7 +380,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库成员",
|
||||
"GUID": "91a2422b-e5db-4225-9ef3-2368813a02bb"
|
||||
"GUID": "6866c39a-6ce2-4eea-809b-7498fb3f8b56"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -376,7 +391,7 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "创建人",
|
||||
"GUID": "88141a74-bb6d-415a-bc4e-dd6fe45111f1"
|
||||
"GUID": "4ae75e1b-a21e-465d-ab2b-e0678f8fe835"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
@@ -387,17 +402,28 @@
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "创建人头像",
|
||||
"GUID": "1329af92-8a83-4cba-9294-a8e6349f5e73"
|
||||
"GUID": "59760498-30b8-4d54-a0cf-b4b8095bfb79"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=创建人头像"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "hook_api_url",
|
||||
"GUID": "17d7407b-7b1e-42c1-91df-db0dfaa22717"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=api_url"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "8d7222c3-a0df-4084-a9e8-39635a46a376"
|
||||
"ID": "51e42604-f5c1-4cf3-949e-0b42df31b38d"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -480,7 +506,7 @@
|
||||
"Message": "仓库创建并订阅成功!"
|
||||
}
|
||||
],
|
||||
"ID": "26633f60-fa35-46ed-8a51-214624ab8565"
|
||||
"ID": "b1a21ca4-fcba-4dd3-8b59-04b34652ed03"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -493,12 +519,12 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "f154763b-8f00-458c-b886-edf25bd928a8"
|
||||
"ID": "cb1079c2-3bc9-41fd-9ec1-b68eb25ec4aa"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "937774c3-9d6c-4e46-a752-2d3f181e52de"
|
||||
"ID": "b2af65ed-7f3e-4128-8ae9-113cba32e899"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -508,7 +534,7 @@
|
||||
"Message": "仓库创建成功!"
|
||||
}
|
||||
],
|
||||
"ID": "2eb0ad43-5996-4e32-8d39-1cd1f5e3cb0d"
|
||||
"ID": "bb33de37-3a08-4b5e-af09-01bd14a2b97d"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "bd58b78a-c6da-4660-a206-3882182af407",
|
||||
"GUID": "ee5b35a4-06a6-4a2a-a665-b58156b9fc15",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "GIT用户名",
|
||||
@@ -66,7 +66,7 @@
|
||||
"ColumnName": "GIT用户名"
|
||||
},
|
||||
{
|
||||
"GUID": "1187803a-6219-4476-baad-d2de55dc7cbe",
|
||||
"GUID": "6ea48354-141a-4d2c-8285-ab8b1988f367",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "GIT密码",
|
||||
@@ -90,7 +90,7 @@
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "86ff7d43aa9e4b9fbdb615e033c310f9"
|
||||
"ID": "c64d23df7d3a47e69f731f0c19239ba5"
|
||||
},
|
||||
{
|
||||
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
||||
@@ -324,6 +324,13 @@
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=Item.owner.avatar_url"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "hook_api_url",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=Item.hooks_url"
|
||||
}
|
||||
}
|
||||
],
|
||||
"OutParamaterName": "仓库信息"
|
||||
@@ -385,7 +392,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "8a7c97c0-4535-4e2a-852c-70792a53e6ff"
|
||||
"ID": "df25692d-cba6-4ab0-b6de-62c3e1e81010"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -413,7 +420,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "d1bd854a-0f1a-4896-8546-efd00f9b14cd"
|
||||
"ID": "aff3d917-7f65-423d-b16a-e5ef80688026"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
356
ServerCommands/Gitee/获取单个仓库信息.json
Normal file
356
ServerCommands/Gitee/获取单个仓库信息.json
Normal file
@@ -0,0 +1,356 @@
|
||||
{
|
||||
"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": {
|
||||
"IgnoreBlank": false
|
||||
},
|
||||
"TestData": "cuckooent"
|
||||
},
|
||||
{
|
||||
"Name": "仓库路径",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
},
|
||||
"TestData": "pms"
|
||||
}
|
||||
],
|
||||
"InvokeTriggerTestData": {
|
||||
"UserName": "Administrator"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Commands": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "当前用户",
|
||||
"TableValue": {
|
||||
"TableName": "用户信息视图",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "dd93bbf6-7dde-4b30-a406-f63a596548dd",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "GIT用户名",
|
||||
"GUID": "9d90cdfb-2501-444f-8044-74b71d02611d"
|
||||
},
|
||||
"ColumnName": "GIT用户名"
|
||||
},
|
||||
{
|
||||
"GUID": "fc4b6fc7-a13c-4bcf-9882-7e1f7086016f",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "GIT密码",
|
||||
"GUID": "686099b9-c0c1-47d7-8ced-b73723fb312b"
|
||||
},
|
||||
"ColumnName": "GIT密码"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "用户名",
|
||||
"GUID": "20e81393-b581-49b3-a04f-56cb93bca20c"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=用户名"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "1a4b1507a7cd4d63968f95f0133280dc"
|
||||
},
|
||||
{
|
||||
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
||||
"OutParamaterName": "仓库列表"
|
||||
},
|
||||
{
|
||||
"$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": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"https://gitee.com/api/v5/repos/\"&空间路径&\"/\"&仓库路径"
|
||||
},
|
||||
"ID": "c75ba4eef53e46d4bc828c82a3e6a0d2"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
|
||||
"TryCommandPart": {
|
||||
"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": "=TOKEN"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"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": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
||||
"InParamater": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.members"
|
||||
},
|
||||
"Operation": 16,
|
||||
"OperationParamaterAName": ",",
|
||||
"OutParamaterName": "仓库成员名称"
|
||||
},
|
||||
{
|
||||
"$type": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit",
|
||||
"OperationParamaterPairs": [
|
||||
{
|
||||
"Name": "ID",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.id"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "空间路径名",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.namespace.path"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "空间名称",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.namespace.name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "仓库路径名",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.path"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "仓库名称",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "仓库地址",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.html_url"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "仓库描述",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.description"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "仓库成员",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库成员名称"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "创建人",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.owner.name"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "创建人头像",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.owner.avatar_url"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "hook_api_url",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.hooks_url"
|
||||
}
|
||||
}
|
||||
],
|
||||
"OutParamaterName": "仓库信息"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "获取成功",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "仓库对象",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库信息"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"CatchCommandPart": {
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.message"
|
||||
},
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "仓库对象"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "d1816a0e-2d2b-4158-b493-5a03e61fd0bf"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=code"
|
||||
},
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=msg"
|
||||
},
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "仓库对象",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库列表"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "6619a91b-442d-42b1-879c-43335891ba82"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ReturnProperties": [
|
||||
{
|
||||
"Name": "仓库对象"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user