tsk-23: Message enhancements (#31)
Closes #23 Reviewed-on: phoenix/textsender-models#31 Co-authored-by: phoenix <kundeng00@pm.me> Co-committed-by: phoenix <kundeng00@pm.me>
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Message struct {
|
type Message struct {
|
||||||
Id uuid.UUID `json:"id"`
|
Id *uuid.UUID `json:"id,omitempty"`
|
||||||
Content string `json:"content,omitempty"`
|
Content string `json:"content"`
|
||||||
UserId uuid.UUID `json:"user_id"`
|
UserId *uuid.UUID `json:"user_id,omitempty"`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user