40 lines
672 B
Markdown
40 lines
672 B
Markdown
# 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 '{
|
||
...
|
||
}'
|
||
```
|
||
|
||
---
|