package com.cyksj.model.views;

import com.cyksj.model.entity.OrderComment;
import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/*
 *项目名: netflix
 *文件名: OrderCommentView
 *创建者: JavaZou
 *创建时间:2023/2/1 14:00
 */
@Getter
@Setter
@SearchBean(tables = "order_comment oc left join goods_don g on g.id = oc.goods_id" +
		" left join goods_don_sku sku on sku.id = oc.sku_id")
public class OrderCommentView {
	@DbField("oc.id")
	private Long id;

	@DbField("oc.user_id")
	private Long userId;

	@DbField("oc.head_img_url")
	private String headImgUrl;

	@DbField("oc.nickname")
	private String nickname;

	@DbField("oc.goods_id")
	private Long goodsId;

	@DbField("g.title")
	private String title;

	@DbField("oc.sku_id")
	private Long skuId;

	@DbField("sku.spec_val")
	private String specVal;

	@DbField("oc.order_id")
	private Long orderId;

	@DbField("oc.content")
	private String content;

	@DbField("oc.score")
	private Integer score;

	@DbField("oc.time")
	private String time;

	@DbField("oc.picture")
	private String picture;

	@DbField("oc.video")
	private String video;

	@DbField("oc.comment_time")
	private String commentTime;

	@DbField("oc.created_time")
	private Date createdTime;

	@DbField("oc.verify_status")
	private OrderComment.VerifyStatus verifyStatus;

	@DbField("oc.tv_type")
	private String tvType;

	@DbField("oc.box_type")
	private String boxType;

	@DbField("oc.route_type")
	private String routeType;

	@DbField("oc.title")
	private String commentTitle;
}
