返回 总览
嵌入在业务对象中返回的媒体文件信息,仅暴露客户端需要的字段。
| 字段 | 类型 | 说明 |
|---|---|---|
id |
number |
媒体 ID |
url |
string |
访问 URL({baseUrl}/api/v1/media/{storageKey}) |
见 通用响应结构。
见 分页响应结构。
| 字段 | 类型 | 说明 |
|---|---|---|
id |
number |
植物 ID |
name |
string |
植物名 |
species |
object |
种类摘要 { id, commonName, scientificName },引用被删时省略 |
location |
object |
位置摘要 { id, name },引用被删时省略 |
plantingDate |
string |
种植日期(YYYY-MM-DD),未设置时省略 |
cultivationMethod |
number |
种植方式,见 CultivationMethod 枚举 |
substrate |
number |
栽培介质,见 Substrate 枚举 |
status |
number |
植物状态,见 PlantStatus 枚举 |
remark |
string |
备注,未设置时省略 |
covers |
array |
封面列表,每项 MediaSummary(id、url),按排序号升序 |
tags |
array |
标签列表,每项 |
createdAt |
number |
建档时间(13 位毫秒级 Unix 时间戳) |
| 字段 | 类型 | 说明 |
|---|---|---|
id |
number |
记录 ID |
type |
number |
养护类型,见 JournalType 枚举 |
eventTime |
number |
养护时间(13 位毫秒级 Unix 时间戳) |
properties |
string |
养护属性(JSON String),未设置时省略 |
remark |
string |
备注,未设置时省略 |
plantIds |
array |
关联的植物 ID 列表 |
media |
array |
附件列表,每项 MediaSummary(id、url),按排序号升序 |
createdAt |
number |
记录创建时间(13 位毫秒级 Unix 时间戳) |