Skip to content

Commit

Permalink
Add Port to response
Browse files Browse the repository at this point in the history
  • Loading branch information
proelbtn committed Jan 18, 2025
1 parent a175a7d commit adb5ff5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vmdb-api/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ type problemEnvironmentResponse struct {
ID uuid.UUID `json:"id"`
InnerStatus *string `json:"inner_status"`
Host string `json:"host"`
Port uint16 `json:"port"`
ProblemID uuid.UUID `json:"problem_id"`
TeamID uuid.UUID `json:"team_id"`
Name string `json:"name"`
Expand All @@ -78,6 +79,7 @@ func newProblemEnvironmentResponseFrom(problemEnvironment ProblemEnvironment, la
ID: problemEnvironment.ID,
InnerStatus: problemEnvironment.InnerStatus,
Host: problemEnvironment.Host,
Port: problemEnvironment.Port,
ProblemID: problemEnvironment.ProblemID,
TeamID: problemEnvironment.TeamID,
Name: problemEnvironment.Name,
Expand Down

0 comments on commit adb5ff5

Please sign in to comment.