package org.dromara.system.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.system.domain.SysComplaint;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 投诉建议视图对象 sys_complaint
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysComplaint.class)
public class SysComplaintVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 投诉建议ID
     */
    @ExcelProperty(value = "ID")
    private Long id;

    /**
     * 反馈类型
     */
    @ExcelProperty(value = "反馈类型")
    private String feedbackType;

    /**
     * 反馈内容
     */
    @ExcelProperty(value = "反馈内容")
    private String content;

    /**
     * 图片OSS ID列表（逗号拼接字符串，如 1,2,3）
     */
    @ExcelProperty(value = "图片")
    private String images;

    /**
     * 图片URL列表（逗号拼接，通过OSS ID翻译）
     */
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "images")
    private String imageUrls;

    /**
     * 投诉客户ID
     */
    @ExcelProperty(value = "客户ID")
    private Long customerId;

    /**
     * 客户昵称（通过客户ID翻译）
     */
    @Translation(type = TransConstant.CUSTOMER_ID_TO_NAME, mapper = "customerId")
    private String customerNickname;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "提交时间")
    private Date createTime;

}
