OrderRequestDto.cs 586 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel.DataAnnotations;
  4. using System.Linq;
  5. using System.Web;
  6. namespace Central.Control.WebApi.Models.Request
  7. {
  8. /// <summary>
  9. /// 下单实体
  10. /// </summary>
  11. public class OrderRequestDto
  12. {
  13. /// <summary>
  14. /// 下单商品id
  15. /// </summary>
  16. [Required(ErrorMessage = "ProductId必传")]
  17. public string ProductId { set; get; } = string.Empty;
  18. /// <summary>
  19. /// 下单商品id
  20. /// </summary>
  21. public int Count { set; get; }
  22. }
  23. }