emoticon_api/ARW.Model/Dto/Business/GoodsManager/GoodsComments/GoodsCommentDto.cs
2023-07-17 02:08:00 +08:00

106 lines
2.7 KiB
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using ARW.Model.Models.Business.GoodsManager.GoodsComments;
namespace ARW.Model.Dto.Business.GoodsManager.GoodsComments
{
/// <summary>
/// 商品评价输入对象
///
/// @author admin
/// @date 2023-07-15
/// </summary>
public class GoodsCommentDto
{
public int GoodsCommentId { get; set; }
public long GoodsCommentGuid { get; set; }
[Required(ErrorMessage = "店铺guid不能为空")]
public long ShopGuid { get; set; }
[Required(ErrorMessage = "客户guid不能为空")]
public long CustomerGuid { get; set; }
[Required(ErrorMessage = "订单guid不能为空")]
public long OrderGuid { get; set; }
[Required(ErrorMessage = "商品guid不能为空")]
public long GoodsGuid { get; set; }
[Required(ErrorMessage = "订单商品guid不能为空")]
public long OrderGoodsGuid { get; set; }
[Required(ErrorMessage = "评分分数不能为空")]
public float GoodsCommentRating { get; set; }
[Required(ErrorMessage = "评分类型不能为空")]
public int GoodsCommentRatingType { get; set; }
[Required(ErrorMessage = "评价内容不能为空")]
public string GoodsCommentContent { get; set; }
public string GoodsCommentImages { get; set; }
[Required(ErrorMessage = "回复状态不能为空")]
public int GoodsCommentRecoverStatus { get; set; }
public string GoodsCommentRecoverContent { get; set; }
[Required(ErrorMessage = "显示状态不能为空")]
public int GoodsCommentStatus { get; set; }
[Required(ErrorMessage = "排序不能为空")]
public int GoodsCommentSort { get; set; }
}
/// <summary>
/// 商品评价查询对象
///
/// @author admin
/// @date 2023-07-15
/// </summary>
public class GoodsCommentQueryDto : PagerInfo
{
public string ShopName { get; set; }
public string GoodsName { get; set; }
public long? ShopGuid { get; set; }
public int? GoodsCommentRatingType { get; set; }
public int? GoodsCommentStatus { get; set; }
public int? GoodsCommentRecoverStatus { get; set; }
public string ids { get; set; }
}
/// <summary>
///
/// @author admin
/// @date 2023-07-17
/// 回复对象
/// </summary>
public class GoodsCommentRecoverDto
{
[Required(ErrorMessage = "id不能为空")]
public int GoodsCommentId { get; set; }
[Required(ErrorMessage = "回复内容不能为空")]
public string GoodsCommentRecoverContent { get; set; }
}
}