功能: 右键新增属性弹窗与获取特定版本(FE-019),服务端新增 /api/items/info
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -13,6 +13,7 @@ import type {
|
||||
FolderDiffItem,
|
||||
GetLatestResult,
|
||||
HistoryEntry,
|
||||
ItemInfo,
|
||||
MappingInfo,
|
||||
OperationLogEntry,
|
||||
PendingChange,
|
||||
@@ -173,6 +174,13 @@ export function checkin(body: { paths?: string[]; comment: string }) {
|
||||
return apiClient.post<{ checkin: CheckinResult }>("/api/checkin", { body })
|
||||
}
|
||||
|
||||
/**
|
||||
* 读取服务端对象(文件或目录)的属性信息,供属性弹窗展示。
|
||||
*/
|
||||
export function getItemInfo(params: { serverPath: string }) {
|
||||
return apiClient.get<{ item: ItemInfo }>("/api/items/info", { query: params })
|
||||
}
|
||||
|
||||
/**
|
||||
* 读取服务器内容(latest 或指定 changeset),或读取本地映射文件内容。
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user