1
This commit is contained in:
@@ -11,9 +11,20 @@ export async function listRpgCreationWorks() {
|
||||
return Array.isArray(response?.items) ? response.items : [];
|
||||
}
|
||||
|
||||
export async function deleteRpgCreationAgentSession(sessionId: string) {
|
||||
const response = await requestRpgCreationRuntimeJson<ListRpgCreationWorksResponse>(
|
||||
`/custom-world/agent/sessions/${encodeURIComponent(sessionId)}`,
|
||||
{ method: 'DELETE' },
|
||||
'删除 RPG 草稿失败',
|
||||
);
|
||||
|
||||
return Array.isArray(response?.items) ? response.items : [];
|
||||
}
|
||||
|
||||
/**
|
||||
* 工作包 D 把作品列表请求正式迁入 RPG 创作域 client。
|
||||
*/
|
||||
export const rpgCreationWorkClient = {
|
||||
deleteAgentSession: deleteRpgCreationAgentSession,
|
||||
listWorks: listRpgCreationWorks,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user