kongzy
2024-01-29 983bdb5b89932b38d08a11ad1eed6ea89d1597e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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());
    }
}