package com.cyksj.model.views;

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

import java.util.Date;

/**
 * 项目名: yhlxj2
 * 文件名: CustomerConsultationRecordView
 * 创建者: JavaZou
 * 创建时间:2025/2/7 15:07
 */
@Getter
@Setter
@SearchBean(tables = "customer_consultation_record ccr left join goods_don g on g.id = ccr.goods_id" +
		" left join user u on u.id = ccr.user_id")
public class CustomerConsultationRecordView {

	@DbField("ccr.id")
	private Long id;

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

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

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

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

	@DbField("ccr.type")
	private Integer type;

	/**
	 * 分类名
	 */
	@DbField("ccr.category_name")
	private String categoryName;

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

	@DbField("ccr.imgs")
	private String imgs;

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

	@DbField("ccr.update_time")
	private Date updateTime;
}
