id in json

This commit is contained in:
mr 2024-07-24 17:08:30 +02:00
parent 357d79e68b
commit 51e94e73e5

View File

@ -6,7 +6,7 @@ type Graph struct {
}
type GraphItem struct {
ID string `bson:"ID" json:"ID" validate:"required"`
ID string `bson:"id" json:"id" validate:"required"`
Width float64 `bson:"width" json:"width" validate:"required"`
Height float64 `bson:"height" json:"height" validate:"required"`
Position Position `bson:"position" json:"position" validate:"required"`