|
|
|
|
package com.ynxbd.common.action;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.ynxbd.common.action.base.BaseAction;
|
|
|
|
|
import com.ynxbd.common.result.Result;
|
|
|
|
|
import com.ynxbd.common.service.HCodeService;
|
|
|
|
|
import com.ynxbd.wx.config.WeChatConfig;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.apache.struts2.convention.annotation.Action;
|
|
|
|
|
import org.apache.struts2.convention.annotation.Namespace;
|
|
|
|
|
|
|
|
|
|
@Slf4j
|
|
|
|
|
@Namespace("/hc")
|
|
|
|
|
public class HealthCardAction extends BaseAction {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* [电子健康卡]绑卡验证授权
|
|
|
|
|
*/
|
|
|
|
|
@Action("registerHealthCardPreAuth")
|
|
|
|
|
public Result registerHealthCardPreAuth(Boolean isMiniApp, String wechatCode, String healthCode, String openId) {
|
|
|
|
|
log.info("[电子健康卡]绑卡验证授权 isMiniApp={}, wechatCode={}, healthCode={}, openId={}", isMiniApp, wechatCode, healthCode, openId);
|
|
|
|
|
JSONObject result = HCodeService.registerHealthCardPreAuth(isMiniApp, false, wechatCode, healthCode, openId);
|
|
|
|
|
return Result.success(result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|