package com.gkhy.assess.admin.controller.web;
|
|
import com.gkhy.assess.common.api.CommonResult;
|
import com.gkhy.assess.system.service.CaptchaService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* 验证码操作处理
|
*
|
* @author ruoyi
|
*/
|
@Api(tags = "验证码前端控制器")
|
@RestController
|
@RequestMapping("/system/captcha")
|
public class CaptchaController
|
{
|
@Autowired
|
private CaptchaService captchaService;
|
/**
|
* 生成验证码
|
*/
|
@ApiOperation(value = "生成验证码")
|
@GetMapping("/captchaImage")
|
public CommonResult captchaImage()
|
{
|
return CommonResult.success(captchaService.captchaImage());
|
}
|
}
|