| | |
| | | package com.doumee.api.gateway; |
| | | |
| | | import com.doumee.biz.system.SystemDictDataBiz; |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.config.jwt.JwtProperties; |
| | | import com.doumee.config.jwt.JwtTokenUtil; |
| | |
| | | import com.doumee.core.exception.BusinessException; |
| | | import com.doumee.dao.system.dto.LoginCabinetDTO; |
| | | import com.doumee.dao.system.dto.LoginH5DTO; |
| | | import com.doumee.dao.system.vo.SystemConfigVo; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.doumee.service.business.third.model.LoginUserInfo; |
| | | import com.doumee.core.utils.Constants; |
| | |
| | | private SystemLoginService systemLoginService; |
| | | @Autowired |
| | | private CaptchaService captchaService; |
| | | @Autowired |
| | | private SystemDictDataBiz systemDictDataBiz; |
| | | |
| | | /** |
| | | * @author Eva.Caesar Liu |
| | |
| | | } |
| | | |
| | | @PreventRepeat(limit = 10, lockTime = 10000) |
| | | @ApiOperation("获取系统配置参数") |
| | | @GetMapping("/systemConfig") |
| | | @LoginNoRequired |
| | | public ApiResponse<SystemConfigVo> systemConfig ( ) { |
| | | SystemConfigVo configVo = new SystemConfigVo(); |
| | | configVo.setSubtitle(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.SYSTEM_SUBTITLE).getCode()); |
| | | configVo.setTitle(systemDictDataBiz.queryByCode(Constants.SYSTEM,Constants.SYSTEM_TITLE).getCode()); |
| | | return ApiResponse.success(configVo); |
| | | } |
| | | @PreventRepeat(limit = 10, lockTime = 10000) |
| | | @ApiOperation("登录") |
| | | @PostMapping("/login") |
| | | @LoginNoRequired |