334 lines
14 KiB
JSON
334 lines
14 KiB
JSON
{
|
|
"Name": "绑定钉钉UnionId",
|
|
"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_LoginUser"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"Parameters": [
|
|
{
|
|
"Name": "免登码",
|
|
"DataValidationInfo": {}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"Commands": [
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommand, ServerDesignerCommon",
|
|
"ServerCommandName": "通过免登码获取用户信息",
|
|
"Parameters": [
|
|
{
|
|
"$type": "Forguncy.Model.RequestServerCommandObjectParam, ServerDesignerCommon",
|
|
"ParamName": "AuthCode",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=免登码"
|
|
}
|
|
}
|
|
],
|
|
"ResultErrorCodeTo": {
|
|
"SerializeProperty": "code"
|
|
},
|
|
"ResultMessageTo": {
|
|
"SerializeProperty": "msg"
|
|
},
|
|
"ReturnPropertiesTo": [
|
|
{
|
|
"ResultPropertyName": "钉钉UnionId",
|
|
"ResultTo": {
|
|
"SerializeProperty": "UnionId"
|
|
}
|
|
}
|
|
],
|
|
"RefreshAfterFinish": true,
|
|
"CheckDataValidation": true
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
|
"ConditionAndCommandPairList": [
|
|
{
|
|
"Condition": {
|
|
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
|
"param": {
|
|
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
|
"ParamObject": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=code"
|
|
}
|
|
},
|
|
"value": "0"
|
|
},
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "已有用户",
|
|
"TableValue": {
|
|
"TableName": "用户信息视图",
|
|
"TableValueType": 1,
|
|
"BindingInfos": [
|
|
{
|
|
"GUID": "44989b75-dedf-4e91-943d-176b84d6f9dd",
|
|
"BindingInfo": {
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "用户名",
|
|
"GUID": "cb83f460-0a24-4f8c-8b34-791984246e2b"
|
|
},
|
|
"ColumnName": "用户名"
|
|
},
|
|
{
|
|
"GUID": "78647681-5f69-4e40-93c9-52e10929f4fb",
|
|
"BindingInfo": {
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "全名",
|
|
"GUID": "92ccdb26-a718-4d80-bef6-9ed36c5a701c"
|
|
},
|
|
"ColumnName": "全名"
|
|
},
|
|
{
|
|
"GUID": "369ff097-edf3-47f2-925e-412924a04985",
|
|
"BindingInfo": {
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "邮件",
|
|
"GUID": "9ca07348-4b82-408e-86ce-9043b2156586"
|
|
},
|
|
"ColumnName": "邮件"
|
|
}
|
|
],
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "DingTalkUnionID",
|
|
"GUID": "41af5aa1-0d6f-4353-8980-5cecbdd4353a"
|
|
},
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=UnionId"
|
|
}
|
|
},
|
|
"NullFormulaValueQueryPolicy": 0,
|
|
"TopCount": "1"
|
|
},
|
|
"ID": "32cef9836a0944aaa6e974d75fb07fc6"
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
|
"ConditionAndCommandPairList": [
|
|
{
|
|
"Condition": {
|
|
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
|
"param": {
|
|
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
|
"ParamObject": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=已有用户"
|
|
}
|
|
},
|
|
"value": "%Null%"
|
|
},
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.Commands.SetParameterCommand, ServerDesignerCommon",
|
|
"ParameterName": "当前用户",
|
|
"TableValue": {
|
|
"TableName": "用户信息视图",
|
|
"TableValueType": 1,
|
|
"BindingInfos": [
|
|
{
|
|
"GUID": "5c0c1a15-446f-4d4a-aa1a-da59e7ec42f9",
|
|
"BindingInfo": {
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "用户名",
|
|
"GUID": "0d50e533-5587-4fdb-9617-9fd8c2c5243b"
|
|
},
|
|
"ColumnName": "用户名"
|
|
},
|
|
{
|
|
"GUID": "c3b7f26c-800e-428c-8708-ea57f942cc8a",
|
|
"BindingInfo": {
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "全名",
|
|
"GUID": "7c941dda-663b-49c1-9bdc-d5f63ee8df29"
|
|
},
|
|
"ColumnName": "全名"
|
|
},
|
|
{
|
|
"GUID": "05b1fd1f-46eb-405c-bb06-83b85ad8e8c3",
|
|
"BindingInfo": {
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "邮件",
|
|
"GUID": "363e8f14-1d97-4ad9-92b9-9d58cea20f2f"
|
|
},
|
|
"ColumnName": "邮件"
|
|
}
|
|
],
|
|
"SqlCondition": {
|
|
"$type": "ForguncyDataAccess.GeneralCESqlCondition, ForguncyDataAccess",
|
|
"ColumnBindingInfo": {
|
|
"TableName": "用户信息视图",
|
|
"ColumnName": "用户名",
|
|
"GUID": "c8d2347a-55a2-479f-aa60-02d29a984d65"
|
|
},
|
|
"Value": "%CurrentUser%"
|
|
},
|
|
"TopCount": "1"
|
|
},
|
|
"ID": "b14087ed527f4c52af859ed15f100fdb"
|
|
},
|
|
{
|
|
"$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": [
|
|
{
|
|
"Name": "DingTalkUnionID",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=UnionId"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "绑定成功",
|
|
"CustomReturns": [
|
|
{
|
|
"ReturnPropertyName": "UnionId",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=UnionId"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ID": "c64bbee5-ab11-4033-892f-0441fe2d7faa"
|
|
},
|
|
{
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.ConditionCommand, ServerDesignerCommon",
|
|
"ConditionAndCommandPairList": [
|
|
{
|
|
"Condition": {
|
|
"$type": "Forguncy.Model.IfCondition, ServerDesignerCommon",
|
|
"param": {
|
|
"$type": "Forguncy.Model.IfConditionServerSiteParam, ServerDesignerCommon",
|
|
"ParamObject": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=已有用户.用户名"
|
|
}
|
|
},
|
|
"value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=当前用户"
|
|
}
|
|
},
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "0",
|
|
"Message": "绑定成功",
|
|
"CustomReturns": [
|
|
{
|
|
"ReturnPropertyName": "UnionId",
|
|
"Value": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=UnionId"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ID": "78b4fa6c-a0e2-4ebb-b351-bcf30798ce44"
|
|
},
|
|
{
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": "400",
|
|
"Message": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=\"当前钉钉账号已被\"&已有用户.全名&\"的账号绑定,请先解绑后再试!\""
|
|
},
|
|
"CustomReturns": [
|
|
{
|
|
"ReturnPropertyName": "UnionId"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ID": "29f2d4cc-7ec2-4aff-81dc-33e4fcf656ee"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ID": "b1533ed2-d7cb-4c1b-8c36-7b5ff67c27d8"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ID": "d697972d-1bee-41d6-9eb8-fa626cfe167b"
|
|
},
|
|
{
|
|
"CommandList": [
|
|
{
|
|
"$type": "Forguncy.Model.ReturnCommand, ServerDesignerCommon",
|
|
"ErrorCode": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=code"
|
|
},
|
|
"Message": {
|
|
"$type": "Forguncy.Model.FormulaReferObject, ServerDesignerCommon",
|
|
"SerializeProperty": "=msg"
|
|
},
|
|
"CustomReturns": [
|
|
{
|
|
"ReturnPropertyName": "UnionId"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ID": "bc8268c4-6832-4239-b690-657de19635cb"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"ReturnProperties": [
|
|
{
|
|
"Name": "UnionId"
|
|
}
|
|
]
|
|
} |