You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
673 B
C#

using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace AccessStudy.WebApi.Controllers
{
/// <summary>
/// 示例控制器
/// </summary>
[Route("api/[controller]")]
[ApiController]
public class ValuesController : ControllerBase
{
/// <summary>
/// 默认请求
/// </summary>
/// <returns></returns>
[HttpGet]
public IActionResult Get()
{
var result = new { Code=0,Message="请求成功"};
return new JsonResult(result);
}
}
}