package com.njcn.rdms.module.system.controller.admin.feedback.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "管理后台 - 用户意见反馈 Response VO")
@Data
public class FeedbackRespVO {

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

    @Schema(description = "反馈分类（字典 feedback_type）")
    private Integer type;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "详细描述")
    private String content;

    @Schema(description = "附件 URL 列表（JSON 数组字符串）")
    private String attachmentUrls;

    @Schema(description = "联系方式")
    private String contact;

    @Schema(description = "处理状态（字典 feedback_status）")
    private Integer status;

    @Schema(description = "提交人 user id")
    private String creator;

    @Schema(description = "提交人姓名（后端按 creator 翻译，查不到为空串）")
    private String creatorName;

    @Schema(description = "提交时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 本字段按可读字符串返回前端；全局默认是 Long 时间戳，此处显式覆盖
    private LocalDateTime createTime;

}
