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