package com.qnfhq.modules.c2c.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.SchemaProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * c2c交易对象评价
 *
 * @author yelz 30262728@qq.com
 * @since 1.0.0 2025-11-29
 */
@Data
@Schema(name = "c2c交易对象评价")
public class RatingsReviewsDTO implements Serializable {
    private static final long serialVersionUID = 1L;

	@SchemaProperty(name = "订单编号")
    @NotNull(message="{NotNull.orderId}")//广告编号不能为空
	private Long orderId;

	@SchemaProperty(name = "评分：1好评 2差评")
    @NotNull(message="{NotNull.rating}")//评分不能为空
	private Integer rating;

	@SchemaProperty(name = "标签：多个,分割")
    @NotBlank(message="{NotBlank.lables}")//标签不能为空
	private String lables;

	@SchemaProperty(name = "评价内容")
    @NotBlank(message="{NotBlank.content}")//评价内容不能为空
	private String content;

	@SchemaProperty(name = "是否匿名（0: 否， 1: 是）")
    @NotNull(message="{NotNull.isAnonymous}")//是否匿名不能为空
	private Integer isAnonymous;

}
