Browse Source

add tag to project link in endpoints for listing requirements.

master
Gisle Aune 1 year ago
parent
commit
9ea7cf8ca4
  1. 8
      usecases/projects/result.go

8
usecases/projects/result.go

@ -74,9 +74,10 @@ type RequirementResult struct {
}
type RequirementResultProject struct {
ID int `json:"id"`
ScopeID int `json:"scopeId"`
Name string `json:"name"`
ID int `json:"id"`
ScopeID int `json:"scopeId"`
Name string `json:"name"`
Tags []string `json:"tags"`
}
func (r *RequirementResult) Stat(id int) *RequirementResultStat {
@ -300,6 +301,7 @@ func generateRequirementResult(req entities.Requirement, scope scopes.Result, re
ID: project.ID,
ScopeID: project.ScopeID,
Name: project.Name,
Tags: project.Tags,
}
break

Loading…
Cancel
Save