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
634 B

package global
import (
"pure/api/global"
"github.com/gin-gonic/gin"
)
func InitGlobalRouter(Router *gin.RouterGroup) {
InOtherRouter := Router.Group("global")
{
InOtherRouter.GET("address", global.GetAddressList) //获取收货地址
InOtherRouter.POST("address", global.AddAddress) //添加收货地址
InOtherRouter.PUT("address", global.UpdateAddress) //修改收货地址
InOtherRouter.DELETE("address", global.DeleteAddress) //删除收货地址
InOtherRouter.GET("usSelect", global.GetUsSelect) //美国地区选择器
InOtherRouter.GET("track", global.GetTrack) //美国地区选择器
}
}