Files
projet_gestion_commande/backend/gestion/models/update_profile.go
T
2026-03-27 22:23:46 +01:00

26 lines
880 B
Go

package models
type UpdateClientProfileRequest struct {
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"` // Optionnel
Nom string `json:"nom,omitempty"`
Prenom string `json:"prenom,omitempty"`
Telephone string `json:"telephone,omitempty"`
}
type UpdateUserProfileRequest struct {
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"` // Optionnel
Role string `json:"role,omitempty"`
}
type AdminUpdateClientRequest struct {
Username string `json:"username,omitempty"`
Password string `json:"password,omitempty"` // Optionnel
Nom string `json:"nom,omitempty"`
Prenom string `json:"prenom,omitempty"`
Telephone string `json:"telephone,omitempty"`
Command *int `json:"command,omitempty"`
Amende *float64 `json:"amende,omitempty"`
}