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> </parent>
<groupId>com.pgmmers</groupId> <groupId>com.pgmmers</groupId>
<artifactId>radar</artifactId> <artifactId>radar</artifactId>
<version>1.0.6-SNAPSHOT</version> <version>1.0.7-SNAPSHOT</version>
<name>radar</name> <name>radar</name>
<description>Demo project for Spring Boot</description> <description>Demo project for Spring Boot</description>
<packaging>pom</packaging> <packaging>pom</packaging>

View File

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