Initial commit
This commit is contained in:
39
reference/goedge 文档/LatestItemService.md
Normal file
39
reference/goedge 文档/LatestItemService.md
Normal file
@@ -0,0 +1,39 @@
|
||||
# LatestItemService
|
||||
> 最近使用的条目服务
|
||||
|
||||
---
|
||||
|
||||
## increaseLatestItem
|
||||
> 记录最近使用的条目
|
||||
|
||||
- 角色:`admin`
|
||||
- HTTP:`POST https://backend.dooki.cloud/LatestItemService/increaseLatestItem`
|
||||
- RPC:`rpc increaseLatestItem (IncreaseLatestItemRequest) returns (RPCSuccess);`
|
||||
|
||||
**请求对象 (`IncreaseLatestItemRequest`)**
|
||||
|
||||
```json
|
||||
{
|
||||
"itemType": "string",
|
||||
"itemId": "int64"
|
||||
}
|
||||
```
|
||||
|
||||
**响应对象 (`RPCSuccess`)**
|
||||
|
||||
```json
|
||||
{}
|
||||
```
|
||||
|
||||
**调用示例**
|
||||
|
||||
```bash
|
||||
curl -X POST "https://backend.dooki.cloud/LatestItemService/increaseLatestItem" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "X-Edge-Access-Token: <YOUR_TOKEN>" \
|
||||
-d '{
|
||||
...
|
||||
}'
|
||||
```
|
||||
|
||||
---
|
||||
Reference in New Issue
Block a user