Implement changing of passwords

This commit is contained in:
eikendev 2020-08-02 14:45:24 +02:00
parent d621333b6e
commit e1cd2d2f8e
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
7 changed files with 46 additions and 22 deletions

View file

@ -14,13 +14,17 @@ type CreateApplication struct {
Name string `form:"name" query:"name" json:"name" binding:"required"`
}
type applicationIdentification struct {
ID uint `uri:"id" binding:"required"`
}
// DeleteApplication is used to process queries for deleting applications.
type DeleteApplication struct {
ID uint `uri:"id"`
applicationIdentification
}
// UpdateApplication is used to process queries for updating applications.
type UpdateApplication struct {
ID uint `uri:"id" binding:"required"`
applicationIdentification
Name string `json:"name"`
}