exa_attachment_category.go 516 B

12345678910111213141516
  1. package example
  2. import (
  3. "github.com/gin-gonic/gin"
  4. )
  5. type AttachmentCategoryRouter struct{}
  6. func (r *AttachmentCategoryRouter) InitAttachmentCategoryRouterRouter(Router *gin.RouterGroup) {
  7. router := Router.Group("attachmentCategory")
  8. {
  9. router.GET("getCategoryList", attachmentCategoryApi.GetCategoryList) // 分类列表
  10. router.POST("addCategory", attachmentCategoryApi.AddCategory) // 添加/编辑分类
  11. router.POST("deleteCategory", attachmentCategoryApi.DeleteCategory) // 删除分类
  12. }
  13. }