Private
Public Access
JIJO recupere el codigo dsps que de claude nukee mi repo LETS GOOO
This commit is contained in:
1 parent
a35539590a
commit
6c1bc50089
24 files changed
+1260
No files matched your search
@@ -0,0 +1,35 @@
|
||||
package dto
|
||||
|
||||
type LoginRequest struct {
|
||||
Email string `json:"email" binding:"required,email"`
|
||||
Password string `json:"password" binding:"required"`
|
||||
}
|
||||
|
||||
type RegisterRequest struct {
|
||||
Email string `json:"email" binding:"required,email"`
|
||||
Password string `json:"password" binding:"required,min=6"`
|
||||
Name string `json:"name" binding:"required"`
|
||||
}
|
||||
|
||||
type TokenResponse struct {
|
||||
AccessToken string `json:"access_token"`
|
||||
RefreshToken string `json:"refresh_token"`
|
||||
TokenType string `json:"token_type"`
|
||||
ExpiresIn int `json:"expires_in"`
|
||||
}
|
||||
|
||||
type RegisterResponse struct {
|
||||
ID uint `json:"id"`
|
||||
Email string `json:"email"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type MeResponse struct {
|
||||
ID uint `json:"id"`
|
||||
Email string `json:"email"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type RefreshRequest struct {
|
||||
RefreshToken string `json:"refresh_token" binding:"required"`
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package dto
|
||||
|
||||
type GrupoPermisoRequest struct {
|
||||
PermissionID uint `json:"permission_id"`
|
||||
}
|
||||
|
||||
type GrupoHijoRequest struct {
|
||||
ChildGroupID uint `json:"child_group_id"`
|
||||
}
|
||||
|
||||
type PermisosUsuarioResponse struct {
|
||||
Permissions []string `json:"permissions"`
|
||||
}
|
||||
|
||||
type GrupoInfo struct {
|
||||
ID uint `json:"id"`
|
||||
Name string `json:"nombre"`
|
||||
Permissions []string `json:"permisos"`
|
||||
}
|
||||
|
||||
type GruposYPermisosResponse struct {
|
||||
UserID uint `json:"user_id"`
|
||||
Email string `json:"email"`
|
||||
Groups []GrupoInfo `json:"groups"`
|
||||
}
|
||||
Reference in new issue
Block a user