https://cic_irc.yuque.com/tyl581/ggwv9w/ie2k9qo05n1mhy6r
接口列表
1.根据账户id获取用户详细
URL: services.queryAccountDetai
Type: POST
Content-Type: application/json; charset=utf-8
Description: com.aliyun.fsi.insurance.sso.support.api.AccountFrontFacade#queryAccountDetail(com.aliyun.fsi.insurance.sso.support.dto.AccountIdQry)
请求参数:
| Parameter | Type | Description | Required | Since |
| accId | string | 账户id | true | - |
请求示例:
import { services } from '@cic/mp-support';
services.queryAccountDetai({ accId: '123455' })
返回参数说明:
| Field | Type | Description | Since |
| accId | string | 账户Id | - |
| accountName | string | 登录名称 | - |
| externalId | string | 外部id | - |
| displayName | string | 显示名称 | - |
| accountRole | string | 账户角色(1:普通用户,2:超级管理员) | - |
| accountType | string | 账户类型(0:内部账户,1:外部账户) | - |
| phoneNo | string | 手机号 | - |
| string | 邮箱 | - | |
| accountStartDt | string | 账户有效期-起期 | - |
| accountEndDt | string | 账户有效期-止期 | - |
| faceId | string | 人脸识别图片fileid | - |
| avatarId | string | 账户图片fileid | - |
| branchOrgCode | string | 归属组织编码 | - |
| branchOrgName | string | 归属组织名称 | - |
| operatingOrgCode | string | 所属经营组织编码 | - |
| operatingOrgName | string | 所属经营组织编码 | - |
| externalSource | string | 外部id所属来源(应用名) | - |
| externalHead | string | 外部负责人 | - |
| isValid | boolean | 是否有效 | - |
| beforePhoneNo | string | 之前使用的手机号 | - |
| beforeEmail | string | 之前使用的邮箱 | - |
| gmtModified | string | 修改时间 | - |
| twoFactor | boolean | 二次认证状态(true:开启,false:关闭) | - |
返回参数示例:
{
"accId": "170",
"accountName": "nora.towne",
"externalId": "170",
"displayName": "nora.towne",
"accountRole": "tjzhgl",
"accountType": "vvuvlj",
"phoneNo": "0cck4w",
"email": "rayford.corwin@yahoo.com",
"accountStartDt": "4argbh",
"accountEndDt": "b7vybw",
"faceId": "170",
"avatarId": "170",
"branchOrgCode": "92032",
"branchOrgName": "nora.towne",
"operatingOrgCode": "92032",
"operatingOrgName": "nora.towne",
"externalSource": "156fl1",
"externalHead": "pukvac",
"isValid": true,
"beforePhoneNo": "r5ad5t",
"beforeEmail": "rayford.corwin@yahoo.com",
"gmtModified": "2023-12-22 14:40:22",
"twoFactor": true
}
2.根据账户名(左匹配)或者id模糊或者机构(返回机构子机构账户)查询(分页,最多返回100条)
URL: services.queryAccountListByKeyword
Type: POST
Content-Type: application/json; charset=utf-8
Description: com.aliyun.fsi.insurance.sso.support.api.AccountFrontFacade#accountListByKeyword(com.aliyun.fsi.insurance.sso.support.dto.KeywordQry)
请求参数:
| Parameter | Type | Description | Required | Since |
| pageSize | int32 | 每页展示条数(最大100条) | true | - |
| pageIndex | int32 | 当前页码 | true | - |
| keyword | string | 模糊查询关键字 账号名 用户名 | false | - |
| accountType | string | 账户类型(0:内部账户,1:外部账户) | false | - |
| isValid | boolean | 在职状态(true:在职,false:离职) | false | - |
| branchOrgCodes | sting[] | 归属组织编码集合 | false | - |
请求示例:
import { services } from '@cic/mp-support';
services.queryAccountListByKeyword({
pageSize: 10,
pageIndex: 1,
keyword: "dchmwq",
accountType: "0",
isValid: true,
branchOrgCodes: ["o27s4v" ]
})
返回参数说明:
| Field | Type | Description | Since |
| data | array | No comments found. | - |
| └─accId | string | 账户Id | - |
| └─accountName | string | 登录名称 | - |
| └─externalId | string | 外部id | - |
| └─displayName | string | 显示名称 | - |
| └─accountRole | string | 账户角色(1:普通用户,2:超级管理员) | - |
| └─accountType | string | 账户类型(0:内部账户,1:外部账户) | - |
| └─phoneNo | string | 手机号 | - |
| string | 邮箱 | - | |
| └─accountStartDt | string | 账户有效期-起期 | - |
| └─accountEndDt | string | 账户有效期-止期 | - |
| └─faceId | string | 人脸识别图片fileid | - |
| └─avatarId | string | 账户图片fileid | - |
| └─branchOrgCode | string | 归属组织编码 | - |
| └─branchOrgName | string | 归属组织名称 | - |
| └─operatingOrgCode | string | 所属经营组织编码 | - |
| └─operatingOrgName | string | 所属经营组织编码 | - |
| └─externalSource | string | 外部id所属来源(应用名) | - |
| └─externalHead | string | 外部负责人 | - |
| └─isValid | boolean | 是否有效 | - |
| └─beforePhoneNo | string | 之前使用的手机号 | - |
| └─beforeEmail | string | 之前使用的邮箱 | - |
| └─gmtModified | string | 修改时间 | - |
| └─twoFactor | boolean | 二次认证状态(true:开启,false:关闭) | - |
| pageIndex | int32 | No comments found. | - |
| totalCount | int32 | No comments found. | - |
| pageSize | int32 | No comments found. | - |
| message | object | No comments found. | - |
| └─code | string | No comments found. | - |
| └─message | string | No comments found. | - |
| └─errorContext | object | No comments found. | - |
| └─errorStack | array | No comments found. | - |
| └─thirdPartyError | string | No comments found. | - |
| └─errorVariableMap | map | No comments found. | - |
| └─any object | object | any object. | - |
| status | int32 | No comments found. | - |
| needRetry | boolean | No comments found. | - |
| extendInfo | map | No comments found. | - |
| └─any object | object | any object. | - |
返回参数示例:
{
"data": [
{
"accId": "170",
"accountName": "nora.towne",
"externalId": "170",
"displayName": "nora.towne",
"accountRole": "ndeymc",
"accountType": "q9f1ss",
"phoneNo": "0jme82",
"email": "rayford.corwin@yahoo.com",
"accountStartDt": "kyq0zl",
"accountEndDt": "8rm8i9",
"faceId": "170",
"avatarId": "170",
"branchOrgCode": "92032",
"branchOrgName": "nora.towne",
"operatingOrgCode": "92032",
"operatingOrgName": "nora.towne",
"externalSource": "6e9ytr",
"externalHead": "pnu0vk",
"isValid": true,
"beforePhoneNo": "vazz7o",
"beforeEmail": "rayford.corwin@yahoo.com",
"gmtModified": "2023-12-22 14:40:22",
"twoFactor": true
}
],
"pageIndex": 1,
"totalCount": 176,
"pageSize": 10,
"message": {
"code": "92032",
"message": "success",
"errorContext": {
"errorStack": [
{
"object": "any object"
}
],
"thirdPartyError": "1u9om0",
"errorVariableMap": {
"mapKey": {}
}
}
},
"status": 201,
"needRetry": true,
"extendInfo": {
"mapKey": {}
}
}
3.根据账户id集合、账号类型、在职离职状态查找用户详细信息列表
URL: services.queryAccountListByAccountIds
Type: POST
Content-Type: application/json; charset=utf-8
Description: com.aliyun.fsi.insurance.sso.support.api.AccountFrontFacade#accountListByAccountIds(com.aliyun.fsi.insurance.sso.support.dto.AccountIdsQry)
请求参数:
| Parameter | Type | Description | Required | Since |
| accIds | sting[] | 账户id集合(最多100条) | true | - |
请求示例:
import { services } from '@cic/mp-support';
services.queryAccountListByAccountIds({accIds: ["ldoswc"]})
返回参数说明:
| Field | Type | Description | Since |
| accId | string | 账户Id | - |
| accountName | string | 登录名称 | - |
| externalId | string | 外部id | - |
| displayName | string | 显示名称 | - |
| accountRole | string | 账户角色(1:普通用户,2:超级管理员) | - |
| accountType | string | 账户类型(0:内部账户,1:外部账户) | - |
| phoneNo | string | 手机号 | - |
| string | 邮箱 | - | |
| accountStartDt | string | 账户有效期-起期 | - |
| accountEndDt | string | 账户有效期-止期 | - |
| faceId | string | 人脸识别图片fileid | - |
| avatarId | string | 账户图片fileid | - |
| branchOrgCode | string | 归属组织编码 | - |
| branchOrgName | string | 归属组织名称 | - |
| operatingOrgCode | string | 所属经营组织编码 | - |
| operatingOrgName | string | 所属经营组织编码 | - |
| externalSource | string | 外部id所属来源(应用名) | - |
| externalHead | string | 外部负责人 | - |
| isValid | boolean | 是否有效 | - |
| beforePhoneNo | string | 之前使用的手机号 | - |
| beforeEmail | string | 之前使用的邮箱 | - |
| gmtModified | string | 修改时间 | - |
| twoFactor | boolean | 二次认证状态(true:开启,false:关闭) | - |
返回参数示例:
[
{
"accId": "170",
"accountName": "nora.towne",
"externalId": "170",
"displayName": "nora.towne",
"accountRole": "ugilun",
"accountType": "40nbnc",
"phoneNo": "0yyrr8",
"email": "rayford.corwin@yahoo.com",
"accountStartDt": "h33oti",
"accountEndDt": "u52z99",
"faceId": "170",
"avatarId": "170",
"branchOrgCode": "92032",
"branchOrgName": "nora.towne",
"operatingOrgCode": "92032",
"operatingOrgName": "nora.towne",
"externalSource": "q4m9jt",
"externalHead": "pkgbfe",
"isValid": true,
"beforePhoneNo": "oevyd0",
"beforeEmail": "rayford.corwin@yahoo.com",
"gmtModified": "2023-12-22 14:40:22",
"twoFactor": true
}
]
4.获取登陆成功后用户的信息
URL: services.queryCurrentUser
Type: POST
Content-Type: application/json; charset=utf-8
Description: com.aliyun.fsi.insurance.sso.support.api.AccountFrontFacade#getLoginInfo()
请求示例:
import { services } from '@cic/mp-support';
services.queryCurrentUser()
/**
* 建议在组件内使用,应用内使用useModel('@@initialState')方式
*/
useCurrentUser()
返回参数说明:
| Field | Type | Description | Since |
| accountId | string | 账户id | - |
| accountName | string | 账户名称 | - |
| accAttr | string | 账户属性 | - |
| fileId | string | 账户头像id | - |
| personnelCode | string | 所属人员工号 | - |
| personnelName | string | 所属人员名称 | - |
| branchOrgName | string | 分支机构名称 | - |
| branchOrgCode | string | 分支机构代码 | - |
| operatingOrgName | string | 所属的经营组织名称 | - |
| operatingOrgCode | string | 所属的经营组织编码 | - |
返回参数示例:
{
"accountId": "170",
"accountName": "nora.towne",
"accAttr": "5cqbh7",
"fileId": "170",
"personnelCode": "92032",
"personnelName": "nora.towne",
"branchOrgName": "nora.towne",
"branchOrgCode": "92032",
"operatingOrgName": "nora.towne",
"operatingOrgCode": "92032"
}