Skip to content

Commit adb5ff5

Browse files
committed
Add Port to response
1 parent a175a7d commit adb5ff5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vmdb-api/controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ type problemEnvironmentResponse struct {
5555
ID uuid.UUID `json:"id"`
5656
InnerStatus *string `json:"inner_status"`
5757
Host string `json:"host"`
58+
Port uint16 `json:"port"`
5859
ProblemID uuid.UUID `json:"problem_id"`
5960
TeamID uuid.UUID `json:"team_id"`
6061
Name string `json:"name"`
@@ -78,6 +79,7 @@ func newProblemEnvironmentResponseFrom(problemEnvironment ProblemEnvironment, la
7879
ID: problemEnvironment.ID,
7980
InnerStatus: problemEnvironment.InnerStatus,
8081
Host: problemEnvironment.Host,
82+
Port: problemEnvironment.Port,
8183
ProblemID: problemEnvironment.ProblemID,
8284
TeamID: problemEnvironment.TeamID,
8385
Name: problemEnvironment.Name,

0 commit comments

Comments
 (0)