Commit 80d3da8a authored by tangf's avatar tangf

新增公司消息

parent 4d41f61f
...@@ -6,6 +6,7 @@ import com.pangding.web.vo.system.res.company.CompanyCodeResVo; ...@@ -6,6 +6,7 @@ import com.pangding.web.vo.system.res.company.CompanyCodeResVo;
import com.yanzuoguang.util.helper.CheckerHelper; import com.yanzuoguang.util.helper.CheckerHelper;
import com.yanzuoguang.util.vo.ResponseResult; import com.yanzuoguang.util.vo.ResponseResult;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType; import org.springframework.http.MediaType;
...@@ -47,5 +48,12 @@ public class CompanyCodeController { ...@@ -47,5 +48,12 @@ public class CompanyCodeController {
return null; return null;
} }
@RequestMapping(value = "/saveCompanyCode")
@ApiModelProperty(value = "保存商户二维码",notes = "返回保存二维码结果")
public ResponseResult saveCompanyCode(@RequestBody CompanyCodeReqVo req){
return null;
}
} }
...@@ -18,13 +18,13 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -18,13 +18,13 @@ import org.springframework.web.bind.annotation.RestController;
@RestController @RestController
@RequestMapping(value = "/companyMsg", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) @RequestMapping(value = "/companyMsg", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
@Api(value = "公司消息类", description = "公司消息等相关操作") @Api(value = "公司消息类", description = "公司消息等相关操作")
public class CompanyMagController { public class CompanyMsgController {
@Autowired @Autowired
private CompanyMsgService companyMsgService; private CompanyMsgService companyMsgService;
@RequestMapping(value = "/getListAgreement") @RequestMapping(value = "/getCompanyMsgList")
@ApiOperation(value = "获取公司消息列表", notes = "返回公司消息列表") @ApiOperation(value = "获取公司消息列表", notes = "返回公司消息列表")
public ResponseResult<PageSizeData<CompanyMsgResVo>> getCompanyMsgList(@RequestBody CompanyMsgReqVo req) { public ResponseResult<PageSizeData<CompanyMsgResVo>> getCompanyMsgList(@RequestBody CompanyMsgReqVo req) {
CheckerHelper.newInstance() CheckerHelper.newInstance()
......
...@@ -352,9 +352,9 @@ public class UserServiceImpl implements UserService { ...@@ -352,9 +352,9 @@ public class UserServiceImpl implements UserService {
} }
// 验证邀请码是否正确 // 验证邀请码是否正确
CompanyReqVo companyReqVo = new CompanyReqVo(); CompanyExtendReqVo companyReqVo = new CompanyExtendReqVo();
companyReqVo.setInvitationCode(saveUserReqVo.getInvitationCode()); companyReqVo.setInvitationCode(saveUserReqVo.getInvitationCode());
CompanyResVo companyResVo = companyDao.load(companyReqVo, CompanyResVo.class); CompanyExtendReqVo companyResVo = companyDao.load(companyReqVo, CompanyExtendReqVo.class);
if (StringHelper.isEmpty(companyResVo)) { if (StringHelper.isEmpty(companyResVo)) {
// 邀请码不正确 // 邀请码不正确
return ResponseResult.error("99", "邀请码错误"); return ResponseResult.error("99", "邀请码错误");
......
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