zhangqian
2023-10-13 13194e787d51e4ce07dfc35341d536fb5db7aaa3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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)        // 获取国家列表
    }
}