Skip to content

Commit

Permalink
feat: 디렉토리 구조 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
barabobBOB committed Oct 4, 2023
1 parent 0bc3b6d commit 776d06a
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package handler
package post

import (
"errors"
Expand All @@ -9,7 +9,7 @@ import (
"server/pkg/post"
)

// @Summary Add a new post
// AddPost @Summary Add a new post
// @Description Add a new post to the database
// @Tags posts
// @Accept json
Expand Down Expand Up @@ -44,7 +44,7 @@ func AddPost(service post.Service) fiber.Handler {
}
}

// @Summary Update an existing post
// UpdatePost @Summary Update an existing post
// @Description Update post details in the database
// @Tags posts
// @Accept json
Expand All @@ -71,7 +71,7 @@ func UpdatePost(service post.Service) fiber.Handler {
}
}

// @Summary Remove a post
// RemovePost @Summary Remove a post
// @Description Remove a post from the database based on its ID
// @Tags posts
// @Accept json
Expand Down Expand Up @@ -103,7 +103,7 @@ func RemovePost(service post.Service) fiber.Handler {
}
}

// @Summary Get all posts
// GetPosts @Summary Get all posts
// @Description Get all posts from the database
// @Tags posts
// @Produce json
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package handler
package post

import (
"bytes"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package handler
package sight

import (
"errors"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package handler
package user

import (
"errors"
Expand Down
2 changes: 1 addition & 1 deletion backend/server/api/routes/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package routes

import (
"github.com/gofiber/fiber/v2"
handler "server/api/handlers"
handler "server/api/handlers/post"
"server/pkg/post"
)

Expand Down
2 changes: 1 addition & 1 deletion backend/server/api/routes/sight.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package routes

import (
"github.com/gofiber/fiber/v2"
handler "server/api/handlers"
handler "server/api/handlers/sight"
"server/pkg/sight"
)

Expand Down
2 changes: 1 addition & 1 deletion backend/server/api/routes/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package routes

import (
"github.com/gofiber/fiber/v2"
handler "server/api/handlers"
handler "server/api/handlers/user"
"server/pkg/user"
)

Expand Down

0 comments on commit 776d06a

Please sign in to comment.