@Test public void testDeleteShare() throws Exception { Share s = new Share(); s.setId(1l); boolean b = shareService.deleteShare(s.getId()); Assert.assertTrue(b); }
@Override public boolean deleteShare(Long shareid) { Share share = new Share(); share.setId(shareid); return shareMapper.delete(share) > 0; }
ShareServiceImpl implements IShareService { @Override public boolean deleteShare(Long shareid) { Share share = new Share(); share.setId(shareid); return shareMapper.delete(share) > 0; } }
ShareServiceImpl implements IShareService { @Override public boolean deleteShare(Long shareid) { Share share = new Share(); share.setId(shareid); return shareMapper.delete(share) > 0; }  }
ShareServiceImpl implements IShareService { @Override public boolean deleteShare(Long shareid) { Share share = new Share(); share.setId(shareid); return shareMapper.delete(share) > 0; }  @Override String getUpToken(String suffix); @Override String uploadToQiniu(MultipartFile file); @Override String getUpToken(); @Override boolean isReady(); @Override Share getShare(Long shareId); @Override boolean addShare(Long accountId, Long commId, String desc, List<MultipartFile> imgs); @Override boolean deleteShare(Long shareid); @Override List<Share> selectShare(Long accountid, Long lastshareid, Integer tag); @Override boolean friendsShare(Long account); @Override List<Map<String, Object>> selectByUserAccountId(Long accountId, Long lastCommId); @Override List<Map<String, Object>> selectAll(Long lastCommId); @Override List<Map<String, Object>> selectByCommId(Long commId, Long lastCommId); List<String> imgUrl(Share s); }
ShareServiceImpl implements IShareService { @Override public boolean deleteShare(Long shareid) { Share share = new Share(); share.setId(shareid); return shareMapper.delete(share) > 0; }  @Override String getUpToken(String suffix); @Override String uploadToQiniu(MultipartFile file); @Override String getUpToken(); @Override boolean isReady(); @Override Share getShare(Long shareId); @Override boolean addShare(Long accountId, Long commId, String desc, List<MultipartFile> imgs); @Override boolean deleteShare(Long shareid); @Override List<Share> selectShare(Long accountid, Long lastshareid, Integer tag); @Override boolean friendsShare(Long account); @Override List<Map<String, Object>> selectByUserAccountId(Long accountId, Long lastCommId); @Override List<Map<String, Object>> selectAll(Long lastCommId); @Override List<Map<String, Object>> selectByCommId(Long commId, Long lastCommId); List<String> imgUrl(Share s);  }