doum
2 天以前 fe29cab3d9bf8ddfeb1bc93a25a79c20276d8171
server/system_gateway/src/main/java/com/doumee/api/gateway/JwtAuthController.java
@@ -1,5 +1,6 @@
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;
@@ -8,6 +9,7 @@
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;
@@ -44,6 +46,8 @@
    private SystemLoginService systemLoginService;
    @Autowired
    private CaptchaService captchaService;
    @Autowired
    private SystemDictDataBiz systemDictDataBiz;
    /**
     * @author Eva.Caesar Liu
@@ -56,6 +60,16 @@
    }
    @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