| 12345678910111213141516171819202122232425262728293031323334 |
- namespace Admin.NET.Application.Service;
- /// <summary>
- /// 测试服务
- /// </summary>
- [ApiDescriptionSettings(ApplicationConst.GroupName, Order = 200)]
- [AllowAnonymous]
- public class TestService : IDynamicApiController, ITransient
- {
- private readonly SqlSugarRepository<Test> _testRep;
- public TestService(SqlSugarRepository<Test> testRep)
- {
- _testRep = testRep;
- }
- /// <summary>
- /// 测试
- /// </summary>
- public string GetName()
- {
- return "Furion";
- }
- /// <summary>
- /// 获取列表
- /// </summary>
- /// <returns></returns>
- [HttpGet("/test/list")]
- public async Task<List<Test>> GetTestList()
- {
- return await _testRep.GetListAsync();
- }
- }
|