臭名昭著aTrust隔离计划1.臭名昭著aTrust隔离计划2.VPN原理与aTrust隔离网络实践3.docker-easyconnect到底做了什么4.TUN(tunnel-隧道-虚拟网卡)模式
基于Quartz搭建的个人博客1.Quartz个人博客使用教程2.使用 rsync 增量部署 Quartz 博客3.使用 GitHub Actions 自动部署 Quartz 博客5.域名绑定6.CDN加速Obsidian、双向链接与知识图谱
旅行
行程攻略青岛三日游行程攻略
前端
NginxNginx配置与反向代理入门
Nodenpm与npx的区别
中华财险-公司项目
对外接口文档
基础数据码表对外接口(仅支持rpc调用)业务码表对外接口应用主数据对外接口
基础运营查询版本更新日志详情消息中心对外接口站内信对外接口站内信模板配置手册
权限中心权限中心对外接口文档(最新)权限中心对外接口文档前端ACL-CORE FACADE依赖版本
审计中心审计中心对外接口文档audit-center-facade版本
审批中心工作流迁审批流现状工作流迁审批流API能力替换方案老审批流接口文档审批中心接口文档审批中心业务回调FAQ
账号中心内部系统对接单点登录内部系统对接认证中心三方网页应用登录授权账号中心对外接口文档前端账号中心RPC接口文档账户变更对外广播消息文档账户中心对外接口HRMS外部员工变更广播消息文档HRMS外部员工对外接口
组织员工岗位🔥机构映射SDK接口文档员工岗位变更通知说明组织机构管营一体概念与用法组织员工对外广播消息文档组织员工岗位对外接口文档组织员工岗位对外接口文档前端组织员工岗位数据模型组织员工主数据业务场景案例organization-facade版本
hrms(大型人力资源外包管理系统)
项目架构说明HRMS Maven模块与依赖说明
项目说明0.流程中心模块0.组织模块说明1.业务线模块2.计划模块3.项目模块4.协议模块5.供应商模块6.合约域模块7.外包人员模块*核心:外包人员生命周期
项目运维外包人员项目编制差异排查与修复2.HRMS相关问题排查4.修改externalId(externalId和accountId不一致)
需求-系分
1.内部转外包0723外包人员关联历史内部账号系分新增外包人员关联历史账号内容(紧急0723上线)需求
2.工作岗位0820工作岗位0820需求工作岗位0820需求-系分
3.用工模式调整0917内部人员转外包用工系统需求2内部人员转外包用工系统需求-系分
sso(账号中心-单点登录)
项目架构说明aboss-sso项目架构入门AOP统一日志打印链路Maven多模块项目高级知识OAuth2.0
项目说明1.SSO-OAuth2.0与IDaaS登录流程2.外部账号创建流水号并发问题分析
AI
使用说明
第三方插件&技能简介Archify使用与安装指南Ponytail使用指南
CodexCodex CLI与IDE区别及使用指南Codex Hook单独配置与提交通知Codex MCP安装与使用指南Codex第三方插件安装与使用指南
Agent开发1.LLM、Token、上下文窗口与模型参数2.大模型 API、请求参数与响应结构3.Spring AI ChatClient4.Prompt、System Prompt、Prompt 模板6.结构化输出、JSON Schema7.SSE 流式响应8.会话 ID、聊天记录、Redis9.超时、重试、限流、降级10.完成可运行聊天接口
GitGit常用命令与Obsidian推送排查
Java
面试题Java基础与集合面试题
AtomicInteger原子计数与并发安全ConcurrentHashMap并发安全与计数Java线程、线程池与Future
python
基础Python基础语法
HTTPXHRMS员工详情接口调用(Python HTTPX)

https://cic_irc.yuque.com/tyl581/ggwv9w/nqxrpiuyh1d4ygyb

一、pom坐标

<dependency>
    <groupId>com.aliyun.fsi.insurance</groupId>
    <artifactId>basic-facade</artifactId>
    <version>1.1.10-SNAPSHOT</version>
</dependency>

二、接口列表

2.1.发送站内信消息-依赖消息模板

URL: /platform/api/aboss/basic/send-message-with-template

Type: POST

Author: cgp

Content-Type: application/json; charset=utf-8

Description: com.aliyun.fsi.insurance.basic.facade.MessageSendFacade#sendMessage(com.aliyun.fsi.insurance.basic.repository.dataobject.MessageSendRecordReqDTO)

Body-parameters:

ParameterTypeDescriptionRequiredSince
templateIdstring模板IDtrue-
paramContentmap消息参数集合false-
msgNostring消息流水号false-
urlstring消息跳转链接(没有值以模板配置url为准,有值就以传递的为准)false-
messageAudienceResponseDTOSarray接受人集合true-
└─accepterIdstring接受者idtrue-
└─accepterTypestring接受者类型(02-个人,05-机构,06-角色),不允许传递多个不同的接收者类型true-

Request-example:

curl -X GET -H 'Content-Type: application/json; charset=utf-8' -i /platform/api/aboss/basic/send-message-with-template --data '{
  "templateId": "22",
  "paramContent": {
    "mapKey": "dq2cc4"
  },
  "msgNo": "jr07k9",
  "url": "www.liana-sanford.info",
  "messageAudienceResponseDTOS": [
    {
      "accepterId": "22",
      "accepterType": "m8k8e2"
    }
  ]
}'

Response-example:

string

2.2.发送站内信消息-不依赖消息模板

URL: /platform/api/aboss/basic/send-message

Type: POST

Author: cgp

Content-Type: application/json; charset=utf-8

Description: com.aliyun.fsi.insurance.basic.facade.InternalMessageRpcFacade#sendMessage(com.aliyun.fsi.insurance.basic.data.cmd.SendInternalMessageCmd)

Body-parameters:

ParameterTypeDescriptionRequiredSince
appIdstring应用编码true-
requestNostring请求流水号true-
msgTypestring消息类型true-
msgTitlestring消息标题true-
msgBodystring消息内容true-
urlstring消息跳转链接false-
receiverIdsarray消息接受者集合true-

Request-example:

curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i /platform/api/aboss/basic/send-message --data '{
  "appId": "149",
  "requestNo": "99qttb",
  "msgType": "kpnomh",
  "msgTitle": "etu6pl",
  "msgBody": "amtk8u",
  "url": "www.candelaria-johnston.co",
  "receiverIds": [
    "8cde5o"
  ]
}'

Response-example:

string

2.3.根据参数分页查询站内信消息集合(最多返回100条记录)

URL: /platform/api/aboss/basic/query-msg-list

Type: POST

Author: cgp

Content-Type: application/json; charset=utf-8

Description: com.aliyun.fsi.insurance.basic.facade.InternalMessageRpcFacade#queryMsgList(com.aliyun.fsi.insurance.basic.data.InternalMessageQry)

Body-parameters:

ParameterTypeDescriptionRequiredSince
pageSizeint32每页展示条数true-
pageIndexint32当前页码true-
appIdstring应用编码false-
collectint8是否收藏(0-否,1-是)false-
readint8是否已读(0-否,1-是)false-
keywordstring搜索关键字false-
accIdstring账户idtrue-

Request-example:

curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i /platform/api/aboss/basic/query-msg-list --data '{
  "pageSize": 10,
  "pageIndex": 1,
  "appId": "149",
  "collect": 92,
  "read": 86,
  "keyword": "4gut3k",
  "accId": "149"
}'

Response-fields:

FieldTypeDescriptionSince
dataarray返回结果-
└─msgIdstring消息主键-
└─appIdstring应用编码-
└─appNamestring应用名称-
└─msgTypestring消息类型(TEXT-文本,LINK-链接)-
└─msgTitlestring消息标题-
└─msgBodystring消息内容-
└─urlstring消息跳转链接-
└─sendDatestring消息发送时间-
└─collectedint8是否收藏(0-否,1-是)-
└─readint8是否已读(0-否,1-是)-
pageIndexint32页码-
totalCountint32总数
-
pageSizeint32分页数-
statusint32状态-
messageobject消息-
└─codestring返回结果码-
└─messagestring返回结果信息-
└─errorContextobject返回错误明细-
└─errorStackarray错误堆栈集合-
└─versionstring结果码版本-
└─codeLevelstring结果码级别[第9位],INFO-1,WARN-3,ERROR-5,FATAL-7,参见ResultCodeLevel

定义
-
└─codeTypestring结果码类型[第10位],SUCCESS-0,BIZ_ERROR-1,SYS_ERROR-2,THIRD_ERROR-3,参见ResultCodeType

定义
-
└─systemCodestring系统编号[第11-13位],见SystemCode

定义
-
└─systemNamestring系统名称-
└─errorSpecificstring具体结果码[第14-17位]-
└─errorNamestring错误英文简称-
└─descriptionstring结果码信息描述,可空-
└─thirdPartyErrorstring第三方错误原始信息-
└─errorVariableMapmap错误变量映射-
needRetryboolean是否可以重试
false代表不能重试,true可选择重试,也可选择不再重试
-
extendInfomap扩展信息-

Response-example:

