You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
112 lines
1.8 KiB
112 lines
1.8 KiB
package dao;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
import model.Classify;
|
|
import model.Product;
|
|
import model.User;
|
|
import model.UserAndAdmin;
|
|
|
|
public interface IUserDao {
|
|
|
|
/**
|
|
* 发布供求信息
|
|
* @param product
|
|
*/
|
|
void saveProduct(Product product);
|
|
|
|
/**
|
|
* 查询分类列表
|
|
* @return
|
|
*/
|
|
List<Classify> searchClassifyList();
|
|
|
|
/**
|
|
* 查询商品
|
|
* @param map
|
|
* @return
|
|
*/
|
|
List<Product> searchProductList(Map<Object, String> map);
|
|
|
|
/**
|
|
* 查询商品数量
|
|
* @param map
|
|
* @return
|
|
*/
|
|
int searchProductCount(Map<Object, String> map);
|
|
|
|
/**
|
|
* 查询商品详情
|
|
* @param id
|
|
* @return
|
|
*/
|
|
Product getProductDetail(String id);
|
|
|
|
|
|
/**
|
|
* 通过分类id获取分类信息
|
|
* @param classifyId
|
|
*/
|
|
Classify getClassifyById(Integer classifyId);
|
|
|
|
User getUserById(Integer creatorId);
|
|
|
|
void updateProduct(Product product);
|
|
|
|
|
|
/**
|
|
* <p>Description: 查询我发布的商品列表数量</p>
|
|
* @param parseInt
|
|
* @return
|
|
*/
|
|
int searchMyProductCount(int parseInt);
|
|
|
|
/**
|
|
* <p>Description: 查询我发布的商品列表信息</p>
|
|
* @param map
|
|
* @return
|
|
*/
|
|
List<Product> getMyProductList(Map<Object, String> map);
|
|
|
|
|
|
|
|
/**
|
|
* <p>Description: 删除我发布的商品</p>
|
|
* @param pid
|
|
*/
|
|
void delectProductById(int pid);
|
|
|
|
|
|
|
|
|
|
/**
|
|
* <p>Description: 保存用户消息</p>
|
|
* @param map
|
|
* @return
|
|
*/
|
|
void saveUserMessage(UserAndAdmin uaa);
|
|
|
|
/**
|
|
* <p>Description: 保存用户消息数量</p>
|
|
* @param map
|
|
* @return
|
|
*/
|
|
int searchMessageCount(int uid, String flag);
|
|
|
|
/**
|
|
* <p>Description: 保存用户消息</p>
|
|
* @param map
|
|
* @return
|
|
*/
|
|
List<UserAndAdmin> getMessageList(Map<Object, String> map);
|
|
|
|
/**
|
|
* 通过id删除消息
|
|
*/
|
|
void deleteMessage(int id);
|
|
|
|
|
|
|
|
}
|