docs(studio.lattice): 更新注释,对 lattice 的 output 添加 frame 参数

Signed-off-by: 李东云 <dongyun.li@luxcreo.ai>
This commit is contained in:
李东云
2022-07-13 20:58:10 +08:00
parent b23adb4211
commit 09165dcf03

View File

@@ -46,6 +46,12 @@ use Singularity\HDK\Utils\Resource\ClassicResponse;
* @property File $output
* @property File $outputSmall
* @property \Hyperf\Database\Model\Collection $showPicIds
* @property string $technology
* @property string $material
* @property string $completeFileId
* @property string $completeFileUrl
* @property string $frameFileId
* @property string $frameFileUrl
*/
final class Lattice extends JsonResource
{
@@ -82,6 +88,15 @@ final class Lattice extends JsonResource
),
'technology' => $this->when(isset($this->technology), $this->technology),
'material' => $this->when(isset($this->material), $this->material),
$this->mergeWhen(!empty($this->frameFileId), [
'frameFileId' => $this->frameFileId,
'frameFileUrl' => $this->frameFileUrl,
]),
$this->mergeWhen(!empty($this->completeFileId), [
'completeFileId' => $this->completeFileId,
'completeFileUrl' => $this->completeFileUrl,
]),
];
}
}