package com.cyksj.model.entity;

import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/*
 *项目名: netflix
 *文件名: OrderComment
 *创建者: JavaZou
 *创建时间:2023/2/1 13:46
 */
@Getter
@Setter
@SearchBean(tables = "order_comment")
public class OrderComment extends BaseEntity{
	private Long userId;

	private String headImgUrl;

	@NotEmpty(message = "用户名为空")
	private String nickname;

	@NotNull(message = "平台为空")
	private Long goodsId;

	private Long skuId;

	private Long orderId;

	private String title;

	@NotEmpty(message = "评论为空")
	private String content;

	@NotEmpty(message = "使用时间为空")
	private String time;

	private String picture;

	private String video;

	private Integer score;

	private String tvType;

	private String boxType;

	private String routeType;

	private String commentTime;

	private VerifyStatus verifyStatus;

	private BigDecimal balance;

	@Getter
	public enum VerifyStatus {
		verifying("审核中"),
		fail("审核失败"),
		success("审核成功"),
		;
		String desc;

		VerifyStatus(String desc) {
			this.desc = desc;
		}
	}
}
