This commit is contained in:
tanglong 2025-07-08 09:42:48 +08:00
parent 3cb9f11efd
commit 0960259b37
4 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;