Commit 51a75a80 authored by Quxl's avatar Quxl

x

parent 3efd064f
......@@ -12,6 +12,7 @@ import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.alibaba.fastjson.JSONObject;
import com.egolm.common.bean.Rjx;
import com.egolm.shop.service.CartService;
import io.swagger.annotations.Api;
......@@ -27,6 +28,22 @@ public class CartController {
@Autowired
private CartService cartService;
@ApiOperation("购物车商品种类数量")
@ApiImplicitParams({
@ApiImplicitParam(paramType = "query", name = "orgNo", dataType = "String", required = true),
@ApiImplicitParam(paramType = "query", name="shopNo", dataType = "String", required = true, value = "店铺编号", defaultValue = ""),
@ApiImplicitParam(paramType = "query", name = "terminal", dataType = "String", required = false, value = "终端标识", defaultValue = "wechat"),
@ApiImplicitParam(paramType = "query", name = "langID", dataType = "String", required = false, value = "语言", defaultValue = "936"),
@ApiImplicitParam(paramType = "query", name = "sign", dataType = "String", required = true, value = "签名", defaultValue = ""),
@ApiImplicitParam(paramType = "query", name = "timestamp", dataType = "String", required = true, value = "时间戳", defaultValue = "")
})
@RequestMapping(value = "/getCartCount",method=RequestMethod.GET)
public String cartQuery(String orgNo, String shopNo) {
Integer count = cartService.count(orgNo, shopNo);
return Rjx.jsonOk().set("count", count).toJson();
}
@ApiOperation("购物车信息")
@ApiImplicitParams({
......
......@@ -13,4 +13,6 @@ public interface CartService {
public String updateQty (JSONObject obj,String terminal);
public String query (Map<String,Object> params);
public Integer count(String orgNo, String shopNO);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment