mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 10:34:55 +00:00
Remove unused imports and fix formatting issues
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
import { PassportModule } from '@nestjs/passport';
|
import { PassportModule } from '@nestjs/passport';
|
||||||
import { JwtModule } from '@nestjs/jwt';
|
import { JwtModule } from '@nestjs/jwt';
|
||||||
import { ConfigModule, ConfigService } from '@nestjs/config';
|
import { ConfigModule } from '@nestjs/config';
|
||||||
import { Module } from '@nestjs/common';
|
import { Module } from '@nestjs/common';
|
||||||
import { HelperModule } from '../helper/helper.module';
|
import { HelperModule } from '../helper/helper.module';
|
||||||
import { JwtStrategy } from './strategies/jwt.strategy';
|
import { JwtStrategy } from './strategies/jwt.strategy';
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import { IsNotEmpty, IsString } from "class-validator";
|
import { IsNotEmpty, IsString } from 'class-validator';
|
||||||
|
|
||||||
export class DeviceDto {
|
export class DeviceDto {
|
||||||
|
|
||||||
@IsString()
|
@IsString()
|
||||||
@IsNotEmpty()
|
@IsNotEmpty()
|
||||||
public uuid: string;
|
public uuid: string;
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
export * from './permission.dto'
|
export * from './permission.dto';
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
export * from './permission.entity'
|
export * from './permission.entity';
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
export * from './permission.repository'
|
export * from './permission.repository';
|
||||||
|
|||||||
@ -29,7 +29,7 @@ import { UnitModule } from './unit/unit.module';
|
|||||||
RoomModule,
|
RoomModule,
|
||||||
GroupModule,
|
GroupModule,
|
||||||
DeviceModule,
|
DeviceModule,
|
||||||
UserDevicePermissionModule
|
UserDevicePermissionModule,
|
||||||
],
|
],
|
||||||
controllers: [AuthenticationController],
|
controllers: [AuthenticationController],
|
||||||
})
|
})
|
||||||
|
|||||||
@ -16,7 +16,6 @@ import { ResponseMessage } from '../../../libs/common/src/response/response.deco
|
|||||||
import { UserLoginDto } from '../dtos/user-login.dto';
|
import { UserLoginDto } from '../dtos/user-login.dto';
|
||||||
import { JwtAuthGuard } from '../../../libs/common/src/guards/jwt.auth.guard';
|
import { JwtAuthGuard } from '../../../libs/common/src/guards/jwt.auth.guard';
|
||||||
import { ForgetPasswordDto, UserOtpDto, VerifyOtpDto } from '../dtos';
|
import { ForgetPasswordDto, UserOtpDto, VerifyOtpDto } from '../dtos';
|
||||||
import { Request } from 'express';
|
|
||||||
import { RefreshTokenGuard } from '@app/common/guards/jwt-refresh.auth.guard';
|
import { RefreshTokenGuard } from '@app/common/guards/jwt-refresh.auth.guard';
|
||||||
|
|
||||||
@Controller({
|
@Controller({
|
||||||
@ -101,7 +100,7 @@ export class UserAuthController {
|
|||||||
@ApiBearerAuth()
|
@ApiBearerAuth()
|
||||||
@UseGuards(JwtAuthGuard)
|
@UseGuards(JwtAuthGuard)
|
||||||
@Get('user/list')
|
@Get('user/list')
|
||||||
async userList(@Req() req) {
|
async userList() {
|
||||||
const userList = await this.userAuthService.userList();
|
const userList = await this.userAuthService.userList();
|
||||||
return {
|
return {
|
||||||
statusCode: HttpStatus.OK,
|
statusCode: HttpStatus.OK,
|
||||||
|
|||||||
Reference in New Issue
Block a user