23 lines
901 B
C#
23 lines
901 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Store.Modules.CloudProduct.Dtos;
|
|
|
|
/// <summary>单张商品图片,使用 multipart/form-data 上传。</summary>
|
|
public sealed class InspectImageRequest
|
|
{
|
|
[Required] public string UserName { get; set; } = "";
|
|
/// <summary>客户端指定的 32 位十六进制 MD5 缓存键,大小写均可。</summary>
|
|
[Required] public string Md5 { get; set; } = "";
|
|
/// <summary>图片原始字节的 Base64 字符串,不含 Data URL 前缀。</summary>
|
|
[Required] public string Image { get; set; } = "";
|
|
}
|
|
|
|
///// <summary>在当前登录用户和指定平台内按商品 ID 批量查询。</summary>
|
|
//public sealed class QueryProductSafetyRequest
|
|
//{
|
|
// [Required] public string UserName { get; set; } = "";
|
|
// [Required] public string[] ProductIds { get; set; } = [];
|
|
//}
|
|
|
|
//public sealed record ProductSafetyDto(string ProductId, bool IsSafe);
|