xiaomiShop/src/com/qf/service/CartService.java
2022-11-28 14:43:56 +08:00

51 lines
1.2 KiB
Java

package com.qf.service;
import com.qf.entity.Cart;
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import java.util.List;
/**
* @author 小灰灰呀
*/
public interface CartService {
/**
* @param uid
* @param pid
* @throws SQLException
* @throws InvocationTargetException
* @throws IllegalAccessException
*/
void createCart(int uid, String pid) throws SQLException, InvocationTargetException, IllegalAccessException;
/**
* @param uid
* @return
* @throws SQLException
* @throws InvocationTargetException
* @throws IllegalAccessException
*/
List<Cart> findAll(int uid) throws SQLException, InvocationTargetException, IllegalAccessException;
/**
* @param cid
* @throws SQLException
*/
void deleteCartByCid(String cid) throws SQLException;
/**
* @param cid
* @param price
* @param cnum
* @throws SQLException
*/
void updateCartByCid(String cid, String price, String cnum) throws SQLException;
/**
* @param uid
* @throws SQLException
*/
void clearCartByUid(String uid) throws SQLException;
}