package org.dromara.work.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.work.domain.TpOrderComment;

import java.util.Date;

/**
 * 订单评论业务对象 tp_order_comment
 *
 * @author Maosw
 * @date 2024-08-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TpOrderComment.class, reverseConvertGenerate = false)
public class TpOrderCommentBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 所属订单
     */
    @NotNull(message = "所属订单不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long oid;

    /**
     * 评论人
     */
    @NotNull(message = "评论人不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long uid;

    /**
     * 评价等级（1=差评，2=中评，3=好评）
     */
    @NotNull(message = "评价等级（1=差评，2=中评，3=好评）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long grade;

    /**
     * 速度
     */
    @NotNull(message = "速度不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long speed;

    /**
     * 质量、
     */
    @NotNull(message = "质量、不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long quality;

    /**
     * 服务
     */
    @NotNull(message = "服务不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long serve;

    /**
     * 评论内容
     */
    @NotBlank(message = "评论内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 评论时间
     */
    @NotNull(message = "评论时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date addTime;

    /**
     * 提交人类型（1=用户，2=客服）
     */
    @NotNull(message = "提交人类型（1=用户，2=客服）不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long type;


}
