基础项目
Some checks failed
CI / init (pull_request) Has been cancelled
CI / Frontend node 18.16.0 (pull_request) Has been cancelled
CI / Backend go (1.22) (pull_request) Has been cancelled
CI / release-pr (pull_request) Has been cancelled
CI / devops-test (1.22, 18.16.0) (pull_request) Has been cancelled
CI / release-please (pull_request) Has been cancelled
CI / devops-prod (1.22, 18.x) (pull_request) Has been cancelled
CI / docker (pull_request) Has been cancelled
Some checks failed
CI / init (pull_request) Has been cancelled
CI / Frontend node 18.16.0 (pull_request) Has been cancelled
CI / Backend go (1.22) (pull_request) Has been cancelled
CI / release-pr (pull_request) Has been cancelled
CI / devops-test (1.22, 18.16.0) (pull_request) Has been cancelled
CI / release-please (pull_request) Has been cancelled
CI / devops-prod (1.22, 18.x) (pull_request) Has been cancelled
CI / docker (pull_request) Has been cancelled
This commit is contained in:
23
server/router/book/book.go
Normal file
23
server/router/book/book.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package book
|
||||
|
||||
import (
|
||||
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type BookRouter struct{}
|
||||
|
||||
func (r *BookRouter) InitBookRouter(Router *gin.RouterGroup) {
|
||||
bookRouter := Router.Group("book").Use(middleware.OperationRecord())
|
||||
bookRouterWithoutRecord := Router.Group("book")
|
||||
|
||||
registerBookRoutes(bookRouter, bookRouterWithoutRecord)
|
||||
registerBookAuthorRoutes(bookRouter, bookRouterWithoutRecord)
|
||||
registerBookAuthorRelationRoutes(bookRouter, bookRouterWithoutRecord)
|
||||
registerBookChapterRoutes(bookRouter, bookRouterWithoutRecord)
|
||||
registerBookCommentRoutes(bookRouter, bookRouterWithoutRecord)
|
||||
registerBookCommentLikeRecordRoutes(bookRouter, bookRouterWithoutRecord)
|
||||
registerBookFavoriteRecordRoutes(bookRouter, bookRouterWithoutRecord)
|
||||
registerBookReadRecordRoutes(bookRouter, bookRouterWithoutRecord)
|
||||
registerBookSeriesRoutes(bookRouter, bookRouterWithoutRecord)
|
||||
}
|
||||
Reference in New Issue
Block a user