8 changed files with 240 additions and 6 deletions
@ -0,0 +1,15 @@ |
|||
package com.youlai.boot.mini.model.query; |
|||
|
|||
import com.youlai.boot.common.base.BaseQuery; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
@EqualsAndHashCode(callSuper = true) |
|||
@Data |
|||
public class OwnStrayAnimalQuery extends StrayAnimalQuery { |
|||
|
|||
@Schema(description = "用户ID", example = "1", hidden = true) |
|||
private Long miniUserId; // 用户ID,用于查询用户自己的流浪动物
|
|||
|
|||
} |
|||
@ -0,0 +1,20 @@ |
|||
package com.youlai.boot.mini.model.query; |
|||
|
|||
import com.youlai.boot.common.base.BaseQuery; |
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
@EqualsAndHashCode(callSuper = true) |
|||
@Data |
|||
public class StrayAnimalQuery extends BaseQuery { |
|||
|
|||
@Schema(description = "动物类型,cat-猫,dog-狗,other-其他", example = "cat") |
|||
private String animalType; |
|||
|
|||
@Schema(description = "起始登记时间,毫秒级时间戳", example = "1776426078459") |
|||
private Long createStartTimestamp; |
|||
|
|||
@Schema(description = "截止登记时间,毫秒级时间戳", example = "1776426078459") |
|||
private Long createEndTimestamp; |
|||
} |
|||
@ -0,0 +1,89 @@ |
|||
package com.youlai.boot.mini.model.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.Data; |
|||
|
|||
|
|||
@Data |
|||
public class StrayAnimalShortVO { |
|||
|
|||
@Schema(description = "作者id", example = "true") |
|||
private Long authorId; |
|||
|
|||
@Schema(description = "作者昵称", example = "true") |
|||
private String authorName; |
|||
|
|||
@Schema(description = "作者头像", example = "true") |
|||
private String authorAvatar; |
|||
|
|||
@Schema(type = "string", description = "动物信息UUID", example = "0677d62d63ec693bf1bd6dab8a877dc1", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
private String animalUuid; |
|||
|
|||
@Schema(type = "string", description = "动物笔记UUID", example = "0677d62d63ec693bf1bd6dab8a877dc1", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
private String animalNoteUuid; |
|||
|
|||
@Schema(description = "封面图片url", example = "https://pet-map.oss-cn-beijing.aliyuncs.com/animal_note/18ec68e743a0bba8c85f441fbce08/17441599158f190n30q.jpg") |
|||
private String firstImageUrl; |
|||
|
|||
@Schema(description = "动物类型,cat-猫,dog-狗,other-其他", example = "cat", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
private String animalType; |
|||
|
|||
// @Schema(description = "颜色", example = "白色")
|
|||
// private String color;
|
|||
//
|
|||
// @Schema(description = "体型,small-小,medium-中等,large-大", example = "medium")
|
|||
// private String size;
|
|||
|
|||
// @Schema(description = "状态,found-发现,adopted-已被领养,missing-失踪", example = "missing", requiredMode = Schema.RequiredMode.REQUIRED)
|
|||
// private String status="found";
|
|||
|
|||
@Schema(description = "笔记标题", example = "在公园发现的小猫", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
private String title; |
|||
|
|||
@Schema(description = "笔记内容", example = "今天下午在人民公园看到一只走失的小猫") |
|||
private String content; |
|||
|
|||
@Schema(description = "可见性范围:public-公开,private-仅自己,friends-仅好友", example = "public") |
|||
private String visibility="public"; |
|||
|
|||
// @Schema(description = "经度", example = "118.08125")
|
|||
// private Double lng;
|
|||
//
|
|||
// @Schema(description = "纬度", example = "24.606929")
|
|||
// private Double lat;
|
|||
//
|
|||
// @Schema(description = "省", example = "福建省")
|
|||
// private String province;
|
|||
//
|
|||
// @Schema(description = "市", example = "厦门市")
|
|||
// private String city;
|
|||
//
|
|||
// @Schema(description = "区(县)", example = "集美区")
|
|||
// private String district;
|
|||
//
|
|||
// @Schema(description = "完整详细地址,含省市区(县)", example = "福建省厦门市集美区侨英街道莲花尚院1号院")
|
|||
// private String address;
|
|||
|
|||
@Schema(description = "浏览数", example = "118") |
|||
private Integer viewCount; |
|||
|
|||
@Schema(description = "点赞数", example = "125") |
|||
private Integer likeCount; |
|||
|
|||
@Schema(description = "评论数", example = "125") |
|||
private Integer commentCount; |
|||
|
|||
@Schema(description = "收藏数", example = "125") |
|||
private Integer collectCount; |
|||
|
|||
@Schema(description = "当前用户是否已点赞", example = "false") |
|||
private Boolean isLiked; |
|||
|
|||
@Schema(description = "当前用户是否收藏", example = "false") |
|||
private Boolean Collected; |
|||
|
|||
@Schema(description = "审核状态:0通过,1审核中,2审核未通过", example = "0") |
|||
private Integer auditStatus; |
|||
|
|||
} |
|||
|
|||
Loading…
Reference in new issue