package shop.alien.entity.store.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import shop.alien.entity.store.StoreStaffConfig;

import java.util.List;

/**
 * 员工评价详情VO（包含评论和回复）
 *
 * @author system
 * @since 2025-01-XX
 */
@Data
@ApiModel(value = "StoreStaffReviewDetailVo对象", description = "员工评价详情VO")
public class StoreStaffReviewDetailVo {

    @ApiModelProperty(value = "评价信息")
    private StoreStaffReviewVo review;

    @ApiModelProperty(value = "评论列表（包含回复）")
    private List<StoreStaffCommentVo> commentList;

    @ApiModelProperty(value = "人员信息")
    private StoreStaffConfig staffInfo;

    @ApiModelProperty(value = "店铺信息")
    private StoreInfoForStaffReviewVo storeInfo;
    
    /**
     * 店铺信息VO（用于员工评价详情）
     */
    @Data
    @ApiModel(value = "StoreInfoForStaffReviewVo对象", description = "店铺信息VO（用于员工评价详情）")
    public static class StoreInfoForStaffReviewVo {
        @ApiModelProperty(value = "店铺ID")
        private Integer storeId;
        
        @ApiModelProperty(value = "店铺名称")
        private String storeName;
        
        @ApiModelProperty(value = "店铺头像（来自store_user表的head_img字段）")
        private String headImg;
        
        @ApiModelProperty(value = "店铺评分（平均评分）")
        private Double score;
        
        @ApiModelProperty(value = "到商铺的距离（单位：千米，如果未提供用户位置则为null）")
        private Double distance;
    }
}

