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.
96 lines
1.6 KiB
96 lines
1.6 KiB
package service;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
import model.Classify;
|
|
import model.PageBean;
|
|
import model.Goods;
|
|
import model.User;
|
|
//import model.UserAdmin;
|
|
|
|
public interface IUserService {
|
|
|
|
/**
|
|
* 发布供求信息
|
|
* @param product
|
|
*/
|
|
void saveGood(Goods good);
|
|
|
|
/**
|
|
* 查询分类列表
|
|
* @return
|
|
*/
|
|
List<Classify> searchClassifyList();
|
|
|
|
/**
|
|
* 查询商品
|
|
* @param map
|
|
* @return
|
|
*/
|
|
PageBean<Goods> searchLostGoodList(Map<Object, String> map);
|
|
PageBean<Goods> searchFoundGoodList(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 map
|
|
* @return
|
|
*/
|
|
PageBean<Goods> searchMyLostGoodByPage(Map<Object, String> map);
|
|
PageBean<Goods> searchMyFoundGoodByPage(Map<Object, String> map);
|
|
|
|
|
|
/**
|
|
* <p>Description: 删除我发布的商品</p>
|
|
* @param pid
|
|
*/
|
|
void delectGoodById(int pid);
|
|
|
|
|
|
/**
|
|
* 保存用户消息
|
|
* @param uaa
|
|
*/
|
|
//void saveUserMessage(UserAdmin uaa);
|
|
|
|
/**
|
|
* 分页消息
|
|
* @throws Exception
|
|
* @param flag 0系统消息,1用户消息
|
|
*/
|
|
//PageBean<UserAdmin> searchMessageByPage(Map<Object, String> map);
|
|
|
|
/**
|
|
* 通过id删除消息
|
|
* @param parseInt
|
|
*/
|
|
void deleteMessage(int id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|