Files
clue/ServerCommands/钉钉/dingtalkLogin.json
cuckooent 7da607143c {"Message":"更新钉钉配置","MessageType":2,"Modules":[{"State":1,"Type":20,"Name":"ServerCommands/钉钉"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/通过免登码获取用户信息"},{"State":1,"Type":15,"Name":"ServerCommand/绑定钉钉UnionId"},{"State":1,"Type":15,"Name":"ServerCommand/创建反馈审批待办"},{"State":1,"Type":15,"Name":"ServerCommand/发送工作通知消息"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/Basic创建钉钉待办"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/发送日报消息到钉钉"},{"State":1,"Type":15,"Name":"ServerCommand/钉钉授权登录"},{"State":1,"Type":15,"Name":"ServerCommand/批量同步所有用户UserID"},{"State":1,"Type":15,"Name":"ServerCommand/钉钉登录绑定账号并登录"},{"State":1,"Type":15,"Name":"ServerCommand/dingtalkLogin"},{"State":1,"Type":15,"Name":"ServerCommand/解绑钉钉"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/订阅钉钉回调事件"},{"State":1,"Type":15,"Name":"ServerCommand/创建任务审批待办"},{"State":1,"Type":15,"Name":"ServerCommand/创建项目视频会议"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/初始化钉钉配置"},{"State":1,"Type":15,"Name":"ServerCommand/删除钉钉待办"},{"State":1,"Type":15,"Name":"ServerCommand/获取CorpId"},{"State":1,"Type":15,"Name":"ServerCommand/创建项目审批待办"},{"State":1,"Type":15,"Name":"ServerCommand/创建工时申请审批待办"},{"State":1,"Type":27,"Name":"ServerCommandPrivate/Basic更新待办"},{"State":1,"Type":15,"Name":"ServerCommand/更新审批待办"}],"Version":"v1"}
2024-11-08 23:06:52 +08:00

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",
"UserName": {
"$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": "c5496bba-4833-4374-b4c5-9d45c1e8d3dc",
"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": "a41b2b5a302041d8bd180ebf72771907",
"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": "5ad67a70-a9c8-4344-b3e7-e3ba9d7e18c4"
},
{
"$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": "82f611fa-225e-4894-aeca-ad61871347f1"
}
]
},
"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"
}
]
}
}