package com.xindazhou.business.controller.admin.service.evaluation.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 服务评价 Response VO")
@Data
public class EvaluationRespVO {

    @Schema(description = "评价ID", example = "1")
    private Long id;

    @Schema(description = "评价编号", example = "EV001")
    private String evaluationId;

    @Schema(description = "用户ID", example = "1")
    private Long userId;

    @Schema(description = "用户信息")
    private UserInfo userInfo;

    @Schema(description = "订单号", example = "ORD001")
    private String orderNo;

    @Schema(description = "评分：1-5星", example = "5")
    private Integer rating;

    @Schema(description = "评价内容", example = "服务很好")
    private String content;

    @Schema(description = "评价图片列表")
    private List<String> images;

    @Schema(description = "订单信息")
    private Object orderInfo;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "用户信息")
    @Data
    public static class UserInfo {
        @Schema(description = "用户昵称", example = "张三")
        private String nickname;

        @Schema(description = "用户手机号", example = "13800138000")
        private String mobile;

        @Schema(description = "用户头像", example = "https://example.com/avatar.jpg")
        private String avatar;
    }

}

