/src/main/java/wang/lovedota/blog/service/impl/UserServiceImpl.java
Java | 36 lines | 10 code | 5 blank | 21 comment | 0 complexity | 48135162432aba3e83a704d69f1015d1 MD5 | raw file
- package wang.lovedota.blog.service.impl;
- import com.alibaba.fastjson.JSON;
- import wang.lovedota.blog.model.group.UserGroup;
- import wang.lovedota.blog.model.user.User;
- import wang.lovedota.blog.service.UserService;
- public class UserServiceImpl implements UserService {
- @Override
- public void test() {
- /* UserGroup group = new UserGroup();
- group.setId(0L);
- group.setName("admin");
- User guestUser = new User();
- guestUser.setId(2L);
- guestUser.setName("guest");
- guestUser.setAge(11);
- User rootUser = new User();
- rootUser.setId(3L);
- rootUser.setName("root");
- rootUser.setAge(11);
-
- group.add(guestUser);
- group.add(rootUser);
- String jsonString = JSON.toJSONString(group);
- System.out.println(jsonString);
- */
- }
- }