TASK: 语言;
This commit is contained in:
@@ -3,6 +3,7 @@ package com.ai.da.controller;
|
||||
import com.ai.da.common.response.Response;
|
||||
import com.ai.da.common.security.jwt.JWTTokenHelper;
|
||||
import com.ai.da.model.dto.*;
|
||||
import com.ai.da.model.enums.Language;
|
||||
import com.ai.da.model.vo.AccountLoginVO;
|
||||
import com.ai.da.model.vo.AccountPreLoginVO;
|
||||
import com.ai.da.service.AccountService;
|
||||
@@ -67,4 +68,10 @@ public class AccountController {
|
||||
return Response.success(accountService.isLogin(accountLogoutDTO));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取当前用户语言")
|
||||
@PostMapping("/getUserLanguage")
|
||||
public Response<String> getUserLanguage() {
|
||||
return Response.success(accountService.getUserLanguage());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user