123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- package com.caimei365.order.service;
- import com.caimei365.order.model.ResponseJson;
- import com.caimei365.order.model.dto.CartDto;
- import com.caimei365.order.model.dto.InvoiceDto;
- import com.caimei365.order.model.vo.InvoiceVo;
- import java.util.Map;
- /**
- * Description
- *
- * @author : Charles
- * @date : 2021/6/25
- */
- public interface CartClubService {
- /**
- * 购物车列表详细数据
- *
- * @param userId 用户Id
- * @param source 来源 : 1 网站 ; 2 小程序
- */
- ResponseJson<Map<String, Object>> getShoppingCartList(Integer userId, Integer source);
- /**
- * 网站顶部购物车数据
- *
- * @param userId 用户Id
- */
- ResponseJson<Map<String, Object>> getShoppingCartHead(Integer userId);
- /**
- * 添加购物车
- *
- * @param cartDto {
- * userId 用户ID
- * productId 商品id
- * productCount 商品数量
- * }
- */
- ResponseJson<Integer> addShoppingCart(CartDto cartDto);
- /**
- * 批量添加购物车
- *
- * @param cartDto {
- * userId 用户ID
- * productInfo 商品及数量信息:[ // 商品id,数量
- * {"productId": 2789, "productCount": 1},
- * {"productId": 2790, "productCount": 1}
- * ]
- * }
- */
- ResponseJson<Integer> addShoppingCartBulk(CartDto cartDto);
- /**
- * 更新购物车
- *
- * @param cartDto {
- * userId 用户ID
- * productId 商品id
- * productCount 商品数量
- * }
- */
- ResponseJson<Integer> updateShoppingCart(CartDto cartDto);
- /**
- * 删除购物车
- *
- * @param cartDto {
- * userId 用户ID
- * productIds 商品ids,逗号隔开
- * }
- */
- ResponseJson<Integer> deleteShoppingCart(CartDto cartDto);
- /**
- * 购物车结算
- *
- * @param userId 用户ID
- * @param skuIds skuIds,逗号隔开
- * @param source 来源 : 1 网站 ; 2 小程序
- */
- ResponseJson<Map<String, Object>> settlementShoppingCart(Integer userId, String skuIds, Integer source);
- /**
- * 立即购买
- *
- * @param cartDto {
- * userId 用户ID
- * productId 商品id
- * productCount 商品数量
- * source 来源 : 1 网站 ; 2 小程序
- * }
- */
- ResponseJson<Map<String, Object>> buyNowProduct(CartDto cartDto);
- /**
- * 获取结算商品运费
- *
- * @param userId 用户ID
- * @param productIds 商品ids,逗号隔开
- * @param townId 地区Id
- */
- ResponseJson<Map<String, Object>> getProductsPostage(Integer userId, String productIds, Integer townId);
- /**
- * 获取用户发票信息
- *
- * @param userId 用户Id
- */
- ResponseJson<InvoiceVo> getUserInvoice(Integer userId);
- /**
- * 更新用户发票
- *
- * @param invoiceDto {
- * userId:用户Id
- * id:id
- * invoiceTitle:单位名,发票抬头
- * corporationTaxNum: 企业税号、纳税人识别号
- * registeredAddress:注册地址
- * registeredPhone:注册电话
- * bankAccountNo:开户银行账户
- * openBank:开户银行
- * }
- */
- ResponseJson<Integer> updateUserInvoice(InvoiceDto invoiceDto);
- /**
- * 供应商优惠券
- *
- * @param userId 用户id
- * @param shopId 供应商id
- * @param source 来源 : 1 网站 ; 2 小程序
- * @param status 状态: 1未领取 2已领取
- */
- ResponseJson<Map<String, Object>> getShopCoupons(Integer userId, Integer shopId, Integer source, Integer status);
- /**
- * 获取机构购物车数量(商品种类数)
- *
- * @param userId 用户ID
- */
- ResponseJson<Integer> getUserCartCount(Integer userId);
- /**
- * 组合商品立即购买
- *
- * @param
- * @return
- */
- ResponseJson<Map<String, Object>> MultipleBuyNow(Integer userId, String productInfo, Integer source);
- ResponseJson checkSkuId(Integer userId, Integer oldSkuId, Integer newSkuId, Integer count);
- }
|