408 lines
23 KiB
JSON
408 lines
23 KiB
JSON
{
|
|
"$type": "Forguncy.SaveLoad.ServerCommandSaveData, ServerDesignerCommon",
|
|
"Name": "更新GITEE信息",
|
|
"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"
|
|
},
|
|
{
|
|
"$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon",
|
|
"Name": "Git用户名",
|
|
"DataValidationInfo": {
|
|
"$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon"
|
|
},
|
|
"TestData": "cuckooent"
|
|
},
|
|
{
|
|
"$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon",
|
|
"Name": "Git密码",
|
|
"DataValidationInfo": {
|
|
"$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon"
|
|
},
|
|
"TestData": "x6158891C"
|
|
}
|
|
]
|
|
},
|
|
"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": "JsonUtilityCommand.JsonDeserializeCommand, JsonUtilityCommand",
|
|
"JsonString": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=全局_Gitee"
|
|
},
|
|
"SampleJson": "{\r\n \"client_id\": \"c7d05fcbaf78ad728fcc0267d081ae6c50dc667667758a0933525d4cbe09ed90\",\r\n \"client_secret\": \"b4d40db2155ca530e5771b37a2fb67161d4106c64df28f32504b4e3bcfb81313\"\r\n}",
|
|
"ToParameter": "Gitee配置",
|
|
"BreakpointIdentity": "330b0eca-a1dd-4b27-b906-bf0920c219a8"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "用户",
|
|
"TableValue": {
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValue, ServerDesignerCommon",
|
|
"TableName": "用户信息视图",
|
|
"TableValueType": 1,
|
|
"BindingInfos": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
|
"GUID": "1b272cc8-ff24-4aa1-9795-10b22b504bbf",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "用户名",
|
|
"GUID": "adce5931-be11-4801-8178-6bed10f2c9b2"
|
|
},
|
|
"ColumnName": "用户名"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
|
"GUID": "4e191c4a-ccc0-485a-bd61-0ebecf122d49",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "全名",
|
|
"GUID": "7deda464-b19d-48b4-bb68-3f738a324abc"
|
|
},
|
|
"ColumnName": "全名"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.Commands.ParameterTableValueColumn, ServerDesignerCommon",
|
|
"GUID": "a0ee631b-9b0d-48a1-b2d1-66c9e0922682",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "邮件",
|
|
"GUID": "614d14c1-d3eb-474c-8645-4e7aa800c8e0"
|
|
},
|
|
"ColumnName": "邮件"
|
|
}
|
|
]
|
|
},
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "用户名",
|
|
"GUID": "5528766a-0121-41a8-99b1-1d47fcfc5c60"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=用户名"
|
|
}
|
|
},
|
|
"NullFormulaValueQueryPolicy": 0,
|
|
"TopCount": "1"
|
|
},
|
|
"ID": "24f1c159d1b34db09b2072799a47af8d",
|
|
"BreakpointIdentity": "77e79a38-0159-46b0-86be-706581b517a0"
|
|
},
|
|
{
|
|
"$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": "=用户"
|
|
}
|
|
},
|
|
"value": "%Null%",
|
|
"compareType": 1
|
|
},
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$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": "grant_type",
|
|
"DataItemType": 0,
|
|
"Data": "password"
|
|
},
|
|
{
|
|
"$type": "PostDataToWebApi.DataItem, PostDataToWebApi",
|
|
"Name": "username",
|
|
"DataItemType": 0,
|
|
"Data": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Git用户名"
|
|
}
|
|
},
|
|
{
|
|
"$type": "PostDataToWebApi.DataItem, PostDataToWebApi",
|
|
"Name": "password",
|
|
"DataItemType": 0,
|
|
"Data": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Git密码"
|
|
}
|
|
},
|
|
{
|
|
"$type": "PostDataToWebApi.DataItem, PostDataToWebApi",
|
|
"Name": "client_id",
|
|
"DataItemType": 0,
|
|
"Data": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Gitee配置.client_id"
|
|
}
|
|
},
|
|
{
|
|
"$type": "PostDataToWebApi.DataItem, PostDataToWebApi",
|
|
"Name": "client_secret",
|
|
"DataItemType": 0,
|
|
"Data": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Gitee配置.client_secret"
|
|
}
|
|
},
|
|
{
|
|
"$type": "PostDataToWebApi.DataItem, PostDataToWebApi",
|
|
"Name": "scope",
|
|
"DataItemType": 0,
|
|
"Data": "user_info projects pull_requests issues notes keys hook groups gists enterprises"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"JsonString": "",
|
|
"WebUrl": "https://gitee.com/oauth/token",
|
|
"Method": "POST",
|
|
"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": "179cde16-932b-4d51-99ee-722c354901c1"
|
|
},
|
|
{
|
|
"$type": "SaveFormData.fillInJSONProperties, SaveFormData",
|
|
"FullJsonString": "{\r\n \"error\": \"invalid_grant\",\r\n \"error_description\": \"授权方式无效,或者登录回调地址无效、过期或已被撤销\",\r\n \"access_token\": \"5c7c5fe2b1f0fc025c1a38006b6e95f3\",\r\n \"token_type\": \"bearer\",\r\n \"expires_in\": 86400,\r\n \"refresh_token\": \"03be42668ee199713604ff75491eeb0904a665d069de178c6c8f73c0a50a6ab6\",\r\n \"scope\": \"user_info projects pull_requests issues notes keys hook groups gists enterprises\",\r\n \"created_at\": 1718241807\r\n}",
|
|
"SourceJson": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=result"
|
|
},
|
|
"ResultTo": "RES",
|
|
"BreakpointIdentity": "ee7783fe-0dc7-46fd-ad0a-8a6c96349b18"
|
|
},
|
|
{
|
|
"$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": "=RES.error"
|
|
}
|
|
},
|
|
"value": "%Null%"
|
|
},
|
|
"CommandList": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "UserManagementCommandsV2.UserManagementCommand, UserManagementCommandsV2",
|
|
"OperationType": "202",
|
|
"CommandOperator": {
|
|
"$type": "UserManagementCommandsV2.UpdateUserOperator, UserManagementCommandsV2",
|
|
"UserName": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=用户名"
|
|
},
|
|
"FullName": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=用户.全名"
|
|
},
|
|
"Email": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=用户.邮件"
|
|
},
|
|
"ExtendedProperties": {
|
|
"$type": "System.Collections.Generic.List`1[[UserManagementCommandsV2.ExtendedPropertyDto, UserManagementCommandsV2]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "UserManagementCommandsV2.ExtendedPropertyDto, UserManagementCommandsV2",
|
|
"Name": "GIT用户名",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Git用户名"
|
|
}
|
|
},
|
|
{
|
|
"$type": "UserManagementCommandsV2.ExtendedPropertyDto, UserManagementCommandsV2",
|
|
"Name": "GIT密码",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Git密码"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"BreakpointIdentity": "b83accbe-67c2-4e52-918a-630edeced6fb"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "保存成功",
|
|
"BreakpointIdentity": "51882b63-25f2-4251-8b6a-651975522da9"
|
|
}
|
|
]
|
|
},
|
|
"ID": "6d147886-41a3-4e30-b0c0-afe199f231bb"
|
|
},
|
|
{
|
|
"$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": "=result.error"
|
|
},
|
|
"Message": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=result.error_description"
|
|
},
|
|
"BreakpointIdentity": "697cd9ba-df72-48a1-a24a-32d3fb48dbdd"
|
|
}
|
|
]
|
|
},
|
|
"ID": "4309bb8a-5783-49f5-94b2-1aad2e489dd8"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "7e72cbf4-3d08-4d44-b5b7-8981001c007c"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"CatchCommandPart": {
|
|
"$type": "Forguncy.Model.CatchCommandNode, 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": "=ExceptionCode"
|
|
},
|
|
"Message": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=ExceptionMessage"
|
|
},
|
|
"BreakpointIdentity": "50757498-c465-4025-adaa-39ab03372d7e"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"BreakpointIdentity": "335e08bf-21d2-425b-a835-cad76c8e56f9"
|
|
}
|
|
]
|
|
},
|
|
"ID": "d9ef6797-66b1-4814-a17c-fb7ef06f852b"
|
|
},
|
|
{
|
|
"$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": "400",
|
|
"Message": "用户不存在",
|
|
"BreakpointIdentity": "7af14519-61df-4626-a05c-616b71f0b298"
|
|
}
|
|
]
|
|
},
|
|
"ID": "01e96eb0-488e-418f-a2e7-cc5fffb39c9a"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "3ec8a3f3-604a-4cd9-92d7-e2415f91e74a"
|
|
}
|
|
]
|
|
}
|
|
} |