PageRenderTime 893ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/src/main/java/wang/lovedota/blog/service/impl/UserServiceImpl.java

https://gitlab.com/justCallMeLin2/blog
Java | 36 lines | 10 code | 5 blank | 21 comment | 0 complexity | 48135162432aba3e83a704d69f1015d1 MD5 | raw file
  1. package wang.lovedota.blog.service.impl;
  2. import com.alibaba.fastjson.JSON;
  3. import wang.lovedota.blog.model.group.UserGroup;
  4. import wang.lovedota.blog.model.user.User;
  5. import wang.lovedota.blog.service.UserService;
  6. public class UserServiceImpl implements UserService {
  7. @Override
  8. public void test() {
  9. /* UserGroup group = new UserGroup();
  10. group.setId(0L);
  11. group.setName("admin");
  12. User guestUser = new User();
  13. guestUser.setId(2L);
  14. guestUser.setName("guest");
  15. guestUser.setAge(11);
  16. User rootUser = new User();
  17. rootUser.setId(3L);
  18. rootUser.setName("root");
  19. rootUser.setAge(11);
  20. group.add(guestUser);
  21. group.add(rootUser);
  22. String jsonString = JSON.toJSONString(group);
  23. System.out.println(jsonString);
  24. */
  25. }
  26. }