28 lines
999 B
Go
28 lines
999 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"`
|
|
Point *int `json:"point,omitempty"`
|
|
PointsZipette *int `json:"points_zipette,omitempty"`
|
|
Amende *float64 `json:"amende,omitempty"`
|
|
}
|