388 lines
20 KiB
JSON
388 lines
20 KiB
JSON
{
|
|
"$type": "Forguncy.SaveLoad.ServerCommandSaveData, ServerDesignerCommon",
|
|
"Name": "列出授权用户所有的Namespace",
|
|
"Enabled": true,
|
|
"Triggers": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.TriggerSaveDataBase, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.SaveLoad.PostRequestTriggerSaveData, ServerDesignerCommon",
|
|
"Permission": {
|
|
"$type": "Forguncy.SaveLoad.ServerCommandPermissionSaveData, ServerDesignerCommon",
|
|
"PermissionData": {
|
|
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionData, Forguncy.RbacPermission.Core",
|
|
"permissionResource": {
|
|
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionResource, Forguncy.RbacPermission.Core"
|
|
},
|
|
"permissionBindings": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.RbacPermission.Core.Impl.ServerCommand.IServerCommandPermissionBinding, Forguncy.RbacPermission.Core]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.RbacPermission.Core.Impl.ServerCommand.ServerCommandPermissionBinding, Forguncy.RbacPermission.Core",
|
|
"roleNames": {
|
|
"$type": "System.Collections.Generic.List`1[[System.String, System.Private.CoreLib]], System.Private.CoreLib",
|
|
"$values": [
|
|
"FGC_LoginUser"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"Parameters": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon",
|
|
"Name": "用户名",
|
|
"DataValidationInfo": {
|
|
"$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon",
|
|
"IgnoreBlank": false
|
|
},
|
|
"TestData": "Administrator"
|
|
}
|
|
]
|
|
},
|
|
"InvokeTriggerTestData": {
|
|
"$type": "Forguncy.SaveLoad.InvokeTriggerTestDataSaveData, ServerDesignerCommon",
|
|
"UserName": "Administrator"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"Commands": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
|
"ServerCommandName": "请求令牌",
|
|
"Parameters": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.RequestServerCommandParamBase, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "用户名",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=用户名"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "强制刷新",
|
|
"Value": "0"
|
|
}
|
|
]
|
|
},
|
|
"ResultErrorCodeTo": {
|
|
"$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon",
|
|
"SerializeProperty": "code"
|
|
},
|
|
"ResultMessageTo": {
|
|
"$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon",
|
|
"SerializeProperty": "msg"
|
|
},
|
|
"ReturnPropertiesTo": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnPropertyTo, ServerDesignerCommon",
|
|
"ResultPropertyName": "最新令牌",
|
|
"ResultTo": {
|
|
"$type": "Forguncy.Common.FormulaCellLocation, ServerDesignerCommon",
|
|
"SerializeProperty": "ACCESS_TOKEN"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"RefreshAfterFinish": true,
|
|
"CheckDataValidation": true,
|
|
"BreakpointIdentity": "bbb103b6-4394-47df-a249-eab13b880b14"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
|
"ConditionAndCommandPairList": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon",
|
|
"Condition": {
|
|
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
|
"param": {
|
|
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
|
"ParamObject": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=code"
|
|
}
|
|
},
|
|
"value": "0"
|
|
},
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "url",
|
|
"ParameterValue": "https://gitee.com/api/v5/user/namespaces",
|
|
"ID": "e09586acb7f74d1db8d88b8f48c345c4",
|
|
"BreakpointIdentity": "a0e15828-bc0f-431a-b696-d29611b22911"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
|
|
"TryCommandPart": {
|
|
"$type": "Forguncy.Model.ExceptionCommandBaseNode, ServerDesignerCommon",
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "PostDataToWebApi.PostDataCommand, PostDataToWebApi",
|
|
"PostData": {
|
|
"$type": "PostDataToWebApi.DataItem, PostDataToWebApi",
|
|
"DataItemType": 1,
|
|
"Data": {
|
|
"$type": "PostDataToWebApi.ObjectData, PostDataToWebApi",
|
|
"Data": {
|
|
"$type": "System.Collections.Generic.List`1[[PostDataToWebApi.DataItem, PostDataToWebApi]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "PostDataToWebApi.DataItem, PostDataToWebApi",
|
|
"Name": "access_token",
|
|
"DataItemType": 0,
|
|
"Data": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=ACCESS_TOKEN"
|
|
}
|
|
},
|
|
{
|
|
"$type": "PostDataToWebApi.DataItem, PostDataToWebApi",
|
|
"Name": "mode",
|
|
"DataItemType": 0,
|
|
"Data": "all"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"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": {
|
|
"$type": "System.Collections.Generic.List`1[[PostDataToWebApi.RequestHeaderSaveAndLoad, PostDataToWebApi]], System.Private.CoreLib",
|
|
"$values": []
|
|
},
|
|
"Timeout": 100.0,
|
|
"BreakpointIdentity": "b53962b6-9467-452d-a084-fef350f77b0a"
|
|
},
|
|
{
|
|
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
|
"OutParamaterName": "企业列表",
|
|
"BreakpointIdentity": "57be95cd-a34d-4d97-bbe3-4abf9b315076"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.LoopCommand, ServerDesignerCommon",
|
|
"LoopInfo": {
|
|
"$type": "Forguncy.Model.CountLoopInfo, ServerDesignerCommon",
|
|
"LoopCount": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=result"
|
|
},
|
|
"LoopItemParamName": "Item"
|
|
},
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "类型",
|
|
"ParameterValue": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=IF(ISBLANK(Item.type),\"个人\",SWITCH(Item.type,\"Enterprise\",\"企业\",\"Group\",\"组织\",\"个人\"))"
|
|
},
|
|
"ID": "a3da1376a2bf434fb27a08ef4c99d602",
|
|
"BreakpointIdentity": "6be205d5-69b8-47a8-8378-f3146790311e"
|
|
},
|
|
{
|
|
"$type": "CollectionOperationKit.ServerSideObjectOp, CollectionOperationKit",
|
|
"OperationParamaterPairs": {
|
|
"$type": "System.Collections.Generic.List`1[[CollectionOperationKit.PropertyValueObject, CollectionOperationKit]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "CollectionOperationKit.PropertyValueObject, CollectionOperationKit",
|
|
"Name": "名称",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.name&\"(\"&类型&\")\""
|
|
}
|
|
},
|
|
{
|
|
"$type": "CollectionOperationKit.PropertyValueObject, CollectionOperationKit",
|
|
"Name": "路径",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Item.path"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"OutParamaterName": "当前企业",
|
|
"BreakpointIdentity": "055830b1-543f-4b66-810f-201bb8b70d31"
|
|
},
|
|
{
|
|
"$type": "CollectionOperationKit.ServerSideArrayOp, CollectionOperationKit",
|
|
"InParamater": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=企业列表"
|
|
},
|
|
"Operation": 4,
|
|
"OperationParamaterAName": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=当前企业"
|
|
},
|
|
"OutParamaterName": "企业列表",
|
|
"BreakpointIdentity": "3c774bd1-22ca-4a38-8d61-0b48428a314c"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "e3e40149-7308-41b9-9e72-1e40825802f5"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "完成",
|
|
"CustomReturns": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "企业列表",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=企业列表"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "ACCESS_TOKEN",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=ACCESS_TOKEN"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "107f82f5-64c9-47d1-add9-25c1dd89aed2"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"CatchCommandPart": {
|
|
"$type": "Forguncy.Model.CatchCommandNode, ServerDesignerCommon",
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
|
|
"JsonString": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=ExceptionMessage"
|
|
},
|
|
"SampleJson": "{\"message\":\"\"}",
|
|
"ToParameter": "错误信息",
|
|
"BreakpointIdentity": "98bf2a8e-033d-4dd7-8626-565fbcc30695"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "400",
|
|
"Message": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=错误信息.message"
|
|
},
|
|
"CustomReturns": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "企业列表"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "ACCESS_TOKEN",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=TOKEN"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "9309fa18-7fcc-42d8-a7b8-05a08223bee9"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"BreakpointIdentity": "824d57e2-b0ae-4b59-9abf-b4f84e2498b0"
|
|
}
|
|
]
|
|
},
|
|
"ID": "c72ebca4-5b33-4930-b96e-4af93de8842b"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ConditionAndCommandPair, ServerDesignerCommon",
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=code"
|
|
},
|
|
"Message": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=msg"
|
|
},
|
|
"CustomReturns": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "企业列表"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "ACCESS_TOKEN"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "9c2e5209-4ba8-4e94-895b-933319779a21"
|
|
}
|
|
]
|
|
},
|
|
"ID": "9ebe130c-f543-4de9-882a-2e1c969fe69d"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "fe21d7b5-4b93-4a4c-9bde-6e25abe8e004"
|
|
}
|
|
]
|
|
},
|
|
"ReturnProperties": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon",
|
|
"Name": "企业列表"
|
|
},
|
|
{
|
|
"$type": "Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon",
|
|
"Name": "ACCESS_TOKEN"
|
|
}
|
|
]
|
|
}
|
|
} |