Swagger: Rename annotations model (#77605)

Currently, in the schema, it's a global definition called `ItemDTO`. It's hard to figure out what that is
Renaming it to `Annotation` should be more helpful
This commit is contained in:
Julien Duchesne
2023-11-03 18:32:06 -04:00
committed by GitHub
parent ffcaef9c17
commit c3962acf98
4 changed files with 234 additions and 317 deletions
+1
View File
@@ -87,6 +87,7 @@ func (i Item) TableName() string {
return "annotation"
}
// swagger:model Annotation
type ItemDTO struct {
ID int64 `json:"id" xorm:"id"`
AlertID int64 `json:"alertId" xorm:"alert_id"`