integrate api into frontend.
This commit is contained in:
@@ -5,7 +5,7 @@ import "time"
|
||||
type Item struct {
|
||||
ID int `json:"id"`
|
||||
ScopeID int `json:"scopeId"`
|
||||
OwnerID string `json:"-"`
|
||||
OwnerID string `json:"ownerId"`
|
||||
ProjectID *int `json:"projectId,omitempty"`
|
||||
ProjectRequirementID *int `json:"projectRequirementId,omitempty"`
|
||||
|
||||
|
||||
@@ -16,10 +16,10 @@ type Scope struct {
|
||||
ScopeEntry
|
||||
|
||||
DisplayName string `json:"displayName"`
|
||||
Members []ScopeMember `json:"members,omitempty"`
|
||||
Projects []ProjectEntry `json:"projects,omitempty"`
|
||||
Stats []Stat `json:"stats,omitempty"`
|
||||
StatusLabels map[Status]string `json:"statusLabels,omitempty"` // Not stored as part of scope, but may be in the future.
|
||||
Members []ScopeMember `json:"members"`
|
||||
Projects []ProjectEntry `json:"projects"`
|
||||
Stats []Stat `json:"stats"`
|
||||
StatusLabels map[Status]string `json:"statusLabels"` // Not stored as part of scope, but may be in the future.
|
||||
}
|
||||
|
||||
func (s *Scope) Member(id string) *ScopeMember {
|
||||
|
||||
Reference in New Issue
Block a user