标准化博客评论命名
This commit is contained in:
@@ -3,7 +3,7 @@ import { BlogController } from './blog.controller';
|
|||||||
import { BlogService } from './blog.service';
|
import { BlogService } from './blog.service';
|
||||||
import { TypeOrmModule } from '@nestjs/typeorm';
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
||||||
import { Blog } from './entity/Blog.entity';
|
import { Blog } from './entity/Blog.entity';
|
||||||
import { BlogComment } from './entity/BlogComment';
|
import { BlogComment } from './entity/BlogComment.entity';
|
||||||
import { AuthModule } from 'src/auth/auth.module';
|
import { AuthModule } from 'src/auth/auth.module';
|
||||||
import { UserModule } from 'src/user/user.module';
|
import { UserModule } from 'src/user/user.module';
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common';
|
|||||||
import { InjectRepository } from '@nestjs/typeorm';
|
import { InjectRepository } from '@nestjs/typeorm';
|
||||||
import { Blog } from './entity/Blog.entity';
|
import { Blog } from './entity/Blog.entity';
|
||||||
import { Repository } from 'typeorm';
|
import { Repository } from 'typeorm';
|
||||||
import { BlogComment } from './entity/BlogComment';
|
import { BlogComment } from './entity/BlogComment.entity';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class BlogService {
|
export class BlogService {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
PrimaryGeneratedColumn,
|
PrimaryGeneratedColumn,
|
||||||
UpdateDateColumn,
|
UpdateDateColumn,
|
||||||
} from 'typeorm';
|
} from 'typeorm';
|
||||||
import { BlogComment } from './BlogComment';
|
import { BlogComment } from './BlogComment.entity';
|
||||||
|
|
||||||
@Entity()
|
@Entity()
|
||||||
export class Blog {
|
export class Blog {
|
||||||
|
|||||||
Reference in New Issue
Block a user