public interface CollectService
| 限定符和类型 | 方法和说明 |
|---|---|
BaseVO |
addCollect(int userid)
增加关注
|
BaseVO |
cancelCollect(int userid)
取消关注
|
void |
delete(Collect persistentInstance) |
List |
findAll() |
List<Collect> |
findByExample(Collect instance) |
Collect |
findById(Integer id) |
List<Collect> |
findByOthersid(Object othersid) |
List |
findByProperty(String propertyName,
Object value) |
List<Collect> |
findByUserid(Object userid) |
Collect |
findMyByOthersid(int othersid)
检索我是否已经关注过此人了。
|
void |
save(Collect transientInstance) |
void save(Collect transientInstance)
void delete(Collect persistentInstance)
List findAll()
BaseVO addCollect(int userid)
userid - 要关注的用户的idBaseVO 若成功,info返回关注成功的 collect.idCollect findMyByOthersid(int othersid)
othersid - 检索我是否关注过的人的userid