Files
clue/ServerCommands/钉钉/钉钉登录绑定账号并登录.json

170 lines
5.9 KiB
JSON

{
"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_Anonymous"
]
}
]
}
},
"HttpMethod": 3,
"Parameters": [
{
"Name": "用户名",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "密码",
"DataValidationInfo": {
"IgnoreBlank": false
}
},
{
"Name": "钉钉UnionId",
"DataValidationInfo": {
"IgnoreBlank": false
}
}
]
}
],
"Commands": [
{
"$type": "Forguncy.Model.CatchExceptionCommand, ServerDesignerCommon",
"TryCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
"ParameterName": "user",
"TableValue": {
"TableName": "用户信息视图",
"TableValueType": 1,
"BindingInfos": [
{
"GUID": "bd764706-dd08-43b9-9feb-e247279a4d48",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "2aa3fe17-bed7-44eb-b3d3-0e637a897bdf"
},
"ColumnName": "用户名"
},
{
"GUID": "d29fda43-7af7-4f25-ac3d-a33fb3aec17a",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "全名",
"GUID": "f743ac46-842c-4e07-8b4b-aee23f2ef108"
},
"ColumnName": "全名"
},
{
"GUID": "68e937d2-7e00-4827-837b-fd2be6e0f316",
"BindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "邮件",
"GUID": "0dcac6c4-a0eb-48b1-ae6d-1e70bfb57000"
},
"ColumnName": "邮件"
}
],
"SqlCondition": {
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
"ColumnBindingInfo": {
"TableName": "用户信息视图",
"ColumnName": "用户名",
"GUID": "9edc3b51-a2ef-44c4-9ba2-af242e5c163f"
},
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户名"
}
},
"TopCount": "1"
},
"ID": "7157d69e949042e7b5ac85d144b289a3"
},
{
"$type": "UserManagementCommandsV2.UserManagementCommand, UserManagementCommandsV2",
"OperationType": "101",
"CommandOperator": {
"$type": "UserManagementCommandsV2.LoginOperator, UserManagementCommandsV2",
"UserName": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=用户名"
},
"Password": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=密码"
},
"RememberMe": "1"
}
},
{
"$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": "=user.全名"
},
"Email": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=user.邮件"
},
"ExtendedProperties": [
{
"Name": "DingTalkUnionID",
"Value": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=钉钉UnionId"
}
}
]
}
},
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": "0",
"Message": "登录成功"
}
]
},
"CatchCommandPart": {
"CommandList": [
{
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
"ErrorCode": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionCode"
},
"Message": {
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
"SerializeProperty": "=ExceptionMessage"
}
}
]
}
}
]
}