/
ILYA_13
/
nest_prisma
Обзор
Документация
Войти
/
ILYA_13
/
nest_prisma
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/posts/posts.service.ts
28 строк
611 B
ILYA Loginov
first_comit
23 апр 2025, 20:38
23 апр 2025, 20:38
617a764
Код
Авторство
О чём код?
import { Injectable } from '@nestjs/common'; import { CreatePostDto } from './dto/create-post.dto'; import { UpdatePostDto } from './dto/update-post.dto'; @Injectable() export class PostsService { create(createPostDto: CreatePostDto) { return 'This action adds a new post'; } findAll() { return `This action returns all posts`; } findOne(id: number) { return `This action returns a #${id} post`; } update(id: number, updatePostDto: UpdatePostDto) { return `This action updates a #${id} post`; } remove(id: number) { return `This action removes a #${id} post`; } }