mirror of
https://github.com/pushbits/server.git
synced 2025-07-31 23:29:08 +02:00
Handle unbound members when binding request
This commit is contained in:
parent
9a65fb4356
commit
76c2fe9c22
4 changed files with 51 additions and 25 deletions
|
@ -69,8 +69,8 @@ func (u *User) IntoExternalUser() *ExternalUser {
|
|||
|
||||
// UpdateUser is used to process queries for updating users.
|
||||
type UpdateUser struct {
|
||||
Name string `json:"name"`
|
||||
Password string `json:"password"`
|
||||
IsAdmin bool `json:"is_admin"`
|
||||
MatrixID string `json:"matrix_id"`
|
||||
Name *string `json:"name"`
|
||||
Password *string `json:"password"`
|
||||
IsAdmin *bool `json:"is_admin"`
|
||||
MatrixID *string `json:"matrix_id"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue