mirror of
https://github.com/pushbits/server.git
synced 2025-06-13 16:12:01 +02:00
Implement deletion of applications
This commit is contained in:
parent
653e57fe03
commit
18d11677ac
7 changed files with 80 additions and 9 deletions
|
@ -5,6 +5,16 @@ type Application struct {
|
|||
ID uint `gorm:"AUTO_INCREMENT;primary_key" json:"id"`
|
||||
Token string `gorm:"type:string;size:64;unique" json:"token"`
|
||||
UserID uint `json:"-"`
|
||||
Name string `gorm:"type:string" form:"name" query:"name" json:"name" binding:"required"`
|
||||
MatrixID string `gorm:"type:string"`
|
||||
Name string `gorm:"type:string" json:"name"`
|
||||
MatrixID string `gorm:"type:string" json:"-"`
|
||||
}
|
||||
|
||||
// CreateApplication is used to process queries for creating applications.
|
||||
type CreateApplication struct {
|
||||
Name string `form:"name" query:"name" json:"name" binding:"required"`
|
||||
}
|
||||
|
||||
// DeleteApplication is used to process queries for deleting applications.
|
||||
type DeleteApplication struct {
|
||||
ID uint `uri:"id"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue