Commit a9f77f15 authored by zjy's avatar zjy

user/role/tright 7.12

parent 5f0930ba
...@@ -248,16 +248,4 @@ public class CompanyManagementController { ...@@ -248,16 +248,4 @@ public class CompanyManagementController {
return ResponseResult.result(companyServiceImpl.invitation(reqVo)); return ResponseResult.result(companyServiceImpl.invitation(reqVo));
} }
/**
* 检查邀请码是否真实存在
* @param reqVo
* @return
*/
@PostMapping(value = "/checkInvitationCode",produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseResult<CompanyVo> checkInvitationCode(@RequestBody CheckInvitationCodeReqVo reqVo){
CheckerHelper.newInstance()
.notBlankCheck("invitationCode",reqVo.getInvitationCode())
.checkException();
return ResponseResult.result(companyServiceImpl.checkInvitationCode(reqVo));
}
} }
package com.pangding.web.authority.controller; package com.pangding.web.authority.controller;
import com.pangding.web.authority.service.CompanyService;
import com.pangding.web.authority.vo.reqvo.*; import com.pangding.web.authority.vo.reqvo.*;
import com.pangding.web.authority.service.RegisterService; import com.pangding.web.authority.service.RegisterService;
import com.pangding.web.authority.service.UserService; import com.pangding.web.authority.service.UserService;
...@@ -10,10 +11,7 @@ import com.yanzuoguang.util.helper.FileHelper; ...@@ -10,10 +11,7 @@ import com.yanzuoguang.util.helper.FileHelper;
import com.yanzuoguang.util.vo.ResponseResult; import com.yanzuoguang.util.vo.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.commons.CommonsMultipartFile; import org.springframework.web.multipart.commons.CommonsMultipartFile;
import java.io.IOException; import java.io.IOException;
...@@ -30,6 +28,8 @@ public class ComputerRegisterController { ...@@ -30,6 +28,8 @@ public class ComputerRegisterController {
RegisterService registerServiceImpl; RegisterService registerServiceImpl;
@Autowired @Autowired
UserService userServiceImpl; UserService userServiceImpl;
@Autowired
private CompanyService companyServiceImpl;
/** /**
* 验证注册第一页数据的合法性并保存在pd_user表中 * 验证注册第一页数据的合法性并保存在pd_user表中
...@@ -148,4 +148,18 @@ public class ComputerRegisterController { ...@@ -148,4 +148,18 @@ public class ComputerRegisterController {
public ResponseResult<String> fileUpload(@RequestBody CommonsMultipartFile file) throws IOException { public ResponseResult<String> fileUpload(@RequestBody CommonsMultipartFile file) throws IOException {
return ResponseResult.result(registerServiceImpl.fileUpload(file)); return ResponseResult.result(registerServiceImpl.fileUpload(file));
} }
/**
* 检查邀请码是否真实存在
* @param reqVo
* @return
*/
@PostMapping(value = "/checkInvitationCode",produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public ResponseResult<CompanyVo> checkInvitationCode(@RequestBody CheckInvitationCodeReqVo reqVo){
CheckerHelper.newInstance()
.notBlankCheck("invitationCode",reqVo.getInvitationCode())
.checkException();
return ResponseResult.result(companyServiceImpl.checkInvitationCode(reqVo));
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment