forked from mtusi2026/mtusi2026lab5
22 lines
557 B
Go
22 lines
557 B
Go
package dto
|
|
|
|
type CreateUserRequest struct {
|
|
Username string `json:"username"`
|
|
DisplayName string `json:"display_name"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type UserResponse struct {
|
|
ID string `json:"id"`
|
|
Username string `json:"username"`
|
|
DisplayName string `json:"display_name"`
|
|
CreatedAt Timestamp `json:"created_at"`
|
|
}
|
|
|
|
type SessionResponse struct {
|
|
Token string `json:"token"`
|
|
TokenType string `json:"token_type"`
|
|
ExpiresAt Timestamp `json:"expires_at"`
|
|
User UserResponse `json:"user"`
|
|
}
|