基础项目
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:
2026-04-26 15:32:21 +08:00
parent cc40d743cb
commit 1e33640629
102 changed files with 4088 additions and 197 deletions

View 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)
}