package com.zsElectric.boot.business.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.*;

/**
 * 用户反馈表单对象
 *
 * @author wzq
 * @since 2025-11-26 15:37
 */
@Getter
@Setter
@Schema(description = "用户反馈表单对象")
public class UserFeedbackForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    private Long id;

    @Schema(description = "问题类型（1投诉吐槽，2功能异常，3体验问题，4功能建议，9其他 ）")
    private Integer type;

    @Schema(description = "问题描述")
    @Size(max=500, message="问题描述长度不能超过500个字符")
    private String description;

    @Schema(description = "相关图片地址")
    @Size(max=600, message="相关图片地址长度不能超过600个字符")
    private String images;

    @Schema(description = "联系方式(手机号或者邮箱)")
    @Size(max=255, message="联系方式(手机号或者邮箱)长度不能超过255个字符")
    private String contactWay;

    @Schema(description = "答复信息")
    @Size(max=500, message="答复信息长度不能超过500个字符")
    private String reply;

    @Schema(description = "用户编号")
    private Long userId;

    @Schema(description = "回复时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime replyTime;

    @Schema(description = "0未回复，1已回复")
    private Integer replyStatus;

    @Schema(description = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "创建人ID")
    private Long createBy;

    @Schema(description = "更新时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "更新人ID")
    private Long updateBy;

    @Schema(description = "逻辑删除标识(0-未删除 1-已删除)")
    private Integer isDeleted;


}
