package org.dromara.work.domain.bo;

import org.dromara.work.domain.TpAppeals;
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;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 订单投诉业务对象 tp_appeals
 *
 * @author Maosw
 * @date 2025-04-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TpAppeals.class, reverseConvertGenerate = false)
public class TpAppealsBo extends BaseEntity {

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

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

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

    /**
     * 被申诉人用户ID
     */
    @NotNull(message = "被申诉人用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long toUserId;

    /**
     * 申诉类型：1-订单问题，2-服务问题，3-其他
     */
    @NotNull(message = "申诉类型：1-订单问题，2-服务问题，3-其他不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer type;

    /**
     * 申诉原因简述
     */
    @NotBlank(message = "申诉原因简述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reason;

    /**
     * 申诉详细说明
     */
    private String description;

    /**
     * 申诉证据图片URL列表，JSON数组格式
     */
    private String imgs;

    /**
     * 申诉处理状态：0-待处理，1-处理中，2-已处理，3-已拒绝
     */
    private Integer status;

    /**
     * 处理结果说明，客服处理后的反馈
     */
    private String result;

    /**
     * 处理申诉的管理员ID
     */
    private Long handlerId;

    /**
     * 申诉处理完成时间
     */
    private Date handledTime;

    /**
     * 备注
     */
    private String remark;


}
