123456789101112131415161718 |
- package router
- import (
- "gin-vue-admin/controller/api"
- "gin-vue-admin/middleware"
- "github.com/gin-gonic/gin"
- )
- func InitCustomerRouter(Router *gin.RouterGroup) {
- ApiRouter := Router.Group("customer").Use(middleware.JWTAuth()).Use(middleware.CasbinHandler())
- {
- ApiRouter.POST("createExaCustomer", api.CreateExaCustomer)
- ApiRouter.POST("updataExaCustomer", api.UpdataExaCustomer)
- ApiRouter.POST("deleteExaCustomer", api.DeleteExaCustomer)
- ApiRouter.POST("getExaCustomer", api.GetExaCustomer)
- ApiRouter.POST("getExaCustomerList", api.GetExaCustomerList)
- }
- }
|