16 changed files with 337 additions and 79 deletions
@ -0,0 +1,36 @@ |
|||
package com.youlai.boot.mini.model.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class MiniStrayAnimalNoteMediaVO { |
|||
|
|||
@Schema(type = "string", description = "资源ID") |
|||
private String noteMediaUuid; |
|||
|
|||
@Schema(type = "string", description = "动物笔记UUID", example = "0677d62d63ec693bf1bd6dab8a877dc1", requiredMode = Schema.RequiredMode.REQUIRED) |
|||
private String noteUuid; |
|||
|
|||
@Schema(description = "媒体类型,image-图片,video-视频") |
|||
private String mediaType; |
|||
|
|||
@Schema(description = "资源URL") |
|||
private String sourceUrl; |
|||
|
|||
@Schema(description = "对象存储中的key") |
|||
private String storageKey; |
|||
|
|||
@Schema(description = "缩略图URL(视频需要)") |
|||
private String thumbnailUrl; |
|||
|
|||
@Schema(description = "宽度(像素)") |
|||
private Integer width; |
|||
|
|||
@Schema(description = "高度(像素)") |
|||
private Integer height; |
|||
|
|||
@Schema(description = "时长(秒,视频用)") |
|||
private Integer duration; |
|||
|
|||
} |
|||
@ -0,0 +1,46 @@ |
|||
package com.youlai.boot.mini.model.vo; |
|||
|
|||
import io.swagger.v3.oas.annotations.media.Schema; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
@Data |
|||
public class StrayAnimalDetailsVO extends StrayAnimalShortVO { |
|||
|
|||
@Schema(description = "颜色", example = "白色") |
|||
private String color; |
|||
|
|||
@Schema(description = "体型,small-小,medium-中等,large-大", example = "medium") |
|||
private String size; |
|||
|
|||
@Schema(description = "状态,found-发现,adopted-已被领养,missing-失踪", example = "missing", required = true) |
|||
private String status="found"; |
|||
|
|||
@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 = "[]") |
|||
private List<MiniStrayAnimalNoteMediaVO> images; |
|||
|
|||
@Schema(description = "视频信息", example = "[]") |
|||
private List<MiniStrayAnimalNoteMediaVO> videos; |
|||
|
|||
} |
|||
|
|||
|
After Width: | Height: | Size: 3.5 MiB |
|
After Width: | Height: | Size: 4.3 MiB |
|
After Width: | Height: | Size: 4.1 MiB |
Loading…
Reference in new issue