mirror of
http://124.126.16.154:8888/singularity/HyperfDevelopmentKit.git
synced 2026-01-15 00:35:08 +08:00
docs(studio.lattice): 更新注释,对 lattice 的 output 添加 frame 参数
Signed-off-by: 李东云 <dongyun.li@luxcreo.ai>
This commit is contained in:
@@ -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,
|
||||
]),
|
||||
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user