update 控制器上注释展示

This commit is contained in:
luoyunchong
2020-08-13 00:14:20 +08:00
parent d108d99e32
commit 5ea5c57450
16 changed files with 73 additions and 43 deletions

View File

@ -7,8 +7,11 @@ using Microsoft.Extensions.Logging;
namespace Knife4jUIDemo.Controllers
{
/// <summary>
/// 中文这是一个Get请求这是一个Get请求
/// </summary>
[ApiController]
[Route("[controller]")]
[Route("api/WeatherForecast")]
public class WeatherForecastController : ControllerBase
{
private static readonly string[] Summaries = new[]
@ -23,6 +26,10 @@ namespace Knife4jUIDemo.Controllers
_logger = logger;
}
/// <summary>
/// 这是一个Get请求
/// </summary>
/// <returns></returns>
[HttpGet]
public IEnumerable<WeatherForecast> Get()
{