dd
This commit is contained in:
parent
3cb9f11efd
commit
0960259b37
@ -15,6 +15,7 @@ namespace YD_AllHeartRates.Api.Controllers
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[ApiVersion("1.0")]
|
[ApiVersion("1.0")]
|
||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
|
[Route("[controller]")]
|
||||||
public class DeviceController : ControllerBase
|
public class DeviceController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDeviceService _deviceService;
|
private readonly IDeviceService _deviceService;
|
||||||
|
@ -13,6 +13,7 @@ namespace YD_AllHeartRates.Api.Controllers
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[ApiVersion("1.0")]
|
[ApiVersion("1.0")]
|
||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
|
[Route("[controller]")]
|
||||||
public class HeartRateReportController : ControllerBase
|
public class HeartRateReportController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly IHeartRateReportService _rateReportService;
|
private readonly IHeartRateReportService _rateReportService;
|
||||||
|
@ -13,6 +13,7 @@ namespace YD_AllHeartRates.Api.Controllers
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[ApiVersion("1.0")]
|
[ApiVersion("1.0")]
|
||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
|
[Route("[controller]")]
|
||||||
public class LargeScreenController : ControllerBase
|
public class LargeScreenController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly ILargeScreenService _largeScreenService;
|
private readonly ILargeScreenService _largeScreenService;
|
||||||
|
@ -13,6 +13,7 @@ namespace YD_AllHeartRates.Api.Controllers
|
|||||||
/// 用户
|
/// 用户
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[ApiVersion("1.0")]
|
[ApiVersion("1.0")]
|
||||||
|
[Route("[controller]")]
|
||||||
[AllowAnonymous]
|
[AllowAnonymous]
|
||||||
public class UserController : ControllerBase
|
public class UserController : ControllerBase
|
||||||
{
|
{
|
||||||
@ -27,7 +28,7 @@ namespace YD_AllHeartRates.Api.Controllers
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPost(nameof(Login))]
|
[HttpPost(nameof(Login))]
|
||||||
public async Task<UserInfoDto> Login(LoginInfo loginInfo)
|
public async Task<UserInfoDto> Login([FromBody] LoginInfo loginInfo)
|
||||||
{
|
{
|
||||||
var res = await _userService.Login(loginInfo);
|
var res = await _userService.Login(loginInfo);
|
||||||
return res;
|
return res;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user