mirror of
				https://github.com/nsnail/IGeekFan.AspNetCore.Knife4jUI.git
				synced 2025-11-04 17:30:49 +08:00 
			
		
		
		
	update 控制器上注释展示
This commit is contained in:
		@@ -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()
 | 
			
		||||
        {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user