pull/1121/head
梁宇奇 2025-06-05 17:18:33 +08:00
parent 4cc903cba0
commit a4820c9eec
2 changed files with 13 additions and 2 deletions

View File

@ -45,7 +45,7 @@ public class SysRegisterController extends BaseController {
return ajax;
}
@ApiOperation(value = "卖家注册")
@ApiOperation(value = "电商卖家注册")
@PostMapping("/registerSeller")
public AjaxResult registerSeller(@Validated @RequestBody RegisterBySmsCodeVO vo) {
AjaxResult ajax = AjaxResult.success();
@ -55,6 +55,16 @@ public class SysRegisterController extends BaseController {
return ajax;
}
@ApiOperation(value = "代发专员注册")
@PostMapping("/registerAgent")
public AjaxResult registerAgent(@Validated @RequestBody RegisterBySmsCodeVO vo) {
AjaxResult ajax = AjaxResult.success();
String token = registerService.registerByPhoneNumber(vo.getPhoneNumber(), vo.getPassword(), vo.getCode(),
ESystemRole.AGENT);
ajax.put(Constants.TOKEN, token);
return ajax;
}
@ApiOperation(value = "发送登录短信验证码")
@PostMapping("/sendSmsVerificationCode")
public R sendSmsVerificationCode(@Validated @RequestBody LoginSmsReqVO vo) {

View File

@ -15,7 +15,8 @@ public enum ESystemRole {
SUPER_ADMIN(1, "超级管理员", 1L),
GENERAL_ADMIN(2, "普通管理员", 2L),
SUPPLIER(3, "档口供应商", 3L),
SELLER(4, "电商卖家", 4L);
SELLER(4, "电商卖家", 4L),
AGENT(5, "代发专员", 5L);
private final Integer value;
private final String label;