You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
310 B

package tag
import (
"github.com/gin-gonic/gin"
)
func Router(router *gin.Engine) {
// 定义路径和处理函数的匹配关系
group := router.Group("tag")
// 添加tag
group.POST("", Post)
// 删除tag
group.DELETE("", Delete)
// 更新tag
group.PUT("", Put)
// 查询tag
group.GET("", Get)
}