add message_bus service dependency (#25)

This commit is contained in:
link
2022-12-01 17:17:44 +08:00
committed by GitHub
parent f6ad3aa89a
commit 98a35cb107
5 changed files with 102 additions and 37 deletions
+4
View File
@@ -18,3 +18,7 @@ func (s *UserService) GetEvents(ctx echo.Context, params codegen.GetEventsParams
list := service.MyService.Event().GetEvents()
return ctx.JSON(http.StatusOK, list)
}
func (s *UserService) DeleteEventBySerial(ctx echo.Context, serial codegen.Serial) error {
service.MyService.Event().DeleteEventBySerial(serial)
return ctx.JSON(http.StatusOK, serial)
}