✨ init project
This commit is contained in:
16
router/example/exa_attachment_category.go
Normal file
16
router/example/exa_attachment_category.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package example
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type AttachmentCategoryRouter struct{}
|
||||
|
||||
func (r *AttachmentCategoryRouter) InitAttachmentCategoryRouterRouter(Router *gin.RouterGroup) {
|
||||
router := Router.Group("attachmentCategory")
|
||||
{
|
||||
router.GET("getCategoryList", attachmentCategoryApi.GetCategoryList) // 分类列表
|
||||
router.POST("addCategory", attachmentCategoryApi.AddCategory) // 添加/编辑分类
|
||||
router.POST("deleteCategory", attachmentCategoryApi.DeleteCategory) // 删除分类
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user