|
@@ -11,6 +11,7 @@ import com.diagbot.dto.UserOrgDTO;
|
|
|
import com.diagbot.entity.Permission;
|
|
|
import com.diagbot.entity.User;
|
|
|
import com.diagbot.facade.PermissionFacade;
|
|
|
+import com.diagbot.facade.TokenFacade;
|
|
|
import com.diagbot.facade.UserFacade;
|
|
|
import com.diagbot.vo.AppkeySecretVO;
|
|
|
import com.diagbot.vo.BaseIdVO;
|
|
@@ -52,6 +53,8 @@ public class UserController {
|
|
|
@Autowired
|
|
|
private UserFacade userFacade;
|
|
|
@Autowired
|
|
|
+ private TokenFacade tokenFacade;
|
|
|
+ @Autowired
|
|
|
private PermissionFacade permissionFacade;
|
|
|
|
|
|
|
|
@@ -72,6 +75,19 @@ public class UserController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
+ @ApiOperation(value = "验证token有效性[by:zhoutg]",
|
|
|
+ notes = "token:token信息,必填<br>")
|
|
|
+ @PostMapping("/verifyToken")
|
|
|
+ @SysLogger("verifyToken")
|
|
|
+ @ApiIgnore
|
|
|
+ public RespDTO<Boolean> verifyToken(@RequestBody String token) {
|
|
|
+ Boolean data = tokenFacade.verifyToken(token);
|
|
|
+ return RespDTO.onSuc(data);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
@ApiOperation(value = "校验用户(手机号)已注册[by:zhoutg]",
|
|
|
notes = "username:用户名(手机号),必填<br>")
|
|
|
@PostMapping("/verifyExistUsername")
|