| | |
| | | package com.xcong.farmer.cms.modules.system.controller; |
| | | |
| | | import cn.hutool.core.util.IdUtil; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.xcong.farmer.cms.common.contants.AppContants; |
| | | import com.xcong.farmer.cms.common.response.Result; |
| | | import com.xcong.farmer.cms.modules.system.dto.AdminLoginDto; |
| | |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | |
| | | import java.util.Map; |
| | | |
| | | |
| | | @RestController |
| | | @RequestMapping(value = "/api/common") |
| | |
| | | return iCommonService.login(adminLoginDto); |
| | | } |
| | | |
| | | @ApiOperation(value = "获取验证码", notes = "获取验证码") |
| | | @GetMapping("/captcha") |
| | | public Result captcha() throws IOException { |
| | | return iCommonService.captchaCreator(); |
| | | } |
| | | |
| | | /** |
| | | * 用户退出登录 |
| | | * @return |