This commit is contained in:
aozhiwei 2024-11-11 16:59:25 +08:00
parent debf0c7def
commit 1d26b220ea
2 changed files with 6 additions and 0 deletions

View File

@ -32,3 +32,6 @@ func (this *ShopApi) Goods(c *gin.Context) {
})
c.JSON(200, rspObj)
}
func (this *ShopApi) Buy(c *gin.Context) {
}

View File

@ -13,4 +13,7 @@ func (this *ShopRouter) InitRouter() {
f5.GetApp().GetGinEngine().GET("/api/v1/shop/goods",
middleware.JwtAuth,
api.ShopApi.Goods)
f5.GetApp().GetGinEngine().POST("/api/v1/shop/buy",
middleware.JwtAuth,
api.ShopApi.Buy)
}