feat: Add authentication DTOs and setup API routes for user and activity management

This commit is contained in:
2025-03-10 21:02:41 +00:00
parent aa5c7e77fc
commit 558ee70c21
10 changed files with 1043 additions and 17 deletions
+8 -1
View File
@@ -1,6 +1,13 @@
package dto
type AuthDto struct {
// LoginDto represents the login request
type LoginDto struct {
Email string `json:"email"`
Password string `json:"password"`
}
// TokenDto represents the response after successful authentication
type TokenDto struct {
Token string `json:"token"`
User UserDto `json:"user"`
}