tangjiang пре 4 дана
родитељ
комит
b96bdd3e4f

+ 7 - 0
src/Hotline.Api/Controllers/CallNativeContrroller.cs

@@ -164,6 +164,13 @@ namespace Hotline.Api.Controllers
         {
             var (total, items) = await _db.Queryable<XingtangWhitePhone>()
                 .WhereIF(!string.IsNullOrEmpty(dto.Keyword), p => p.Phone.Contains(dto.Keyword))
+                .Select(p => new WhitePhoneListDto
+                {
+                    Id = p.Id,
+                    StartPhone = p.Phone,
+                    ValidDateTime = p.ValidDateTime,
+                    Enabled = p.Enabled
+                })
                 .ToPagedListAsync(dto, HttpContext.RequestAborted);
 
             return new PagedDto<WhitePhoneListDto>(total, _mapper.Map<IReadOnlyList<WhitePhoneListDto>>(items));

+ 1 - 1
src/Hotline.Share/Dtos/CallNative/BlackPhoneListDto.cs

@@ -69,7 +69,7 @@ namespace Hotline.Share.Dtos.CallNative
         /// <summary>
         /// 号码
         /// </summary>
-        public string? Phone { get; set; }
+        public string? StartPhone { get; set; }
 
         /// <summary>
         /// 有效期