add logics

This commit is contained in:
Rogee
2024-11-29 19:23:35 +08:00
parent dd0b6dd6c1
commit 3d7ee40a7a
12 changed files with 166 additions and 49 deletions

View File

@@ -9,10 +9,5 @@ type Controller struct {
// List
func (c *Controller) List(ctx fiber.Ctx) error {
resp, err := c.svc.List(ctx.Context())
if err != nil {
return err
}
return ctx.JSON(resp)
return ctx.JSON(nil)
}