36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using Furion.DynamicApiController;
|
|
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using Nirvana.Common;
|
|
using Nirvana.Common.ApiBase;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace YBDevice.Application.RegUserInfo
|
|
{
|
|
/// <summary>
|
|
/// 注册用户管理
|
|
/// </summary>
|
|
[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
|
|
public class UserAppService : IDynamicApiController
|
|
{
|
|
private readonly IUserService _Service;
|
|
public UserAppService(IUserService Service)
|
|
{
|
|
_Service = Service;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 注册用户列表
|
|
/// </summary>
|
|
/// <param name="param"></param>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public async Task<ResultInfo> GetListAsync(QueryParams param)
|
|
{
|
|
var result= await _Service.GetListAsync(param);
|
|
return new ResultInfo(ResultState.SUCCESS, "success", result);
|
|
}
|
|
}
|
|
}
|