Skip to content

Commit

Permalink
update bus
Browse files Browse the repository at this point in the history
  • Loading branch information
andReyM228 committed Feb 16, 2024
1 parent 744f339 commit 5a92747
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
16 changes: 16 additions & 0 deletions bus/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,20 @@ type (
ID int64 `json:"id"`
Token string `json:"token"`
}

IssueRequest struct {
ToAddress string `json:"to_address" validate:"required"`
Amount int64 `json:"amount" validate:"required"`
Memo string `json:"memo" validate:"required"`
}

WithdrawRequest struct {
ToAddress string `json:"to_address" validate:"required"`
Amount int64 `json:"amount" validate:"required"`
Memo string `json:"memo" validate:"required"`
}

TxResponse struct {
TxHash string `json:"tx_hash"`
}
)
5 changes: 3 additions & 2 deletions bus/topics.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const (
)

const (
//tx-service

//tx-service
SubjectTxServiceIssue = "subject.tx.service.issue"
SubjectTxServiceWithdraw = "subject.tx.service.withdraw"
)

0 comments on commit 5a92747

Please sign in to comment.