001package run.iget.framework.captcha.controller;
002
003import javax.annotation.Resource;
004
005import org.springframework.web.bind.annotation.PostMapping;
006import org.springframework.web.bind.annotation.RequestMapping;
007import org.springframework.web.bind.annotation.RestController;
008
009import run.iget.framework.captcha.resp.CaptchaResp;
010import run.iget.framework.captcha.service.CaptchaService;
011
012/**
013 * 代码千万行,注释第一行,注释不规范,迭代两行泪
014 * ---------------类描述-----------------
015 * 验证码控制器
016 * ---------------类描述-----------------
017 *
018 * @author 大周
019 * @date 2023/1/24 20:47
020 */
021@RestController
022@RequestMapping("/common/captcha")
023public class CaptchaController {
024
025    @Resource
026    private CaptchaService captchaService;
027
028    @PostMapping("")
029    public CaptchaResp captcha() {
030        return captchaService.generate();
031    }
032
033}