Skip to content

Commit

Permalink
chore: message_id 周りの変更
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Nov 6, 2024
1 parent 2182118 commit 9df2437
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/endpoints/forms.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ namespace Forms {
@path answerId: uint32,

@path
message_id: uint32,
@format("uuid")
message_id: string,

@body body: {
body: string;
Expand All @@ -361,7 +362,8 @@ namespace Forms {
@path answerId: uint32,

@path
message_id: uint32,
@format("uuid")
message_id: string,
): {
@statusCode statusCode: 204;
} | {
Expand Down
4 changes: 4 additions & 0 deletions src/models/message.tsp
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import "../endpoints/users.tsp";

model Message {
@visibility("read")
@format("uuid")
id: string;

body: string;
sender: User;
timestamp: utcDateTime;
Expand Down

0 comments on commit 9df2437

Please sign in to comment.