mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00

This struct will be the basis every possible request. For now it contains only the fields of the User request. The idea is that it will containt every possible field of any model together with the `omitempty` flag so we can marshal only the initialized fields. This will deprecate all the ResponseMsg* types that were actually used for requests.
10 lines
251 B
Go
10 lines
251 B
Go
package common
|
|
|
|
type KeyModels map[string]interface{}
|
|
|
|
type Request struct {
|
|
Username string `json:"username,omitemtpy"`
|
|
Password string `json:"password,omitempty"`
|
|
Mail string `json:"mail,omitempty"`
|
|
Role string `json:"role,omitempty"`
|
|
}
|