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
2.1 KiB
112 lines
2.1 KiB
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<Classify> searchClassifyList();
|
|
|
|
/**
|
|
* 查询商品
|
|
* @param map
|
|
* @return
|
|
*/
|
|
List<Goods> searchLostGoodList(Map<Object, String> map);
|
|
List<Goods> searchFoundGoodList(Map<Object, String> map);
|
|
/**
|
|
* 查询商品数量
|
|
* @param map
|
|
* @return
|
|
*/
|
|
int searchLostGoodCount(Map<Object, String> map);
|
|
int searchFoundGoodCount(Map<Object, String> 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);*/
|
|
|
|
|
|
/**
|
|
* <p>Description: 查询我发布的商品列表数量</p>
|
|
* @param parseInt
|
|
* @return
|
|
*/
|
|
int searchMyLostGoodCount(int parseInt);
|
|
int searchMyFoundGoodCount(int parseInt);
|
|
/**
|
|
* <p>Description: 查询我发布的商品列表信息</p>
|
|
* @param map
|
|
* @return
|
|
*/
|
|
List<Goods> getMyLostGoodList(Map<Object, String> map);
|
|
List<Goods> getMyFoundGoodList(Map<Object, String> map);
|
|
|
|
|
|
/**
|
|
* <p>Description: 删除我发布的商品</p>
|
|
* @param pid
|
|
*/
|
|
void delectGoodById(int pid);
|
|
|
|
|
|
|
|
|
|
/**
|
|
* <p>Description: 保存用户消息</p>
|
|
* @param map
|
|
* @return
|
|
*/
|
|
// void saveUserMessage(UserAdmin uaa);
|
|
|
|
/**
|
|
* <p>Description: 保存用户消息数量</p>
|
|
* @param map
|
|
* @return
|
|
*/
|
|
// int searchMessageCount(int uid, String flag);
|
|
|
|
/**
|
|
* <p>Description: 保存用户消息</p>
|
|
* @param map
|
|
* @return
|
|
*/
|
|
// List<UserAdmin> getMessageList(Map<Object, String> map);
|
|
|
|
/**
|
|
* 通过id删除消息
|
|
*/
|
|
void deleteMessage(int id);
|
|
|
|
|
|
|
|
}
|