Partially implement updates of models

This commit is contained in:
eikendev 2020-08-02 02:46:38 +02:00
parent 6a77df8373
commit d621333b6e
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694
9 changed files with 158 additions and 19 deletions

View file

@ -18,3 +18,9 @@ type CreateApplication struct {
type DeleteApplication struct {
ID uint `uri:"id"`
}
// UpdateApplication is used to process queries for updating applications.
type UpdateApplication struct {
ID uint `uri:"id" binding:"required"`
Name string `json:"name"`
}