package com.cyksj.model.views;

import com.ejlchina.searcher.bean.DbField;
import com.ejlchina.searcher.bean.SearchBean;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

/*
 *项目名: netflix
 *文件名: OrderCommentFrontView
 *创建者: JavaZou
 *创建时间:2023/5/26 17:05
 */
@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",
		where = "oc.verify_status = 'success'")
public class OrderCommentFrontView {
	@JsonIgnore
	@DbField("oc.id")
	private Long id;

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

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

	@DbField("g.id")
	private Long goodsId;

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

	@JsonIgnore
	@DbField("sku.id")
	private Long skuId;

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

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

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

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

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

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

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

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

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

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

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