VILLASweb-backend-go/common/requests.go
smavros 487810f148 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.
2019-08-13 19:15:31 +02:00

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"`
}