---
title: "1.1 小卡片（内部人员）返回内容拦截"
docId: "275809575645478912"
source: "https://weapp.eteams.cn/build/techdoc/wdoc/index.html#/public/repository/91f5067f-775e-48f4-93a2-ce84ca0b9c2e/doc/275809575645478912"
---
- 二开标识码
  
  ```string
  HRM_CARD_001
  ```
  
    - 入参说明（Map<String, Object>）
      
          - result 为返回内容（标准是业务bean，需要自行转map）
          - result内容说明，具体看（/api/bs/hrm/profile/getEmployeeCard）的返回内容，根据自己的业务拦截
    - 出参说明
      
          - WeaHookResponse.result中设置 result 的内容，即表示需要最后显示内容
    - 示例
      
      ```java
      @Override
          public WeaHookResponse handle(WeaHookRequest request, WeaHookResponse response, AppInfo appInfo) throws Exception {
              //入参，修改入参并不会影响到埋点的原始数据
              Map<String, Object> params = request.getParams();
      
              ObjectMapper objectMapper = new ObjectMapper() ;
              Map<String, Object> dataMap = objectMapper.convertValue(
                      params.get("result"), new TypeReference<Map<String, Object>>() {}
              );
              if(dataMap == null){
                  response.setResult(params);
                  return response ;
              }
              Map<String,Object> user = (Map<String,Object>) dataMap.get("user");
              if(user == null){
                  response.setResult(params);
                  return response ;
              }
              user.put("defaultposition","xxx") ;
              response.setResult(ImmutableMapUtil.of("result",dataMap));
              return response;
          }
      ```
