feat 获取所有地址

This commit is contained in:
2024-03-21 16:40:24 +08:00
parent 2ca8f2db49
commit 4c866eaf3f
4 changed files with 28 additions and 4 deletions

View File

@@ -1,9 +1,12 @@
using Dlhis.Basic.Places.Request;
using System.ComponentModel.DataAnnotations;
using Dlhis.Basic.Places.Request;
using Dlhis.Basic.Places.Response;
using Dlhis.Basic.Places.Services;
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
using Kurisu.Core.DataAccess.Dto;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Org.BouncyCastle.Asn1.Ocsp;
namespace Dlhis.Basic.Places.Controllers;
@@ -33,6 +36,18 @@ public class BookingAddressController : ControllerBase
return await _bookingAddresService.GetAddressPageAsync(request);
}
/// <summary>
/// 所有地址
/// </summary>
/// <param name="tenant"></param>
/// <returns></returns>
[HttpGet("all")]
[IgnoreTenant]
public async Task<List<BookingAddressPageResponse>> GetAllAddressAsync([Required(ErrorMessage = "厂区不可为空")] string tenant)
{
return await _bookingAddresService.GetAllAddressAsync(tenant);
}
/// <summary>
/// 地址保存
/// </summary>