opts: update path.

feihu wang
This commit is contained in:
feihu.wang 2021-01-30 13:33:32 +08:00
parent ae5e78e50e
commit 06406df998
2 changed files with 4 additions and 4 deletions

View File

@ -20,7 +20,7 @@
</parent>
<groupId>com.pgmmers</groupId>
<artifactId>radar</artifactId>
<version>1.0.6-SNAPSHOT</version>
<version>1.0.7-SNAPSHOT</version>
<name>radar</name>
<description>Demo project for Spring Boot</description>
<packaging>pom</packaging>

View File

@ -55,7 +55,7 @@ public class SysLoginApiController {
@Autowired
private CacheService cacheService;
@PostMapping("/merchant/login")
@PostMapping("/user/login")
public CommonResult login(String loginName, String passwd, String captcha) {
CommonResult ret = new CommonResult();
ret.setSuccess(false);
@ -94,7 +94,7 @@ public class SysLoginApiController {
return ret;
}
@GetMapping("/merchant/logout")
@GetMapping("/user/logout")
public CommonResult logout(HttpServletRequest request) {
CommonResult ret = new CommonResult();
String accessToken = contextHolder.getAttributeByType("x-auth-token", String.class);
@ -109,7 +109,7 @@ public class SysLoginApiController {
* @return
* @author xushuai
*/
@PostMapping("/merchant/regist")
@PostMapping("/user/regist")
public CommonResult regist(String loginName, String passwd, String verifyPasswd, String captcha, String giteeAccount) {
CommonResult result = new CommonResult();