|
@@ -18,6 +18,7 @@ import { PageRequest } from '../common/dto/page-request'
|
|
|
import { ChatRole } from './entities/chat-role.entity'
|
|
import { ChatRole } from './entities/chat-role.entity'
|
|
|
import { ChatRoleDto } from './dto/chat-role.dto'
|
|
import { ChatRoleDto } from './dto/chat-role.dto'
|
|
|
import { ChatRoleService } from './chat-role.service'
|
|
import { ChatRoleService } from './chat-role.service'
|
|
|
|
|
+import { Public } from 'src/auth/public.decorator'
|
|
|
|
|
|
|
|
@ApiTags('chatRole')
|
|
@ApiTags('chatRole')
|
|
|
@Controller('/chatRole')
|
|
@Controller('/chatRole')
|
|
@@ -37,6 +38,7 @@ export class ChatRoleController {
|
|
|
return await this.chatRoleService.findByPlayerName(chatRole.playerName)
|
|
return await this.chatRoleService.findByPlayerName(chatRole.playerName)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Public()
|
|
|
@Get('/getRandom/:num')
|
|
@Get('/getRandom/:num')
|
|
|
public async randomQuery(@Param('num') num: number) {
|
|
public async randomQuery(@Param('num') num: number) {
|
|
|
return await this.chatRoleService.randomQuery(num)
|
|
return await this.chatRoleService.randomQuery(num)
|