forked from gzzfw/backEnd/gz-dyh

huangh
2024-10-29 c1a463b9f1c0a7160dbd0ac1c7490eef13861a5e
dyh-service/dyh-cust/src/main/java/cn/huge/module/pauser/controller/wechat/PaUserWechatController.java
@@ -2,6 +2,7 @@
import cn.huge.base.common.utils.ReturnFailUtils;
import cn.huge.base.common.utils.ReturnSucUtils;
import cn.huge.module.mediate.dto.WechatBindCaseDTO;
import cn.huge.base.config.CurrentUser;
import cn.huge.module.pauser.domain.po.PaUser;
import cn.huge.module.pauser.service.PaUserService;
@@ -237,7 +238,7 @@
    /**
     * 当事人小程序-实名认证
     * url: {ctx}/api/weChat/paUser/realAuth
     * url: {ctx}/api/wechat/paUser/realAuth
     * type: post
     */
    @PostMapping(value = "/realAuth")
@@ -257,4 +258,19 @@
        }
    }
    /**
     * pc端提交案件后-获取相关当事人用户编号
     * @url {ctx}/api/weChat/paUser/bindGetUserId
     * @param wechatBindCaseDTO 实体对象
     * @return Object
     */
    @PostMapping("/bindGetUserId")
    public Object bindGetUserId(@RequestBody WechatBindCaseDTO wechatBindCaseDTO) {
        try {
            return ReturnSucUtils.getRepInfo(service.bindGetUserId(wechatBindCaseDTO));
        } catch (Exception e) {
            log.error("Controller接口[WeChatPaUserController.bindGetUserId]请求异常:"+e, e);
            return ReturnFailUtils.getRepInfo();
        }
    }
}