package com.cyksj.model.entity;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/*
 *项目名: netflix
 *文件名: UserComplaint
 *创建者: JavaZou
 *创建时间:2023/6/16 11:23
 */
@Getter
@Setter
public class  UserComplaint extends BaseEntity{
	private Long userId;

	/**
	 * 投诉类型
	 * 1、客服，2、平台
	 */
	@NotNull
	private Integer type;

	/**
	 * 投诉平台id
	 */
	private Long goodsId;


	/**
	 * 投诉客服凭证
	 */
	private String csCard;

	/**
	 * 投诉内容
	 */
	@NotNull
	@Length(max = 255)
	private String content;

	/**
	 * 投诉截图凭证
	 */
	@Length(max = 1000, message = "图片过多")
	private String img;

	/**
	 * 投诉状态
	 */
	private Status status;

	@Getter
	public enum Status{
		processing("处理中"),
		success("已处理"),
		;
		String desc;

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