Refactor based on goreportcard.com

This commit is contained in:
Matej Kramny
2015-03-20 20:40:16 +01:00
parent 8e17ebceef
commit 3d0b0c88e1
7 changed files with 55 additions and 38 deletions

View File

@@ -4,15 +4,16 @@ import (
"time"
)
// Cachet component model
type Component struct {
Id int `json:"id"`
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Status int `json:"status"`
Link *string `json:"link"`
Order *int `json:"order"`
Group_id *int `json:"group_id"`
Created_at *time.Time `json:"created_at"`
Updated_at *time.Time `json:"updated_at"`
Deleted_at *time.Time `json:"deleted_at"`
GroupId *int `json:"group_id"`
CreatedAt *time.Time `json:"created_at"`
UpdatedAt *time.Time `json:"updated_at"`
DeletedAt *time.Time `json:"deleted_at"`
}