feat:cash-assets-batch-draft-review-and-login-memory

This commit is contained in:
陈煜 committed 2026-10-05 12:29:07 +08:00
1 parent ce8609116b
commit cfbba73791
16 files changed
+872 -46

No files matched your search

+13
View File
@@ -5,6 +5,7 @@ import {
Delete,
Req,
Param,
Query,
Body,
Res,
ForbiddenException,
@@ -117,6 +118,18 @@ export class AgentManagementController {
.parse(raw);
return this.oauth.consent(r.userId, z.string().uuid().parse(id), approve, scopes, days);
}
@Get('drafts') drafts(@Req() r: UserRequest, @Query('cursor') cursor?: string) {
return this.operations.drafts(r.userId, cursor ? z.string().uuid().parse(cursor) : undefined);
}
@Post('operations/confirm-batch') async confirmBatch(
@Req() r: UserRequest,
@Body() raw: unknown,
@Res({ passthrough: true }) res: Response,
) {
this.auth.limit(r);
return this.operations.confirmBatch(r, raw, res);
}
@Get('operations/:id') preview(@Req() r: UserRequest, @Param('id') id: string) {
return this.operations.preview(r.userId, z.string().uuid().parse(id));
}