using System.ComponentModel.DataAnnotations;
namespace StopShopping.Services.Models.Req;
///
/// 需求分页检索
///
///
public record RequestSearchParams : PagedSearch
{
///
/// 分类id
///
///
public int? CategoryId { get; set; }
///
/// 关键词,序号、名称、描述
///
///
public string? Keyword { get; set; }
///
/// 排序,不要同时传同一个字段的升序和降序
///
///
[MinLength(1)]
[Required]
public RequestOrderBys[] OrderBys { get; set; } = [
RequestOrderBys.PublishTimeDesc,
];
}
///
/// 订单搜索
///
///
public record RequestSearchWithStatusParams : RequestSearchParams
{
///
/// 订单状态
///
///
public RequestStatus Status { get; set; }
}