Initial commit
This commit is contained in:
43
reference/goedge 文档/PagesService.md
Normal file
43
reference/goedge 文档/PagesService.md
Normal file
@@ -0,0 +1,43 @@
|
||||
# PagesService
|
||||
> Pages相关服务
|
||||
|
||||
---
|
||||
|
||||
## configPages
|
||||
> 配置pages
|
||||
|
||||
- 角色:`admin`
|
||||
- HTTP:`POST https://backend.dooki.cloud/PagesService/configPages`
|
||||
- RPC:`rpc configPages(PagesConfig) returns (RPCSuccess);`
|
||||
|
||||
**请求对象 (`PagesConfig`)**
|
||||
|
||||
```json
|
||||
{
|
||||
"storageId": "int64 // 存储ID",
|
||||
"projectsPerLimit": "int64 // 项目数量限制",
|
||||
"storageSizePerLimit": "int64 // 存储大小限制",
|
||||
"defaultPage": "string // 默认页面",
|
||||
"default404Page": "string // 默认404页面",
|
||||
"isOn": "bool // 是否启用"
|
||||
}
|
||||
```
|
||||
|
||||
**响应对象 (`RPCSuccess`)**
|
||||
|
||||
```json
|
||||
{}
|
||||
```
|
||||
|
||||
**调用示例**
|
||||
|
||||
```bash
|
||||
curl -X POST "https://backend.dooki.cloud/PagesService/configPages" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "X-Edge-Access-Token: <YOUR_TOKEN>" \
|
||||
-d '{
|
||||
...
|
||||
}'
|
||||
```
|
||||
|
||||
---
|
||||
Reference in New Issue
Block a user