|
@@ -30,6 +30,7 @@ import com.qmth.themis.common.util.ResultUtil;
|
|
|
import io.swagger.annotations.*;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.dao.DuplicateKeyException;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
@@ -81,6 +82,9 @@ public class TBUserController {
|
|
|
@Resource
|
|
|
TBSessionService tbSessionService;
|
|
|
|
|
|
+ @Value(value = "${app.version}")
|
|
|
+ private String version;
|
|
|
+
|
|
|
@ApiOperation(value = "用户登录接口")
|
|
|
@RequestMapping(value = "/login/account", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "用户信息", response = TBUser.class)})
|
|
@@ -222,6 +226,7 @@ public class TBUserController {
|
|
|
map.put(SystemConstant.ACCOUNT, user);
|
|
|
map.put(SystemConstant.SESSION_ID, sessionId);
|
|
|
map.put("roleCodes", authDto.getRoleCodes());
|
|
|
+ map.put(SystemConstant.VERSION, version);
|
|
|
if (Objects.nonNull(authDto.getTbOrg())) {
|
|
|
Map orgMap = new HashMap();
|
|
|
orgMap.put(SystemConstant.NAME, authDto.getTbOrg().getName());
|