Private
Public Access
algunos refactors y arregle el tema de que no se eliminaban los
subgrupos
This commit is contained in:
1 parent
ab88be0ba5
commit
df2412f29a
25 files changed
+415
-261
No files matched your search
@@ -1,16 +1,5 @@
|
||||
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"`
|
||||
@@ -29,13 +18,3 @@ type MeResponse struct {
|
||||
Email string `json:"email"`
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type RefreshRequest struct {
|
||||
RefreshToken string `json:"refresh_token" binding:"required"`
|
||||
}
|
||||
|
||||
type CambiarContraseñaRequest struct {
|
||||
UserID uint `json:"user_id"`
|
||||
OldPassword string `json:"old_password"`
|
||||
NewPassword string `json:"new_password" binding:"required"`
|
||||
}
|
||||
+1
-17
@@ -1,12 +1,5 @@
|
||||
package dto
|
||||
|
||||
type GrupoPermisoRequest struct {
|
||||
PermisoID uint `json:"permission_id"`
|
||||
}
|
||||
|
||||
type GrupoHijoRequest struct {
|
||||
ChildGroupID uint `json:"child_group_id"`
|
||||
}
|
||||
type GrupoSimpleDTO struct {
|
||||
ID uint `json:"id"`
|
||||
Nombre string `json:"nombre"`
|
||||
@@ -23,15 +16,6 @@ type PermisosUsuarioResponse struct {
|
||||
}
|
||||
|
||||
type GruposYPermisosResponse struct {
|
||||
Email string `json:"email"`
|
||||
Email string `json:"email"`
|
||||
Groups []GrupoSimpleDTO `json:"groups"`
|
||||
}
|
||||
|
||||
type GrupoUsuarioRelacion struct {
|
||||
GrupoID uint `json:"grupo_id" binding:"required"`
|
||||
UsuarioID uint `json:"usuario_id" binding:"required"`
|
||||
}
|
||||
|
||||
type UsuarioIDRequest struct{
|
||||
UsuarioID uint `json:"usuario_id" binding:"required"`
|
||||
}
|
||||
Reference in new issue
Block a user