-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from mibrito1/likes.dislikes
projeto finalizado
- Loading branch information
Showing
8 changed files
with
243 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { z } from "zod" | ||
|
||
export interface EditPostInputDTO { | ||
content: string, | ||
token: string, | ||
id: string | ||
} | ||
export interface EditPostOutputDTO { | ||
message: string | ||
} | ||
export const EditPostSchema = z.object({ | ||
token: z.string(), | ||
content: z.string(), | ||
id: z.string() | ||
}).transform(data => data as EditPostInputDTO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { z } from "zod" | ||
|
||
export interface LikeDislikePostInputDTO { | ||
token: string, | ||
id: string, | ||
like: boolean | ||
} | ||
export interface LikeDislikePostOutputDTO { | ||
message: "Interação feita com sucesso!" | ||
} | ||
export const LikeDislikePostSchema = z.object({ | ||
token: z.string(), | ||
id: z.string(), | ||
like: z.boolean() | ||
}).transform(data => data as LikeDislikePostInputDTO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters