package org.dromara.biz.domain.bo;

import org.dromara.biz.domain.BizTaskFeedback;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.util.Date;

/**
 * 任务反馈信息业务对象 biz_task_feedback
 *
 * @author chenle
 * @date 2025-05-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BizTaskFeedback.class, reverseConvertGenerate = false)
public class BizTaskFeedbackBo extends BaseEntity {

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

    /**
     * 任务ID
     */
    @NotBlank(message = "任务ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String taskNo;

    /**
     * 任务分配工作ID
     */
    @NotNull(message = "任务分配工作ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long workId;

    /**
     * 反馈用户ID
     */
    @NotNull(message = "反馈用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 反馈用户名称
     */
    @NotBlank(message = "反馈用户名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String userName;

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

    /**
     * 反馈附件
     */
    @NotBlank(message = "反馈附件不能为空", groups = { AddGroup.class, EditGroup.class })
    private String file;

    /**
     * 反馈状态
     */
    @NotNull(message = "反馈状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 反馈图片地址，逗号拼接
     */
    private String image;

    private Date createTime;


}
