mirror of
https://git.rwth-aachen.de/acs/public/villas/web-backend-go/
synced 2025-03-30 00:00:12 +01:00
Adds Request type in requests.go:
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.
This commit is contained in:
parent
1f4d4c1cf7
commit
487810f148
1 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
|||
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"`
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue