namespace ZhiYi.Core.Api.Controllers { /// /// 验证码管理 /// [Route("api/captcha/[action]")] [ApiController] public class CaptchaController : ControllerBase { private readonly ICaptchaAppService _captchaAppService; /// /// /// /// public CaptchaController(ICaptchaAppService captchaAppService) { _captchaAppService = captchaAppService; } /// /// 获取验证码 /// /// [HttpGet] public async Task> GetCaptchaAsync() => await _captchaAppService.GetCaptchaAsync(); } }