read_count.go 1.1 KB

123456789101112131415161718192021222324
  1. package autocode
  2. import (
  3. "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
  4. "github.com/flipped-aurora/gin-vue-admin/server/middleware"
  5. "github.com/gin-gonic/gin"
  6. )
  7. type ReadCountRouter struct {
  8. }
  9. // InitReadCountRouter 初始化 ReadCount 路由信息
  10. func (s *ReadCountRouter) InitReadCountRouter(Router *gin.RouterGroup) {
  11. readCountRouter := Router.Group("readCount").Use(middleware.OperationRecord())
  12. var readCountApi = v1.ApiGroupApp.AutoCodeApiGroup.ReadCountApi
  13. {
  14. readCountRouter.POST("createReadCount", readCountApi.CreateReadCount) // 新建ReadCount
  15. readCountRouter.DELETE("deleteReadCount", readCountApi.DeleteReadCount) // 删除ReadCount
  16. readCountRouter.DELETE("deleteReadCountByIds", readCountApi.DeleteReadCountByIds) // 批量删除ReadCount
  17. readCountRouter.PUT("updateReadCount", readCountApi.UpdateReadCount) // 更新ReadCount
  18. readCountRouter.GET("findReadCount", readCountApi.FindReadCount) // 根据ID获取ReadCount
  19. readCountRouter.GET("getReadCountList", readCountApi.GetReadCountList) // 获取ReadCount列表
  20. }
  21. }