feat: Added ID field to PublicService DTO, update fields in Service model, fix CalculateUptimePercent method, transform services to Public services in goroutines
This commit is contained in:
@@ -3,8 +3,9 @@ package dto
|
||||
import "git.ostiwe.com/ostiwe-com/status/model"
|
||||
|
||||
type PublicService struct {
|
||||
ID int `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Description string `json:"description"`
|
||||
Description *string `json:"description"`
|
||||
Statuses []model.Status `json:"statuses"`
|
||||
Uptime float64 `json:"uptime"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user