{
  "data": [
    {
      "msgId": "149",
      "appId": "149",
      "appName": "blair.kohler",
      "msgType": "zw7y9v",
      "msgTitle": "6jemq3",
      "msgBody": "uj1tf1",
      "url": "www.candelaria-johnston.co",
      "sendDate": "2023-10-18",
      "collected": 99,
      "read": 104
    }
  ],
  "pageIndex": 1,
  "totalCount": 774,
  "pageSize": 10,
  "status": 873,
  "message": {
    "code": "81552",
    "message": "success",
    "errorContext": {
      "errorStack": [
        {
          "version": "8.5.6",
          "codeLevel": "kvxm72",
          "codeType": "9kxzbk",
          "systemCode": "81552",
          "systemName": "blair.kohler",
          "errorSpecific": "tdr447",
          "errorName": "blair.kohler",
          "description": "5d59fd"
        }
      ],
      "thirdPartyError": "urw97m",
      "errorVariableMap": {
        "mapKey": "e6n1do"
      }
    }
  },
  "needRetry": true,
  "extendInfo": {
    "mapKey": "n567bx"
  }
}

2.4.根据(已读/收藏)统计站内信息,并按照归属域分组

URL: /platform/api/aboss/basic/query-msg-count-group-by-app

Type: POST

Author: cgp

Content-Type: application/json; charset=utf-8

Description: 根据(已读未读/收藏取消收藏)查询未读消息统计信息,并按照归属域分组

Body-parameters:

ParameterTypeDescriptionRequiredSince
collectint8是否收藏(0-否,1-是)false-
readint8是否已读(0-否,1-是)false-
accIdstring账户idtrue-

Request-example:

curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i /platform/api/aboss/basic/query-msg-count-group-by-app --data '{
  "collect": 42,
  "read": 49,
  "accId": "149"
}'

Response-fields:

FieldTypeDescriptionSince
appIdstring消息来源(应用id)-
appNamestring消息来源名称(应用名)-
undoneCountint32未读总数-
doneCountint32已读总数-

Response-example:

[
  {
    "appId": "149",
    "appName": "blair.kohler",
    "undoneCount": 754,
    "doneCount": 543
  }
]

2.5.批量标识已读站内信消息

URL: /platform/api/aboss/basic/read-msg

Type: POST

Author: cgp

Content-Type: application/x-www-form-urlencoded;charset=utf-8

Description: com.aliyun.fsi.insurance.basic.facade.InternalMessageRpcFacade#readMsg(com.aliyun.fsi.insurance.basic.data.cmd.ReadInternalMessageCmd)

Query-parameters:

ParameterTypeDescriptionRequiredSince
msgIdsarray站内信id集合true-
accIdstring账户idtrue-

Request-example:

curl -X POST -i /platform/api/aboss/basic/read-msg

Response-example:

true

2.6.收藏/取消收藏站内信消息

URL: /platform/api/aboss/basic/collect-msg

Type: POST

Author: cg

Content-Type: application/x-www-form-urlencoded;charset=utf-8

Description: com.aliyun.fsi.insurance.basic.facade.InternalMessageRpcFacade#collectMsg(com.aliyun.fsi.insurance.basic.data.cmd.CollectInternalMessageCmd)

Query-parameters:

ParameterTypeDescriptionRequiredSince
msgIdstring站内信idtrue-
collectint8是否收藏(0-否,1-是)true-
accIdstring账户idtrue-

Request-example:

curl -X POST -i /platform/api/aboss/basic/collect-msg --data 'collect=19&msgId=149'

Response-example:

true

2.7 通过appid 批量标识已读站内信消息

URL: /platform/api/aboss/basic/read-msg-by-appid

Type: POST

Author: zhanghua

Content-Type: application/json; charset=utf-8

Description: 通过appid 批量标识已读站内信消息

* @apiNote com.aliyun.fsi.insurance.basic.facade.InternalMessageRpcFacade#readMsgByAppId(com.aliyun.fsi.insurance.basic.data.cmd.readInternalMessageByAppIdCmd)

Body-parameters:

ParameterTypeDescriptionRequiredSince
appIdstring站内信id集合true-
accIdstring当前账户id(RPC接口必传)false-

Request-example:

curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i /platform/api/aboss/basic/read-msg-by-appid --data '{
  "appId": "99",
  "accId": "99"
}'

Response-example:

true

三、附录

2.2-2.6有权限控制,需填写如下申请单

访问方法请求来源备注
com.aliyun.fsi.insurance.sso.impl.AccountRpcFacadeImpl#accountListByKeywordaboss-ssorpc请求填写的是应用名
com.aliyun.fsi.insurance.sso.impl.AccountRpcFacadeImpl#accountListByKeyword/support/basicData/association/queryhttp请求填写的是referer