up
This commit is contained in:
@@ -328,14 +328,17 @@ func (c *User2Controller) QueryMyDeliveryAddress() {
|
||||
// @Title 得到用户指定门店的购物车信息
|
||||
// @Description 得到用户指定门店的购物车信息
|
||||
// @Param token header string true "认证token"
|
||||
// @Param storeID query int true "门店ID"
|
||||
// @Param storeIDs query string true "门店ID"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /LoadMyCart [get]
|
||||
func (c *User2Controller) LoadMyCart() {
|
||||
c.callLoadMyCart(func(params *tUser2LoadMyCartParams) (retVal interface{}, errCode string, err error) {
|
||||
_, userID := params.Ctx.GetMobileAndUserID()
|
||||
retVal, err = cms.LoadUserCart(params.Ctx, userID, params.StoreID)
|
||||
var storeIDs []int
|
||||
if err = jxutils.Strings2Objs(params.StoreIDs, &storeIDs); err == nil {
|
||||
retVal, err = cms.LoadUserCart(params.Ctx, userID, storeIDs)
|
||||
}
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
@@ -344,7 +347,7 @@ func (c *User2Controller) LoadMyCart() {
|
||||
// @Description 存储用户指定门店的购物车信息
|
||||
// @Param token header string true "认证token"
|
||||
// @Param storeID formData int true "门店ID"
|
||||
// @Param payload formData string true "完整的购物车商品列表"
|
||||
// @Param payload formData string false "完整的购物车商品列表"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /SaveMyCart [post]
|
||||
|
||||
Reference in New Issue
Block a user