更新服务器地址和项目名称,移除不必要的客户端日志相关代码,添加阻止交易模型,调整端口号及相关文档内容
This commit is contained in:
@@ -18,15 +18,8 @@ import { Logger as WinstonLogger } from 'winston';
|
||||
import { UsersService } from './users.service';
|
||||
import { CreateUserDto } from './dto/create-user.dto';
|
||||
import { UserResponseDto } from './dto/user-response.dto';
|
||||
import { UserRelationInfoDto, UserRelationInfoResponseDto } from './dto/user-relation-info.dto';
|
||||
import { ApiOperation, ApiBody, ApiResponse, ApiTags } from '@nestjs/swagger';
|
||||
import { UpdateUserDto, UpdateUserResponseDto } from './dto/update-user.dto';
|
||||
import {
|
||||
CreateClientLogDto,
|
||||
CreateBatchClientLogDto,
|
||||
CreateClientLogResponseDto,
|
||||
CreateBatchClientLogResponseDto,
|
||||
} from './dto/client-log.dto';
|
||||
import { AppleLoginDto, AppleLoginResponseDto, RefreshTokenDto, RefreshTokenResponseDto } from './dto/apple-login.dto';
|
||||
import { DeleteAccountDto, DeleteAccountResponseDto } from './dto/delete-account.dto';
|
||||
import { GuestLoginDto, GuestLoginResponseDto, RefreshGuestTokenDto, RefreshGuestTokenResponseDto } from './dto/guest-login.dto';
|
||||
@@ -49,7 +42,7 @@ export class UsersController {
|
||||
) { }
|
||||
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@Get()
|
||||
@Get('/info')
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@ApiOperation({ summary: '创建用户' })
|
||||
@ApiBody({ type: CreateUserDto })
|
||||
@@ -67,40 +60,6 @@ export class UsersController {
|
||||
return this.usersService.updateUser(updateUserDto);
|
||||
}
|
||||
|
||||
|
||||
// 获取用户关系
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@Put('relations')
|
||||
async updateOrCreateRelationInfo(@Body() relationInfoDto: UserRelationInfoDto) {
|
||||
return this.usersService.updateOrCreateRelationInfo(relationInfoDto);
|
||||
}
|
||||
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@Get('relations/:userId')
|
||||
async getRelationInfo(@Param('userId') userId: string): Promise<UserRelationInfoResponseDto> {
|
||||
return this.usersService.getRelationInfo(userId);
|
||||
}
|
||||
|
||||
// 创建客户端日志
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@Post('logs')
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@ApiOperation({ summary: '创建客户端日志' })
|
||||
@ApiBody({ type: CreateClientLogDto })
|
||||
async createClientLog(@Body() createClientLogDto: CreateClientLogDto): Promise<CreateClientLogResponseDto> {
|
||||
return this.usersService.createClientLog(createClientLogDto);
|
||||
}
|
||||
|
||||
// 批量创建客户端日志
|
||||
@UseGuards(JwtAuthGuard)
|
||||
@Post('logs/batch')
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@ApiOperation({ summary: '批量创建客户端日志' })
|
||||
@ApiBody({ type: CreateBatchClientLogDto })
|
||||
async createBatchClientLog(@Body() createBatchClientLogDto: CreateBatchClientLogDto): Promise<CreateBatchClientLogResponseDto> {
|
||||
return this.usersService.createBatchClientLog(createBatchClientLogDto);
|
||||
}
|
||||
|
||||
// Apple 登录
|
||||
@Public()
|
||||
@Post('auth/apple/login')
|
||||
|
||||
Reference in New Issue
Block a user