-
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 #3 from Imomali1/Imomali/refactor
minor fixes
- Loading branch information
Showing
3 changed files
with
21 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
package models | ||
|
||
type RegisterRequest struct { | ||
Id int `json:"-"` | ||
Firstname string `json:"firstname"` | ||
Lastname string `json:"lastname"` | ||
Username string `json:"username"` | ||
Email string `json:"email"` | ||
Password string `json:"password"` | ||
} | ||
|
||
type RegisterResponse struct { | ||
Message string `json:"message"` | ||
} | ||
|
||
type LoginRequest struct { | ||
Email string `json:"email"` | ||
Password string `json:"password"` | ||
} | ||
|
||
type LoginResponse struct { | ||
Token string `json:"token"` | ||
ExpiresAt int `json:"expires_at"` | ||
} | ||
|
||
type LogoutRequest struct { | ||
} | ||
|
||
type LogoutResponse struct { | ||
} | ||
} |
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