1
This commit is contained in:
parent
3546e02361
commit
8055191421
2
server/marketserver/cache/cachemgr.go
vendored
2
server/marketserver/cache/cachemgr.go
vendored
@ -30,7 +30,7 @@ func (this *cacheMgr) GetNfts(nfts []*common.NftDto) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.batchGetNfts(missNfts)
|
//this.batchGetNfts(missNfts)
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, val := range nfts {
|
for _, val := range nfts {
|
||||||
|
@ -3,6 +3,7 @@ package shopcart
|
|||||||
import (
|
import (
|
||||||
"f5"
|
"f5"
|
||||||
"main/api/v1"
|
"main/api/v1"
|
||||||
|
"main/middleware"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ShopCartRouter struct{}
|
type ShopCartRouter struct{}
|
||||||
@ -10,6 +11,7 @@ type ShopCartRouter struct{}
|
|||||||
func (this *ShopCartRouter) InitRouter() {
|
func (this *ShopCartRouter) InitRouter() {
|
||||||
api := v1.ApiGroupApp.ShopCartApiGroup
|
api := v1.ApiGroupApp.ShopCartApiGroup
|
||||||
shopCartGroup := f5.GetApp().GetGinEngine().Group("/api/shopcart")
|
shopCartGroup := f5.GetApp().GetGinEngine().Group("/api/shopcart")
|
||||||
|
shopCartGroup.Use(middleware.JwtAuth)
|
||||||
shopCartGroup.GET("/list", api.ShopCartApi.List)
|
shopCartGroup.GET("/list", api.ShopCartApi.List)
|
||||||
shopCartGroup.POST("/add", api.ShopCartApi.Add)
|
shopCartGroup.POST("/add", api.ShopCartApi.Add)
|
||||||
shopCartGroup.POST("/del", api.ShopCartApi.Del)
|
shopCartGroup.POST("/del", api.ShopCartApi.Del)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user