|
@@ -0,0 +1,162 @@
|
|
|
+package org.jeecg.modules.app.vo;
|
|
|
+
|
|
|
+import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
+import lombok.Data;
|
|
|
+import lombok.EqualsAndHashCode;
|
|
|
+import lombok.experimental.Accessors;
|
|
|
+
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+@Data
|
|
|
+@Accessors(chain = true)
|
|
|
+@EqualsAndHashCode(callSuper = false)
|
|
|
+@Schema(description="全局搜索信息返回参数")
|
|
|
+public class SearchVO{
|
|
|
+ @Schema(description="全局搜索场地分页返回参数")
|
|
|
+ private List<SearchPlaceVO> searchPlaceList;
|
|
|
+ @Schema(description="全局搜索培训分页返回参数")
|
|
|
+ private List<SearchTrainVO> searchTrainVOList;
|
|
|
+ @Schema(description="全局搜索赛事分页返回参数")
|
|
|
+ private List<SearchRaceVO> searchRaceVOList;
|
|
|
+ @Schema(description="全局搜索教练分页返回参数")
|
|
|
+ private List<SearchInstructorVO> searchInstructorVOList;
|
|
|
+
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ @EqualsAndHashCode(callSuper = false)
|
|
|
+ @Schema(description="全局搜索教练分页返回参数")
|
|
|
+ public static class SearchInstructorVO {
|
|
|
+ @Schema(description = "主键id")
|
|
|
+ private String id;
|
|
|
+ @Schema(description = "教练名称")
|
|
|
+ private String name;
|
|
|
+ @Schema(description = "教练头像")
|
|
|
+ private String avatar;
|
|
|
+ @Schema(description = "所属部门名称")
|
|
|
+ private String orgName;
|
|
|
+ @Schema(description = "擅长说明")
|
|
|
+ private String excelMsg;
|
|
|
+ @Schema(description = "教学理念")
|
|
|
+ private String teachingPhilosophy;
|
|
|
+ @Schema(description = "好评率")
|
|
|
+ private String goodRate;
|
|
|
+ @Schema(description = "订单数")
|
|
|
+ private String orderCount;
|
|
|
+ @Schema(description = "授课人数")
|
|
|
+ private String teachingCount;
|
|
|
+ @Schema(description = "课程列表")
|
|
|
+ private List<CourseInfoVO> courseList;
|
|
|
+ }
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ @EqualsAndHashCode(callSuper = false)
|
|
|
+ @Schema(description="教练课程信息返回参数")
|
|
|
+ public static class CourseInfoVO {
|
|
|
+ @Schema(description = "主键id")
|
|
|
+ private String id;
|
|
|
+ @Schema(description = "课程名称")
|
|
|
+ private String name;
|
|
|
+ @Schema(description = "课程价格")
|
|
|
+ private String sellingPrice;
|
|
|
+ @Schema(description = "课程类型")
|
|
|
+ private String type;
|
|
|
+ @Schema(description = "课程简介")
|
|
|
+ private String intro;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ @EqualsAndHashCode(callSuper = false)
|
|
|
+ @Schema(description="全局搜索赛事分页返回参数")
|
|
|
+ public static class SearchRaceVO{
|
|
|
+ @Schema(description = "主键id")
|
|
|
+ private String id;
|
|
|
+ @Schema(description = "名称")
|
|
|
+ private String name;
|
|
|
+ @Schema(description = "课程原价")
|
|
|
+ private BigDecimal originalPrice;
|
|
|
+ @Schema(description = "课程售价")
|
|
|
+ private BigDecimal sellingPrice;
|
|
|
+ @Schema(description = "图片")
|
|
|
+ private String cover;
|
|
|
+ @Schema(description = "类目")
|
|
|
+ private String categoryId;
|
|
|
+ @Schema(description = "开始时间")
|
|
|
+ private java.util.Date startTime;
|
|
|
+ @Schema(description = "结束时间")
|
|
|
+ private java.util.Date endTime;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ @EqualsAndHashCode(callSuper = false)
|
|
|
+ @Schema(description="全局搜索培训分页返回参数")
|
|
|
+ public static class SearchTrainVO extends PlaceVO{
|
|
|
+ @Schema(description = "id")
|
|
|
+ private String id;
|
|
|
+ @Schema(description = "名称")
|
|
|
+ private String name;
|
|
|
+ @Schema(description = "课程类型")
|
|
|
+ private int priceType;
|
|
|
+ @Schema(description = "课程介绍")
|
|
|
+ private String reminder;
|
|
|
+ @Schema(description = "课程原价")
|
|
|
+ private BigDecimal originalPrice;
|
|
|
+ @Schema(description = "课程售价")
|
|
|
+ private BigDecimal sellingPrice;
|
|
|
+ @Schema(description = "好评率")
|
|
|
+ private BigDecimal goodRate;
|
|
|
+ @Schema(description = "评论数")
|
|
|
+ private String comments;
|
|
|
+ @Schema(description = "退款类型")
|
|
|
+ private int refundType;
|
|
|
+ @Schema(description = "地址")
|
|
|
+ private String address;
|
|
|
+ @Schema(description = "距离(KM)")
|
|
|
+ private double km;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ @EqualsAndHashCode(callSuper = false)
|
|
|
+ @Schema(description="全局搜索场地分页返回参数")
|
|
|
+ public static class SearchPlaceVO{
|
|
|
+ @Schema(description = "id")
|
|
|
+ private String id;
|
|
|
+ @Schema(description = "场地名称")
|
|
|
+ private String name;
|
|
|
+ @Schema(description = "好评率")
|
|
|
+ private BigDecimal goodRate;
|
|
|
+ @Schema(description = "评论数")
|
|
|
+ private String comments;
|
|
|
+ @Schema(description = "地址")
|
|
|
+ private String address;
|
|
|
+ @Schema(description = "距离(KM)")
|
|
|
+ private double km;
|
|
|
+ @Schema(description = "类目")
|
|
|
+ private List<String> category;
|
|
|
+ @Schema(hidden = true)
|
|
|
+ private String categoryId;
|
|
|
+ @Schema(description = "全局搜索产品信息返回参数")
|
|
|
+ private List<SearchCoureseVO> searchCoureseList;
|
|
|
+ }
|
|
|
+ @Data
|
|
|
+ @Accessors(chain = true)
|
|
|
+ @EqualsAndHashCode(callSuper = false)
|
|
|
+ @Schema(description="全局搜索产品信息返回参数")
|
|
|
+ public static class SearchCoureseVO{
|
|
|
+ @Schema(description = "id")
|
|
|
+ private String id;
|
|
|
+ @Schema(description = "名称")
|
|
|
+ private String name;
|
|
|
+ @Schema(description = "原价")
|
|
|
+ private BigDecimal originalPrice;
|
|
|
+ @Schema(description = "售价")
|
|
|
+ private BigDecimal sellingPrice;
|
|
|
+ @Schema(description = "销售销量")
|
|
|
+ private int sales;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+}
|