diff --git a/modules/queue/dto/ping.go b/modules/queue/dto/ping.go new file mode 100644 index 0000000..373b436 --- /dev/null +++ b/modules/queue/dto/ping.go @@ -0,0 +1,5 @@ +package dto + +type PingMessage struct { + ServiceID int `json:"serviceID"` +} diff --git a/modules/queue/dto/task.go b/modules/queue/dto/task.go new file mode 100644 index 0000000..27a1902 --- /dev/null +++ b/modules/queue/dto/task.go @@ -0,0 +1,6 @@ +package dto + +type TaskMessage struct { + Task string `json:"task"` + Payload string `json:"payload"` +}