Skip to content

Commit

Permalink
feat(ioctl): upgrade ws apis (#4021)
Browse files Browse the repository at this point in the history
  • Loading branch information
saitofun authored Jan 2, 2024
1 parent c563333 commit 40da6e9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions ioctl/cmd/ws/wsmessage.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ type sendMessageRsp struct {
MessageID string `json:"messageID"`
}

type stateLog struct {
State string `json:"state"`
Time time.Time `json:"time"`
Comment string `json:"comment"`
}

type queryMessageRsp struct {
MessageID string `json:"messageID"`
States []struct {
State string `json:"state"`
Time time.Time `json:"time"`
Description string `json:"description"`
} `json:"states"`
MessageID string `json:"messageID"`
States []*stateLog `json:"states"`
}

0 comments on commit 40da6e9

Please sign in to comment.