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.
35 lines
822 B
C#
35 lines
822 B
C#
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace HttpClientStudy.WebApp.Controllers
|
|
{
|
|
/// <summary>
|
|
/// 简单接口 控制器
|
|
/// </summary>
|
|
[Route("api/[controller]/[action]")]
|
|
[ApiController]
|
|
public class SimpleController : ControllerBase
|
|
{
|
|
private ILogger<SimpleController> _logger;
|
|
|
|
/// <summary>
|
|
/// 构造
|
|
/// </summary>
|
|
public SimpleController(ILogger<SimpleController> logger)
|
|
{
|
|
_logger = logger;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获取账号
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public IActionResult GetAccount()
|
|
{
|
|
var reslut = BaseResultUtil.Success("操作成功");
|
|
return Ok(reslut);
|
|
}
|
|
}
|
|
}
|