feat(rabbitmq): Add dto for messages
This commit is contained in:
5
modules/queue/dto/ping.go
Normal file
5
modules/queue/dto/ping.go
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
package dto
|
||||||
|
|
||||||
|
type PingMessage struct {
|
||||||
|
ServiceID int `json:"serviceID"`
|
||||||
|
}
|
||||||
6
modules/queue/dto/task.go
Normal file
6
modules/queue/dto/task.go
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
package dto
|
||||||
|
|
||||||
|
type TaskMessage struct {
|
||||||
|
Task string `json:"task"`
|
||||||
|
Payload string `json:"payload"`
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user