feat(ops): kb doc edit, validation auto-tickets, support batch ops
Add knowledge document GET/PUT and admin edit UI; auto-create support tickets on client 400 validation errors across user/shop/partner apps; batch create tasks and publish from support tickets; restore mini-user store env single-column layout. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -25,6 +25,8 @@ import {
|
||||
SupportTicketRemarkDto,
|
||||
UpdateSupportTicketDto,
|
||||
BatchUpdateSupportTicketStatusDto,
|
||||
BatchCreateSupportTicketTasksDto,
|
||||
BatchPublishSupportTicketsDto,
|
||||
} from '../common/dto/support-ticket.dto';
|
||||
import {
|
||||
BatchReviewConfirmDto,
|
||||
@@ -109,6 +111,26 @@ export class AdminSupportTicketsController {
|
||||
);
|
||||
}
|
||||
|
||||
@Post('batch-create-tasks')
|
||||
@UseGuards(SuperAdminGuard)
|
||||
async batchCreateTasks(
|
||||
@CurrentUser() user: AuthUser,
|
||||
@Body() body: BatchCreateSupportTicketTasksDto,
|
||||
) {
|
||||
const account = await this.resolveHqAccount(user);
|
||||
return this.service.batchCreateTasks(body.ticketIds.map(BigInt), account);
|
||||
}
|
||||
|
||||
@Post('batch-publish')
|
||||
@UseGuards(SuperAdminGuard)
|
||||
async batchPublish(
|
||||
@CurrentUser() user: AuthUser,
|
||||
@Body() body: BatchPublishSupportTicketsDto,
|
||||
) {
|
||||
const account = await this.resolveHqAccount(user);
|
||||
return this.service.batchPublish(body.ticketIds.map(BigInt), body, account);
|
||||
}
|
||||
|
||||
@Get(':id')
|
||||
detail(@Param('id') id: string) {
|
||||
return this.service.detail(BigInt(id));
|
||||
|
||||
Reference in New Issue
Block a user