UNPKG

artmapper

Version:

Spring Boot clone for Node.js with TypeScript/JavaScript - JPA-like ORM, Lombok decorators, dependency injection, and MySQL support

15 lines 577 B
import 'reflect-metadata'; import { PostService } from '../service/PostService'; import { Post } from '../entity/Post'; export declare class PostController { private postService; constructor(postService: PostService); getAllPosts(userId?: string): Promise<Post[]>; getPostById(id: string): Promise<Post | null>; createPost(postData: Partial<Post>): Promise<Post>; updatePost(id: string, postData: Partial<Post>): Promise<Post | null>; deletePost(id: string): Promise<{ success: boolean; }>; } //# sourceMappingURL=PostController.d.ts.map