2021-10-17 18:37:07 +08:00
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2021-10-11 21:50:50 +08:00
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Yi.Framework.Common.Models;
|
|
|
|
|
|
using Yi.Framework.Interface;
|
|
|
|
|
|
using Yi.Framework.Model.Models;
|
2022-04-06 18:05:00 +08:00
|
|
|
|
using Yi.Framework.Repository;
|
2021-10-13 16:44:15 +08:00
|
|
|
|
using Yi.Framework.WebCore;
|
2022-01-11 16:40:15 +08:00
|
|
|
|
using Yi.Framework.WebCore.AuthorizationPolicy;
|
2021-10-11 21:50:50 +08:00
|
|
|
|
|
|
|
|
|
|
namespace Yi.Framework.ApiMicroservice.Controllers
|
|
|
|
|
|
{
|
|
|
|
|
|
[ApiController]
|
|
|
|
|
|
[Route("api/[controller]/[action]")]
|
2022-04-06 18:05:00 +08:00
|
|
|
|
public class UserController : BaseCrudController<UserEntity>
|
2021-10-11 21:50:50 +08:00
|
|
|
|
{
|
2022-04-06 18:05:00 +08:00
|
|
|
|
public UserController(ILogger<UserEntity> logger, IUserService iUserService) : base(logger, iUserService)
|
2021-10-11 21:50:50 +08:00
|
|
|
|
{
|
2022-04-06 18:05:00 +08:00
|
|
|
|
|
2021-10-11 21:50:50 +08:00
|
|
|
|
}
|
2021-10-23 15:47:15 +08:00
|
|
|
|
[HttpGet]
|
2022-04-06 18:05:00 +08:00
|
|
|
|
public async Task<IActionResult> Test()
|
2022-04-03 23:21:53 +08:00
|
|
|
|
{
|
2022-04-06 18:05:00 +08:00
|
|
|
|
return Ok(await _iRepository.GetListAsync());
|
2022-04-03 23:21:53 +08:00
|
|
|
|
}
|
2021-10-11 21:50:50 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|