{"Message":"1","MessageType":2,"Modules":[{"State":1,"Type":7,"Name":"Table/项目版本"},{"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":27,"Name":"ServerCommandPrivate/创建一个仓库WebHook"},{"State":2,"Type":15,"Name":"ServerCommand/获取企业的所有仓库"},{"State":1,"Type":1,"Name":"PCPage/开发测试"},{"State":3,"Type":27,"Name":"ServerCommandPrivate/删除一个仓库WebHook"},{"State":3,"Type":7,"Name":"Table/Git仓库表"},{"State":3,"Type":7,"Name":"Table/Git_WebHook"},{"State":3,"Type":22,"Name":"Tables/Git"},{"State":3,"Type":15,"Name":"ServerCommand/GitCallback"},{"State":3,"Type":7,"Name":"Table/日志表"},{"State":3,"Type":7,"Name":"Table/Git_事件记录"},{"State":3,"Type":1,"Name":"PCPage/选择Git仓库"},{"State":3,"Type":6,"Name":"Pages/Git"},{"State":3,"Type":15,"Name":"ServerCommand/同步一个仓库到表"},{"State":3,"Type":15,"Name":"ServerCommand/搜索仓库列表"},{"State":3,"Type":15,"Name":"ServerCommand/搜索仓库"},{"State":3,"Type":15,"Name":"ServerCommand/获取用户的所有仓库"}],"Version":"v1"}
This commit is contained in:
128
ServerCommands/Gitee/GitCallback.json
Normal file
128
ServerCommands/Gitee/GitCallback.json
Normal file
File diff suppressed because one or more lines are too long
@@ -6,64 +6,77 @@
|
||||
"$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon",
|
||||
"Parameters": [
|
||||
{
|
||||
"Name": "所属空间",
|
||||
"Name": "仓库ID",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "仓库路径",
|
||||
"DataValidationInfo": {}
|
||||
},
|
||||
{
|
||||
"Name": "回调地址",
|
||||
"DataValidationInfo": {}
|
||||
},
|
||||
"TestData": "gyrnccc"
|
||||
},
|
||||
{
|
||||
"Name": "用户名",
|
||||
"DataValidationInfo": {}
|
||||
},
|
||||
{
|
||||
"Name": "密码",
|
||||
"DataValidationInfo": {}
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
},
|
||||
"TestData": "Administrator"
|
||||
}
|
||||
]
|
||||
],
|
||||
"InvokeTriggerTestData": {
|
||||
"UserName": "Administrator"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Commands": [
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
||||
"ServerCommandName": "请求令牌",
|
||||
"Parameters": [
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "用户名",
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "当前用户",
|
||||
"TableValue": {
|
||||
"TableName": "用户信息视图",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "79da2071-159c-4a8d-8796-be57ae391a1f",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "GIT用户名",
|
||||
"GUID": "a7631324-378f-4577-a8af-d976f21cda27"
|
||||
},
|
||||
"ColumnName": "GIT用户名"
|
||||
},
|
||||
{
|
||||
"GUID": "68731a57-db25-4f90-bd1f-35011ff221a7",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "GIT密码",
|
||||
"GUID": "523d4df5-59b6-4437-b68b-661078b7bab5"
|
||||
},
|
||||
"ColumnName": "GIT密码"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "用户名",
|
||||
"GUID": "86de2db8-485a-4991-bb27-80ceb2d895c8"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=用户名"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "强制刷新"
|
||||
}
|
||||
],
|
||||
"ResultErrorCodeTo": {
|
||||
"SerializeProperty": "code"
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ResultMessageTo": {
|
||||
"SerializeProperty": "msg"
|
||||
"ID": "4d5b1b1010f84c79946ac09278aa8d66"
|
||||
},
|
||||
{
|
||||
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
|
||||
"JsonString": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=全局_Gitee"
|
||||
},
|
||||
"ReturnPropertiesTo": [
|
||||
{
|
||||
"ResultPropertyName": "最新令牌",
|
||||
"ResultTo": {
|
||||
"SerializeProperty": "TOKEN"
|
||||
}
|
||||
}
|
||||
],
|
||||
"RefreshAfterFinish": true,
|
||||
"CheckDataValidation": true
|
||||
"SampleJson": "{\r\n \"enterprise\": \"GridStudio\",\r\n \"client_id\": \"c7d05fcbaf78ad728fcc0267d081ae6c50dc667667758a0933525d4cbe09ed90\",\r\n \"client_secret\": \"b4d40db2155ca530e5771b37a2fb67161d4106c64df28f32504b4e3bcfb81313\"\r\n}",
|
||||
"ToParameter": "Gitee"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
||||
@@ -75,143 +88,486 @@
|
||||
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
||||
"ParamObject": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=code"
|
||||
"SerializeProperty": "=Gitee.enterprise"
|
||||
}
|
||||
},
|
||||
"value": "0"
|
||||
"value": "%Null%",
|
||||
"compareType": 1
|
||||
},
|
||||
"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"
|
||||
}
|
||||
"$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"
|
||||
},
|
||||
{
|
||||
"Name": "owner",
|
||||
"DataItemType": 0,
|
||||
"Data": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=所属空间"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "repo",
|
||||
"DataItemType": 0,
|
||||
"Data": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库路径"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "url",
|
||||
"DataItemType": 0,
|
||||
"Data": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=回调地址"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "encryption_type",
|
||||
"DataItemType": 0,
|
||||
"Data": 0
|
||||
},
|
||||
{
|
||||
"Name": "password",
|
||||
"DataItemType": 0,
|
||||
"Data": "x6158891C"
|
||||
},
|
||||
{
|
||||
"Name": "push_events",
|
||||
"DataItemType": 0,
|
||||
"Data": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=TRUE()"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "tag_push_events",
|
||||
"DataItemType": 0,
|
||||
"Data": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=FALSE()"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "issues_events",
|
||||
"DataItemType": 0,
|
||||
"Data": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=FALSE()"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "note_events",
|
||||
"DataItemType": 0,
|
||||
"Data": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=FALSE()"
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "merge_requests_events",
|
||||
"DataItemType": 0,
|
||||
"Data": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=FALSE()"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
"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"
|
||||
},
|
||||
"WebUrl": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=\"https://gitee.com/api/v5/repos/\"+所属空间+\"/\"+仓库路径+\"/hooks\""
|
||||
},
|
||||
"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
|
||||
"ID": "18b47cd732ea4f5ca35425f3f67f2068"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result"
|
||||
}
|
||||
"$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": "是否存在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"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库ID"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0
|
||||
},
|
||||
"ID": "4d967288116a47b58360492b81f91672"
|
||||
},
|
||||
{
|
||||
"$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": "=是否存在hook"
|
||||
}
|
||||
},
|
||||
"value": "%Null%"
|
||||
},
|
||||
"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.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/\"&Gitee.enterprise&\"/\"&仓库.仓库路径名&\"/hooks\""
|
||||
},
|
||||
"ID": "67f11c1341634f158b457443feca21de"
|
||||
},
|
||||
{
|
||||
"$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"
|
||||
}
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"CatchCommandPart": {
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.message"
|
||||
},
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "id"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "url"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "password"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "062c8d39-13c7-4101-bd8d-6fc7ad6a3e5d"
|
||||
},
|
||||
{
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "url"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "password"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "2be60152-4f35-4b2d-8ac0-59bd10d495a1"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "9e16d6e7-a0f1-4d32-9b6c-02a61e46b215"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "f1b86e04-26d0-48b8-a57a-627c6ab502c3"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "62249388-d560-49d9-b880-66c4dfe9917b"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "仓库不存在,请先同步仓库到系统中",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "id"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "url"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "password"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "d4a841d5-616d-4856-91c1-5e09d9ef0d19"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "bd98c351-01be-475c-b97a-1de47389664f"
|
||||
"ID": "7ab9d8c8-5f25-411c-b84a-bc652e49872e"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=code"
|
||||
},
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=msg"
|
||||
}
|
||||
"ErrorCode": "400",
|
||||
"Message": "请先配置全局Gitee企业路径名",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "id"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "url"
|
||||
},
|
||||
{
|
||||
"ReturnPropertyName": "password"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "aa58478f-ff6c-43a9-9154-643a8c411e12"
|
||||
"ID": "f90f8336-7ffa-4974-9d86-28d538890261"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ReturnProperties": [
|
||||
{
|
||||
"Name": "id"
|
||||
},
|
||||
{
|
||||
"Name": "url"
|
||||
},
|
||||
{
|
||||
"Name": "password"
|
||||
}
|
||||
]
|
||||
}
|
||||
296
ServerCommands/Gitee/删除一个仓库WebHook.json
Normal file
296
ServerCommands/Gitee/删除一个仓库WebHook.json
Normal file
@@ -0,0 +1,296 @@
|
||||
{
|
||||
"Name": "删除一个仓库WebHook",
|
||||
"Enabled": true,
|
||||
"Triggers": [
|
||||
{
|
||||
"$type": "Forguncy.SaveLoad.InvokeTriggerSaveData, ServerDesignerCommon",
|
||||
"Parameters": [
|
||||
{
|
||||
"Name": "WebHookId",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
},
|
||||
"TestData": "1400424"
|
||||
},
|
||||
{
|
||||
"Name": "仓库路径名",
|
||||
"DataValidationInfo": {},
|
||||
"TestData": "gyrnccc"
|
||||
},
|
||||
{
|
||||
"Name": "用户名",
|
||||
"DataValidationInfo": {},
|
||||
"TestData": "Administrator"
|
||||
}
|
||||
],
|
||||
"InvokeTriggerTestData": {
|
||||
"UserName": "Administrator"
|
||||
}
|
||||
}
|
||||
],
|
||||
"Commands": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "当前用户",
|
||||
"TableValue": {
|
||||
"TableName": "用户信息视图",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "78cb510b-3b08-4fee-8df4-b581cd73fcee",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "GIT用户名",
|
||||
"GUID": "b6e5b969-da71-4371-9a85-218e9a38c3ab"
|
||||
},
|
||||
"ColumnName": "GIT用户名"
|
||||
},
|
||||
{
|
||||
"GUID": "57b469ca-2dca-400b-9537-af32029ab64f",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "GIT密码",
|
||||
"GUID": "482c4996-4547-4c68-a398-80eb4563b998"
|
||||
},
|
||||
"ColumnName": "GIT密码"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "用户名",
|
||||
"GUID": "8ed9cbb6-76b8-463e-aef4-7585445b3303"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=用户名"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "50f64a7ee8764989ba838ab9701f5ce3"
|
||||
},
|
||||
{
|
||||
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
|
||||
"JsonString": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=全局_Gitee"
|
||||
},
|
||||
"SampleJson": "{\r\n \"enterprise\": \"GridStudio\",\r\n \"client_id\": \"c7d05fcbaf78ad728fcc0267d081ae6c50dc667667758a0933525d4cbe09ed90\",\r\n \"client_secret\": \"b4d40db2155ca530e5771b37a2fb67161d4106c64df28f32504b4e3bcfb81313\"\r\n}",
|
||||
"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": "0"
|
||||
}
|
||||
],
|
||||
"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/\"&Gitee.enterprise&\"/\"&仓库路径名&\"/hooks/\"&WebHookId"
|
||||
},
|
||||
"ID": "020374fd3ba147899767312a664c7c2e"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
|
||||
"TryCommandPart": {
|
||||
"CommandList": [
|
||||
{
|
||||
"$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": "=TOKEN"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"JsonString": "",
|
||||
"WebUrl": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=url"
|
||||
},
|
||||
"Method": "DELETE",
|
||||
"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": "delete",
|
||||
"ShowConfirm": true,
|
||||
"ConfirmText": "您确定要删除吗?",
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.RelationSqlCondition, ForguncyDataAccess",
|
||||
"SubConditions": [
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "Git_WebHook",
|
||||
"ColumnName": "hook_id",
|
||||
"GUID": "ac7a5b01-c68a-4321-b177-a3e2a9347c46"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=WebHookId"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "Git_WebHook",
|
||||
"ColumnName": "仓库ID",
|
||||
"GUID": "63ba95bb-2258-4f7e-a0c3-fd2c9a82c989",
|
||||
"RelationBinding": {
|
||||
"RelatedTable": "Git仓库表",
|
||||
"RelatedColumn": "仓库ID",
|
||||
"DisplayColumn": "仓库路径名"
|
||||
}
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库路径名"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "删除成功"
|
||||
}
|
||||
]
|
||||
},
|
||||
"CatchCommandPart": {
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": "删除失败"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "3d7aae36-4284-4774-b1b0-b9dd97b71884"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=code"
|
||||
},
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=msg"
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "dd119496-d60e-47fb-827d-6ae821d171c1"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "22d13d2c-b49a-4d0d-8a7f-b56f412c3f84"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": "请先配置全局Gitee企业路径名"
|
||||
}
|
||||
],
|
||||
"ID": "3c065a55-ba75-4fe4-b3f1-3114ed3aa694"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
490
ServerCommands/Gitee/同步一个仓库到表.json
Normal file
490
ServerCommands/Gitee/同步一个仓库到表.json
Normal file
@@ -0,0 +1,490 @@
|
||||
{
|
||||
"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": "仓库ID",
|
||||
"DataValidationInfo": {
|
||||
"IgnoreBlank": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"Name": "空间路径名",
|
||||
"DataValidationInfo": {}
|
||||
},
|
||||
{
|
||||
"Name": "空间名称",
|
||||
"DataValidationInfo": {}
|
||||
},
|
||||
{
|
||||
"Name": "仓库路径名",
|
||||
"DataValidationInfo": {}
|
||||
},
|
||||
{
|
||||
"Name": "仓库名称",
|
||||
"DataValidationInfo": {}
|
||||
},
|
||||
{
|
||||
"Name": "仓库地址",
|
||||
"DataValidationInfo": {}
|
||||
},
|
||||
{
|
||||
"Name": "仓库描述",
|
||||
"DataValidationInfo": {}
|
||||
},
|
||||
{
|
||||
"Name": "仓库成员",
|
||||
"DataValidationInfo": {}
|
||||
},
|
||||
{
|
||||
"Name": "创建人",
|
||||
"DataValidationInfo": {}
|
||||
},
|
||||
{
|
||||
"Name": "创建人头像",
|
||||
"DataValidationInfo": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Commands": [
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "当前用户",
|
||||
"TableValue": {
|
||||
"TableName": "用户信息视图",
|
||||
"TableValueType": 1,
|
||||
"BindingInfos": [
|
||||
{
|
||||
"GUID": "366500b8-6b5a-415b-b080-c1984c5c546d",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "GIT用户名",
|
||||
"GUID": "56abe866-0cb9-4437-b844-3e8a8f30dfa5"
|
||||
},
|
||||
"ColumnName": "GIT用户名"
|
||||
},
|
||||
{
|
||||
"GUID": "1483cbe9-393e-45d7-94c4-367742849f83",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "GIT密码",
|
||||
"GUID": "d2ce4ffe-abcb-4b1b-8fbd-f8481b08df32"
|
||||
},
|
||||
"ColumnName": "GIT密码"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "用户名",
|
||||
"GUID": "af5d8809-daac-453d-9874-3c1a16f44ecd"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=用户名"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "1635e0bf7bdf4b56b986f7c95a2104ef"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
||||
"ParameterName": "查找仓库",
|
||||
"TableValue": {
|
||||
"TableName": "Git仓库表",
|
||||
"TableValueType": 3,
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库ID",
|
||||
"GUID": "cb3e1ea6-5719-447f-9e75-84923cffaf89"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库ID"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0
|
||||
},
|
||||
"ID": "2abb0425c40841df8b09b37ecbbf58cb"
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.ServerTransactionCommand, ServerDesignerCommon",
|
||||
"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": "0"
|
||||
},
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "Git仓库表",
|
||||
"UpdateType": "add",
|
||||
"ShowConfirm": false,
|
||||
"UpdateBindingValues": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库ID",
|
||||
"GUID": "dbd47bc5-1fde-4182-8e78-1d3c76ea6223"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库ID"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "空间路径名",
|
||||
"GUID": "abca3f5e-e20c-455b-b775-67f048fa8c87"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=空间路径名"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "空间名称",
|
||||
"GUID": "87681325-0d60-4165-94da-7f3190953f10"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=空间名称"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库路径名",
|
||||
"GUID": "5b0f1389-5fc4-4330-b890-9d20f57e44bc"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库路径名"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库名称",
|
||||
"GUID": "714bfac1-405b-4a5d-9a22-bcff5b3cd28f"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库名称"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库地址",
|
||||
"GUID": "7dce609f-eea9-4411-8037-4b6a3730449f"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库地址"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库描述",
|
||||
"GUID": "de30e5d1-4837-4ebc-8ad3-344b36eb75ed"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库描述"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库成员",
|
||||
"GUID": "8ae4008a-c654-483d-ab3e-6ffe05ec8f68"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库成员"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "创建人",
|
||||
"GUID": "15f8dcd3-e557-413c-9edb-b065a7496b0e"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=创建人"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "创建人头像",
|
||||
"GUID": "c26b8a11-866b-4c85-b69c-45501406eb3b"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=创建人头像"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "80813e9f-283a-4403-a633-860f7c3c9e84"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.UpdateDataTableCommand, ServerDesignerCommon",
|
||||
"TableName": "Git仓库表",
|
||||
"ShowConfirm": false,
|
||||
"RowsToUpdate": 1,
|
||||
"RowsToUpdateCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库ID",
|
||||
"GUID": "0cb22c5e-6428-421d-b601-e71f8fe673bd"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库ID"
|
||||
}
|
||||
},
|
||||
"UpdateBindingValues": [
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "空间路径名",
|
||||
"GUID": "4cace823-2051-4a68-be59-823a2b1af654"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=空间路径名"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "空间名称",
|
||||
"GUID": "1de7544c-bf71-4d40-8a9a-2007c833de53"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=空间名称"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库路径名",
|
||||
"GUID": "00ae0991-9a9b-4f75-aac6-146b1421a1f3"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库路径名"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库名称",
|
||||
"GUID": "31ce0962-b44b-4c79-96b8-a4fe0d660f24"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库名称"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库地址",
|
||||
"GUID": "af88bb26-fcc8-494a-ae5f-f39d2c549612"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库地址"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库描述",
|
||||
"GUID": "589d9932-db4e-403d-9484-af3ec8564b39"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库描述"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "仓库成员",
|
||||
"GUID": "ffbef827-bb53-428e-a446-e6951cdd4efb"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库成员"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "创建人",
|
||||
"GUID": "6a03ba3f-11fb-4c27-a6a7-10cd85f29660"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=创建人"
|
||||
}
|
||||
},
|
||||
{
|
||||
"BindingInfo": {
|
||||
"TableName": "Git仓库表",
|
||||
"ColumnName": "创建人头像",
|
||||
"GUID": "339132cf-3720-424e-87ef-0a539efe8026"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=创建人头像"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "2d93347d-4804-4cd7-90f0-bb959f962714"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
||||
"ServerCommandName": "创建一个仓库WebHook",
|
||||
"Parameters": [
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "仓库ID",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=仓库路径名"
|
||||
}
|
||||
},
|
||||
{
|
||||
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
||||
"ParamName": "用户名",
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=当前用户"
|
||||
}
|
||||
}
|
||||
],
|
||||
"ResultErrorCodeTo": {
|
||||
"SerializeProperty": "code"
|
||||
},
|
||||
"ResultMessageTo": {
|
||||
"SerializeProperty": "msg"
|
||||
},
|
||||
"ReturnPropertiesTo": [
|
||||
{
|
||||
"ResultPropertyName": "id",
|
||||
"ResultTo": {
|
||||
"SerializeProperty": "res_hookId"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ResultPropertyName": "url",
|
||||
"ResultTo": {
|
||||
"SerializeProperty": "res_URL"
|
||||
}
|
||||
},
|
||||
{
|
||||
"ResultPropertyName": "password",
|
||||
"ResultTo": {
|
||||
"SerializeProperty": "res_密码"
|
||||
}
|
||||
}
|
||||
],
|
||||
"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.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "仓库创建并订阅成功!"
|
||||
}
|
||||
],
|
||||
"ID": "01bd4a4a-25a1-47a7-aff1-03e0fa05ed57"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "仓库创建成功,但未能订阅,请手动订阅"
|
||||
}
|
||||
],
|
||||
"ID": "602cc6b8-a64d-4ffb-8f12-faf8c062ad86"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
476
ServerCommands/Gitee/搜索仓库.json
Normal file
476
ServerCommands/Gitee/搜索仓库.json
Normal file
@@ -0,0 +1,476 @@
|
||||
{
|
||||
"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": {},
|
||||
"TestData": "UI"
|
||||
},
|
||||
{
|
||||
"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": "000f08ba-ce47-4275-bf3f-f4756cd687d0",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "GIT用户名",
|
||||
"GUID": "a7a542bb-c690-4434-a291-280d4cd24db1"
|
||||
},
|
||||
"ColumnName": "GIT用户名"
|
||||
},
|
||||
{
|
||||
"GUID": "9e9b45e6-9e59-47bd-9dae-8eccefbdd168",
|
||||
"BindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "GIT密码",
|
||||
"GUID": "b2873649-7bba-4aff-a01a-ca2b893679d7"
|
||||
},
|
||||
"ColumnName": "GIT密码"
|
||||
}
|
||||
],
|
||||
"SqlCondition": {
|
||||
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
||||
"ColumnBindingInfo": {
|
||||
"TableName": "用户信息视图",
|
||||
"ColumnName": "用户名",
|
||||
"GUID": "245446e2-3f7b-450d-865b-84dfbb83d524"
|
||||
},
|
||||
"Value": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=用户名"
|
||||
}
|
||||
},
|
||||
"NullFormulaValueQueryPolicy": 0,
|
||||
"TopCount": "1"
|
||||
},
|
||||
"ID": "23ff64d5cb86411080f5dc3a39b71562"
|
||||
},
|
||||
{
|
||||
"$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/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.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": "a6e4557a-0215-4ccd-b386-f171fed6d096"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "0",
|
||||
"Message": "无仓库信息",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "仓库列表"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "a680a444-14f6-41dc-ad33-2c1bf49a018c"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"CatchCommandPart": {
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": {
|
||||
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
||||
"SerializeProperty": "=result.message"
|
||||
},
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "仓库列表"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "8c2cba52-280c-4817-bc34-92acfcdb7ec1"
|
||||
},
|
||||
{
|
||||
"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": "98396a37-1b66-41f8-8086-262a42884fbd"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "1e65b0c1-d885-462d-87cb-3606c8ed982a"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
{
|
||||
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
||||
"ErrorCode": "400",
|
||||
"Message": "请先配置全局Gitee企业路径名",
|
||||
"CustomReturns": [
|
||||
{
|
||||
"ReturnPropertyName": "仓库列表"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "251d4438-c171-476d-ac05-4b5f114d5a07"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ReturnProperties": [
|
||||
{
|
||||
"Name": "仓库列表"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -394,7 +394,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "10378dc6-9bbb-48b1-ae78-ce17a487a307"
|
||||
"ID": "57d08ed7-a53c-490e-b4f1-9cd33ceb7738"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -409,7 +409,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "bb140470-5d49-4bdc-b054-27be941172ce"
|
||||
"ID": "6e3fcb95-cd78-42bb-b6dc-53fd531c461e"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -434,7 +434,7 @@
|
||||
}
|
||||
}
|
||||
],
|
||||
"ID": "17e4b785-92fd-497d-8ec4-7a549367e8bd"
|
||||
"ID": "d8913fd5-9ad7-4e0d-8e8c-9c5cb187f7d0"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -455,12 +455,12 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "12ed68b9-0006-48d7-bd0d-9a9735dd6380"
|
||||
"ID": "56b95be7-a43f-4341-b2da-27c5e6e7f705"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "1cc2265a-af32-466a-9d75-fa64c9011393"
|
||||
"ID": "9c0349de-f085-430f-9905-8b4fcd60a82b"
|
||||
},
|
||||
{
|
||||
"CommandList": [
|
||||
@@ -475,7 +475,7 @@
|
||||
]
|
||||
}
|
||||
],
|
||||
"ID": "fbb8483f-8daa-4e2f-a45a-8024eea8c7bf"
|
||||
"ID": "a9c25237-34de-4e69-9806-59cbb1ba68d4"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
475
ServerCommands/Gitee/获取用户的所有仓库.json
Normal file
475
ServerCommands/Gitee/获取用户的所有仓库.json
Normal file
@@ -0,0 +1,475 @@
|
||||
{
|
||||
"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": "仓库列表"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user