|
@@ -44,6 +44,7 @@ use App\Model\WebsiteImg;
|
|
use App\Model\SectorComponent;
|
|
use App\Model\SectorComponent;
|
|
use App\Model\ComponentImg;
|
|
use App\Model\ComponentImg;
|
|
use App\Model\TemplateRule;
|
|
use App\Model\TemplateRule;
|
|
|
|
+use App\Model\SectorType;
|
|
|
|
|
|
#[RpcService(name: "PublicRpcService", protocol: "jsonrpc-http", server: "jsonrpc-http")]
|
|
#[RpcService(name: "PublicRpcService", protocol: "jsonrpc-http", server: "jsonrpc-http")]
|
|
class PublicRpcService implements PublicRpcServiceInterface
|
|
class PublicRpcService implements PublicRpcServiceInterface
|
|
@@ -2676,6 +2677,18 @@ class PublicRpcService implements PublicRpcServiceInterface
|
|
}
|
|
}
|
|
return Result::success($component_img);
|
|
return Result::success($component_img);
|
|
}
|
|
}
|
|
|
|
+ /**
|
|
|
|
+ * 自助建站-获取通栏类型
|
|
|
|
+ */
|
|
|
|
+ public function getSectorType(array $data): array
|
|
|
|
+ {
|
|
|
|
+ $sector = SectorType::get()->all();
|
|
|
|
+ if(empty($sector)){
|
|
|
|
+ return Result::error('通栏类型不存在!');
|
|
|
|
+ }
|
|
|
|
+ return Result::success($sector);
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 自助建站-随机生成模板
|
|
* 自助建站-随机生成模板
|
|
*/
|
|
*/
|