293 lines
13 KiB
JSON
293 lines
13 KiB
JSON
{
|
|
"$type": "Forguncy.SaveLoad.ServerCommandSaveData, ServerDesignerCommon",
|
|
"Name": "dingtalkLogin",
|
|
"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_Anonymous"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"HttpMethod": 3,
|
|
"Parameters": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon",
|
|
"Name": "authCode",
|
|
"DataValidationInfo": {
|
|
"$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon",
|
|
"IgnoreBlank": false
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.SaveLoad.PostRequestParameterSaveData, ServerDesignerCommon",
|
|
"Name": "state",
|
|
"DataValidationInfo": {
|
|
"$type": "Forguncy.SaveLoad.DataValidationInfoSaveData, ServerDesignerCommon"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"Commands": {
|
|
"$type": "System.Collections.Generic.List`1[[GrapeCity.Forguncy.Commands.Command, Forguncy.Commands]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "DingTalkPlugin.GetUserToken, DingTalkPlugin",
|
|
"Code": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=authCode"
|
|
},
|
|
"ResultTo": "Result",
|
|
"BreakpointIdentity": "83534d5d-3465-49af-a461-0db2bbc11ef6"
|
|
},
|
|
{
|
|
"$type": "DingTalkPlugin.GetUserWithOptions, DingTalkPlugin",
|
|
"Token": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=Result.AccessToken"
|
|
},
|
|
"UnionId": "me",
|
|
"ResultTo": "个人信息",
|
|
"BreakpointIdentity": "ac216e50-b58e-4b3a-927c-7b75ed11683b"
|
|
},
|
|
{
|
|
"$type": "DingTalkPlugin.Getbyunionid, DingTalkPlugin",
|
|
"UnionId": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=个人信息.UnionId"
|
|
},
|
|
"UserId": "UserId",
|
|
"BreakpointIdentity": "8393f526-cd39-4b90-b267-84185b136af7"
|
|
},
|
|
{
|
|
"$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": "0776cf8c-e7ac-42a9-94d1-16916c3e3df4",
|
|
"BindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "用户名",
|
|
"GUID": "1f400365-2901-41d6-a354-c6ebb1a6a41f"
|
|
},
|
|
"ColumnName": "用户名"
|
|
}
|
|
]
|
|
},
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"$type": "ForguncyDataAccess.BindingInfo, ForguncyDataAccess",
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "DingTalkUnionID",
|
|
"GUID": "8f9a3983-cded-410b-b825-8c5094d18049"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=个人信息.UnionId"
|
|
}
|
|
},
|
|
"NullFormulaValueQueryPolicy": 0,
|
|
"TopCount": "1"
|
|
},
|
|
"ID": "35941bb56df04762a700ed2239671b3e",
|
|
"BreakpointIdentity": "7cc4d694-9b53-465d-83a5-3058d68bd3a1"
|
|
},
|
|
{
|
|
"$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": "UserManagementCommandsV2.UserManagementCommand, UserManagementCommandsV2",
|
|
"OperationType": "202",
|
|
"CommandOperator": {
|
|
"$type": "UserManagementCommandsV2.UpdateUserOperator, UserManagementCommandsV2",
|
|
"UserName": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=查找用户.用户名"
|
|
},
|
|
"FullName": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=个人信息.Nick"
|
|
},
|
|
"Email": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=个人信息.Email"
|
|
},
|
|
"ExtendedProperties": {
|
|
"$type": "System.Collections.Generic.List`1[[UserManagementCommandsV2.ExtendedPropertyDto, UserManagementCommandsV2]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "UserManagementCommandsV2.ExtendedPropertyDto, UserManagementCommandsV2",
|
|
"Name": "DingTalkUnionID",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=个人信息.UnionId"
|
|
}
|
|
},
|
|
{
|
|
"$type": "UserManagementCommandsV2.ExtendedPropertyDto, UserManagementCommandsV2",
|
|
"Name": "DingTalkUserID",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=UserId"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"BreakpointIdentity": "983b1b03-ebc0-4176-bd7d-be917e3a03ef"
|
|
},
|
|
{
|
|
"$type": "UserManagementCommandsV2.UserManagementCommand, UserManagementCommandsV2",
|
|
"OperationType": "101",
|
|
"CommandOperator": {
|
|
"$type": "UserManagementCommandsV2.LoginOperator, UserManagementCommandsV2",
|
|
"UserName": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=查找用户.用户名"
|
|
},
|
|
"IsCheckPassword": false,
|
|
"RememberMe": "1"
|
|
},
|
|
"BreakpointIdentity": "b4b04453-1fc3-4d70-8d7b-f0b131893a77"
|
|
},
|
|
{
|
|
"$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": "unionid",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=个人信息.UnionId"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "userid",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=UserId"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "4eef644e-abb2-46df-b87d-8826d42b1888"
|
|
}
|
|
]
|
|
},
|
|
"ID": "eb269102-b5a1-4ec9-9317-0e1f6f6d8f0a"
|
|
},
|
|
{
|
|
"$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": "请先绑定账号后登录",
|
|
"CustomReturns": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.Model.CustomReturns, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "unionid",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=个人信息.UnionId"
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.CustomReturns, ServerDesignerCommon",
|
|
"ReturnPropertyName": "userid",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=UserId"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "b4fea6e2-b41c-41ca-9add-4792b202ddea"
|
|
}
|
|
]
|
|
},
|
|
"ID": "c7b754e4-6792-4dc5-805d-77d97c3131c6"
|
|
}
|
|
]
|
|
},
|
|
"BreakpointIdentity": "7d264550-6b58-4f32-ac6f-b2d81d7f5291"
|
|
}
|
|
]
|
|
},
|
|
"ReturnProperties": {
|
|
"$type": "System.Collections.Generic.List`1[[Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon]], System.Private.CoreLib",
|
|
"$values": [
|
|
{
|
|
"$type": "Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon",
|
|
"Name": "unionid"
|
|
},
|
|
{
|
|
"$type": "Forguncy.SaveLoad.ReturnPropertySaveData, ServerDesignerCommon",
|
|
"Name": "userid"
|
|
}
|
|
]
|
|
}
|
|
} |