package org.dromara.work.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.work.domain.TpOrderComment;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 订单评论视图对象 tp_order_comment
 *
 * @author Maosw
 * @date 2024-08-12
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = TpOrderComment.class)
public class TpOrderCommentVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    /**
     * 所属订单
     */
    @ExcelProperty(value = "所属订单")
    private Long oid;

    /**
     * 评论人
     */
    @ExcelProperty(value = "评论人")
    private Long uid;

    /**
     * 评价等级（1=差评，2=中评，3=好评）
     */
    @ExcelProperty(value = "评价等级", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=差评，2=中评，3=好评")
    private Long grade;

    /**
     * 速度
     */
    @ExcelProperty(value = "速度")
    private Long speed;

    /**
     * 质量、
     */
    @ExcelProperty(value = "质量、")
    private Long quality;

    /**
     * 服务
     */
    @ExcelProperty(value = "服务")
    private Long serve;

    /**
     * 评论内容
     */
    @ExcelProperty(value = "评论内容")
    private String content;

    /**
     * 评论时间
     */
    @ExcelProperty(value = "评论时间")
    private Date addTime;

    /**
     * 提交人类型（1=用户，2=客服）
     */
    @ExcelProperty(value = "提交人类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=用户，2=客服")
    private Long type;


}
