Esempio n. 1
0
 @Test
 public void testQueryTagsByExample() {
   Tag tag = new Tag();
   tag.setName("linux");
   List<Tag> tags = tagService.queryTagsByExample(tag);
   System.out.println(JSON.toJSONString(tags, true));
 }
Esempio n. 2
0
 @Test
 public void testInsertTag() {
   Tag tag = new Tag();
   tag.setName("linux");
   tag.setStatus(1);
   tag.setCreateTime(System.currentTimeMillis());
   tag = tagService.insertTag(tag);
   System.out.println(JSON.toJSONString(tag, true));
 }