|
@@ -9,6 +9,7 @@ import com.diagbot.dto.RespDTO;
|
|
|
import com.diagbot.dto.UserLoginDTO;
|
|
|
import com.diagbot.dto.UserOrgDTO;
|
|
|
import com.diagbot.entity.Permission;
|
|
|
+import com.diagbot.entity.Token;
|
|
|
import com.diagbot.entity.User;
|
|
|
import com.diagbot.facade.PermissionFacade;
|
|
|
import com.diagbot.facade.TokenFacade;
|
|
@@ -81,8 +82,8 @@ public class UserController {
|
|
|
@PostMapping("/verifyToken")
|
|
|
@SysLogger("verifyToken")
|
|
|
@ApiIgnore
|
|
|
- public RespDTO<Boolean> verifyToken(@RequestBody String token) {
|
|
|
- Boolean data = tokenFacade.verifyToken(token);
|
|
|
+ public RespDTO<Boolean> verifyToken(@RequestBody Token token) {
|
|
|
+ Boolean data = tokenFacade.verifyToken(token.getToken());
|
|
|
return RespDTO.onSuc(data);
|
|
|
}
|
|
|
|