|
@@ -6,7 +6,8 @@ import {
|
|
GetBasePromptDto,
|
|
GetBasePromptDto,
|
|
GetUserProfileDto,
|
|
GetUserProfileDto,
|
|
GetStaffProfileDto,
|
|
GetStaffProfileDto,
|
|
- RunPromptDto
|
|
|
|
|
|
+ RunPromptDto,
|
|
|
|
+ ListUsersDto
|
|
} from '@/dto/agent-server'
|
|
} from '@/dto/agent-server'
|
|
|
|
|
|
import { AgentServerService } from './service/agent-server.service'
|
|
import { AgentServerService } from './service/agent-server.service'
|
|
@@ -69,4 +70,10 @@ export class AgentServerController {
|
|
async runPrompt(@Body() body: RunPromptDto) {
|
|
async runPrompt(@Body() body: RunPromptDto) {
|
|
return this.agentServerService.runPrompt(body)
|
|
return this.agentServerService.runPrompt(body)
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Get('user/list')
|
|
|
|
+ @ApiOperation({ summary: '获取用户列表' })
|
|
|
|
+ async listUsers(@Query() query: ListUsersDto) {
|
|
|
|
+ return this.agentServerService.listUsers(query.userName, query.unionId)
|
|
|
|
+ }
|
|
}
|
|
}
|