package router
|
|
import (
|
v1 "aps_crm/api/v1"
|
"github.com/gin-gonic/gin"
|
)
|
|
type CountryRouter struct{}
|
|
func (s *CountryRouter) InitCountryRouter(router *gin.RouterGroup) {
|
countryRouter := router.Group("country")
|
//countryRouterWithoutRecord := router.Group("country")
|
countryApi := v1.ApiGroup.CountryApi
|
{
|
countryRouter.POST("add", countryApi.Add) // 添加国家
|
countryRouter.DELETE("delete", countryApi.Delete) // 删除国家
|
countryRouter.PUT("update", countryApi.Update) // 更新国家
|
countryRouter.GET("list", countryApi.List) // 获取国家列表
|
}
|
}
|