mirror of
https://github.com/pushbits/server.git
synced 2025-06-02 02:32:05 +02:00
Partially implement updates of models
This commit is contained in:
parent
6a77df8373
commit
d621333b6e
9 changed files with 158 additions and 19 deletions
|
@ -71,3 +71,11 @@ func (u *User) IntoExternalUser() *ExternalUser {
|
|||
type DeleteUser struct {
|
||||
ID uint `uri:"id"`
|
||||
}
|
||||
|
||||
// UpdateUser is used to process queries for updating users.
|
||||
type UpdateUser struct {
|
||||
ID uint `uri:"id" binding:"required"`
|
||||
Name string `json:"name"`
|
||||
IsAdmin bool `json:"is_admin"`
|
||||
MatrixID string `json:"matrix_id"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue