|
|
|
@ -22,6 +22,8 @@ import com.glxp.api.res.PageSimpleResponse;
|
|
|
|
|
import com.glxp.api.res.auth.registComPerResponse;
|
|
|
|
|
import com.glxp.api.service.purchase.IEmailService;
|
|
|
|
|
import com.glxp.api.service.sup.*;
|
|
|
|
|
import com.glxp.api.service.trace.RabbitPushService;
|
|
|
|
|
import com.glxp.api.service.trace.RabbitQueueService;
|
|
|
|
|
import com.glxp.api.util.UuidUtils;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
@ -71,13 +73,13 @@ public class UserRegisterController extends BaseController {
|
|
|
|
|
@Resource
|
|
|
|
|
private IEmailService iEmailService;
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "获取校验码",response = loginmobileRequest.class)
|
|
|
|
|
@ApiOperation(value = "获取校验码", response = loginmobileRequest.class)
|
|
|
|
|
@PostMapping("/admin/auth/register/getCheckcode")
|
|
|
|
|
public BaseResponse getCheckcode(@RequestBody loginmobileRequest params, HttpSession httpSession) {
|
|
|
|
|
return CaptchaUtils.getCheckcode(params, httpSession);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "校验码",response = loginmobileRequest.class)
|
|
|
|
|
@ApiOperation(value = "校验码", response = loginmobileRequest.class)
|
|
|
|
|
@PostMapping("/admin/auth/register/checkCode")
|
|
|
|
|
public BaseResponse checkCode(@RequestBody loginmobileRequest params) {
|
|
|
|
|
return CaptchaUtils.checkCode(params);
|
|
|
|
@ -88,7 +90,7 @@ public class UserRegisterController extends BaseController {
|
|
|
|
|
*
|
|
|
|
|
* @param mobile 手机号
|
|
|
|
|
*/
|
|
|
|
|
@ApiOperation(value = "根据手机号获取注册信息",response = BaseResponse.class)
|
|
|
|
|
@ApiOperation(value = "根据手机号获取注册信息", response = BaseResponse.class)
|
|
|
|
|
@GetMapping("/admin/auth/register/get/{mobile}")
|
|
|
|
|
public BaseResponse getInfo(@PathVariable String mobile) {
|
|
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
|
@ -110,7 +112,7 @@ public class UserRegisterController extends BaseController {
|
|
|
|
|
return ResultVOUtils.success(map);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "保存注册人信息",response = BaseResponse.class)
|
|
|
|
|
@ApiOperation(value = "保存注册人信息", response = BaseResponse.class)
|
|
|
|
|
@PostMapping("/admin/auth/register/save")
|
|
|
|
|
public BaseResponse saveRegister(@RequestBody @Valid UserRegisterEntity userRegisterEntity, HttpSession httpSession,
|
|
|
|
|
BindingResult bindingResult) {
|
|
|
|
@ -145,7 +147,7 @@ public class UserRegisterController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//第一次完善信息 插入默认数据
|
|
|
|
|
@ApiOperation(value = "第一次完善信息 插入默认数据",response = BaseResponse.class)
|
|
|
|
|
@ApiOperation(value = "第一次完善信息 插入默认数据", response = BaseResponse.class)
|
|
|
|
|
@GetMapping("/admin/auth/register/insertInitial")
|
|
|
|
|
public BaseResponse insertInitial(String mobile) {
|
|
|
|
|
Map<Object, Object> map = new HashMap<>();
|
|
|
|
@ -194,7 +196,7 @@ public class UserRegisterController extends BaseController {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "保存所有信息",response = BaseResponse.class)
|
|
|
|
|
@ApiOperation(value = "保存所有信息", response = BaseResponse.class)
|
|
|
|
|
@PostMapping("/admin/auth/register/saveAllInfo")
|
|
|
|
|
public BaseResponse saveAllInfo(@RequestBody registComPerResponse registComPerResponse) {
|
|
|
|
|
|
|
|
|
@ -225,7 +227,7 @@ public class UserRegisterController extends BaseController {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "查询注册人列表",response = registComPerResponse.class)
|
|
|
|
|
@ApiOperation(value = "查询注册人列表", response = registComPerResponse.class)
|
|
|
|
|
@PostMapping("/admin/auth/register/list")
|
|
|
|
|
public BaseResponse selectReslist(@RequestBody UserRegisterFilterRequest userRegisterFilterRequest, BindingResult bindingResult) {
|
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
@ -243,8 +245,10 @@ public class UserRegisterController extends BaseController {
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
UserCompanyConfigService userCompanyConfigService;
|
|
|
|
|
@Resource
|
|
|
|
|
RabbitQueueService rabbitQueueService;
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "无证明注册",response = BaseResponse.class)
|
|
|
|
|
@ApiOperation(value = "无证明注册", response = BaseResponse.class)
|
|
|
|
|
@PostMapping("/admin/auth/register/NotApproved")
|
|
|
|
|
public BaseResponse NotApproved(@RequestBody registComPerResponse registComPerResponse, BindingResult bindingResult) {
|
|
|
|
|
if (bindingResult.hasErrors()) {
|
|
|
|
@ -307,8 +311,8 @@ public class UserRegisterController extends BaseController {
|
|
|
|
|
userCompanyEntity.setId(Long.valueOf(registComPerResponse.getUcId()));
|
|
|
|
|
userCompanyEntity.setCheckStatus(registComPerResponse.getCheckStatus());
|
|
|
|
|
userCompanyEntity.setReason(registComPerResponse.getReason());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String queueName = "fanout_" + userCompanyEntity.getId() + "";
|
|
|
|
|
rabbitQueueService.createQueue(queueName);
|
|
|
|
|
userRegisterService.updateById(userRegisterEntity);
|
|
|
|
|
userCompanyService.updateById(userCompanyEntity);
|
|
|
|
|
userCheckService.insert(userCheckEntity);
|
|
|
|
@ -317,7 +321,7 @@ public class UserRegisterController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//对手机 验证码进行加密/解密
|
|
|
|
|
@ApiOperation(value = "对手机 验证码进行加密/解密",response = MobileCaptchaRequest.class)
|
|
|
|
|
@ApiOperation(value = "对手机 验证码进行加密/解密", response = MobileCaptchaRequest.class)
|
|
|
|
|
@PostMapping("/admin/auth/register/encrypt")
|
|
|
|
|
public BaseResponse encrypt(@RequestBody MobileCaptchaRequest mobileCaptchaRequest) {
|
|
|
|
|
if (mobileCaptchaRequest == null) {
|
|
|
|
|