package dao; import java.util.List; import java.util.Map; import model.Classify; import model.Goods; import model.User; //import model.UserAdmin; public interface IUserDao { /** * 发布供求信息 * @param product */ void saveGood(Goods good); /** * 查询分类列表 * @return */ List searchClassifyList(); /** * 查询商品 * @param map * @return */ List searchLostGoodList(Map map); List searchFoundGoodList(Map map); /** * 查询商品数量 * @param map * @return */ int searchLostGoodCount(Map map); int searchFoundGoodCount(Map map); /** * 查询商品详情 * @param id * @return */ Goods getLostGoodDetail(String id); Goods getFoundGoodDetail(String id); /** * 通过分类id获取分类信息 * @param classifyId */ Classify getClassifyById(Integer classifyId); User getUserById(Integer creatorId); /*void updateProduct(Product product);*/ /** *

Description: 查询我发布的商品列表数量

* @param parseInt * @return */ int searchMyLostGoodCount(int parseInt); int searchMyFoundGoodCount(int parseInt); /** *

Description: 查询我发布的商品列表信息

* @param map * @return */ List getMyLostGoodList(Map map); List getMyFoundGoodList(Map map); /** *

Description: 删除我发布的商品

* @param pid */ void delectGoodById(int pid); /** *

Description: 保存用户消息

* @param map * @return */ // void saveUserMessage(UserAdmin uaa); /** *

Description: 保存用户消息数量

* @param map * @return */ // int searchMessageCount(int uid, String flag); /** *

Description: 保存用户消息

* @param map * @return */ // List getMessageList(Map map); /** * 通过id删除消息 */ void deleteMessage(int id); }