Skip to content

Commit

Permalink
feat(api): add field project_id
Browse files Browse the repository at this point in the history
  • Loading branch information
iseki-working committed Oct 23, 2023
1 parent 09b171d commit 92ee25c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions model/idea_output.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type PluginOutput struct {
ProjectScore int `json:"project_score"`
LicenseInfoMap map[string]LicenseItem `json:"license_info_map"`
Username string `json:"username"`
ProjectId string `json:"project_id"`
}

type PluginComp struct {
Expand Down Expand Up @@ -85,6 +86,7 @@ func GetIDEAOutput(task *ScanTask) PluginOutput {
},
TaskId: r.TaskId,
SubtaskId: r.SubtaskId,
ProjectId: r.ProjectId,
InspectErrors: nil,
DependenciesCount: r.RelyNum,
SurpassScore: r.SurpassScore,
Expand Down
2 changes: 1 addition & 1 deletion model/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
type ScanResultResponse struct {
Complete bool `json:"complete"`
SubtaskId string `json:"subtask_id"`
ProjectsId string `json:"projects_id"`
ProjectId string `json:"project_id"`
TeamId string `json:"team_id"`
TaskId string `json:"task_id"`
UserId string `json:"user_id"`
Expand Down

0 comments on commit 92ee25c

Please sign in to comment.