Student.Core.API/Controllers/TestController.cs
(完整代码) 1005Busing System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Student.Core.API.Code.WebApi;
using Student.DTO;
using Student.IServices;
using yrjw.ORM.Chimp.Result;
namespace Student.Core.API.Controllers
{
[Description("测试")]
[ApiExplorerSettings(IgnoreApi = true)]
public class TestController : ControllerAbstract
{
private readonly IWebApiHelper _webApi;
public TestController(ILogger<ControllerAbstract> logger, IWebApiHelper webApi) : base(logger)
{
_webApi = webApi;
}
[Description("获取学生列表,模拟调用三方接口获取数据")]
[ResponseCache(Duration = 0)]
[HttpGet("QueryList")]
public async Task<IResultModel> QueryList()
{
var result = await _webApi.GetStudentInfoListAsync();
return result;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。