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.
20 lines
710 B
20 lines
710 B
package global
|
|
|
|
import (
|
|
"shop-api/api/customer"
|
|
"shop-api/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("payment-methods", customer.PaymentMethod) // 支付方式
|
|
}
|
|
}
|
|
|