self_mall_api/ARW.Model/Dto/Business/OrderManage/OrderGoodss/OrderGoodsDto.cs

61 lines
1.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using ARW.Model.Models.Business.OrderManage.OrderGoodss;
namespace ARW.Model.Dto.Business.OrderManage.OrderGoodss
{
/// <summary>
/// 订单商品记录输入对象
///
/// @author lwh
/// @date 2023-09-01
/// </summary>
public class OrderGoodsDto
{
public int OrderGoodsId { get; set; }
public long OrderGoodsGuid { get; set; }
[Required(ErrorMessage = "订单guid不能为空")]
public long OrderGuid { get; set; }
[Required(ErrorMessage = "商品guid不能为空")]
public long GoodsGuid { get; set; }
public int? GoodsSkuId { get; set; }
[Required(ErrorMessage = "商品单价不能为空")]
public decimal GoodsPrice { get; set; }
[Required(ErrorMessage = "商品购买数量不能为空")]
public int GoodsTotalNum { get; set; }
[Required(ErrorMessage = "商品总额(单价 × 数量)不能为空")]
public decimal GoodsTotalAmoun { get; set; }
}
/// <summary>
/// 订单商品记录查询对象
///
/// @author lwh
/// @date 2023-09-01
/// </summary>
public class OrderGoodsQueryDto : PagerInfo
{
public string ids { get; set; }
}
}