All checks were successful
Frontend CI / build (push) Successful in 6m14s
### Description - As the title ### Package Changes _No response_ ### Screenshots |Scenario|Screenshot| |-|-| |Posts list|| |Empty input|| |Pattern not matched|| ### Reference Resolve #126. ### Checklist - [x] A milestone is set - [x] The related issuse has been linked to this branch Reviewed-on: #139 Co-authored-by: SquidSpirit <squid@squidspirit.com> Co-committed-by: SquidSpirit <squid@squidspirit.com>
14 lines
375 B
TypeScript
14 lines
375 B
TypeScript
import type {
|
|
CreatePostParams,
|
|
PostRepository,
|
|
} from '$lib/post/application/gateway/postRepository';
|
|
import type { Post } from '$lib/post/domain/entity/post';
|
|
|
|
export class CreatePostUseCase {
|
|
constructor(private readonly postRepository: PostRepository) {}
|
|
|
|
async execute(params: CreatePostParams): Promise<Post> {
|
|
return this.postRepository.createPost(params);
|
|
}
|
|
}
|