8 lines
312 B
TypeScript
8 lines
312 B
TypeScript
import type { PostInfoResponseDto } from '$lib/post/adapter/gateway/postInfoResponseDto';
|
|
import type { PostResponseDto } from '$lib/post/adapter/gateway/postResponseDto';
|
|
|
|
export interface PostApiService {
|
|
getAllPosts(): Promise<PostInfoResponseDto[]>;
|
|
getPost(id: number): Promise<PostResponseDto | null>;
|
|
}
|