新增用户注册/登录

This commit is contained in:
2018-01-08 12:49:07 +08:00
parent 4c7a0d6e91
commit 84b81cf0ac
33 changed files with 1358 additions and 72 deletions

View File

@@ -1,9 +1,19 @@
package com.lxyer.service;
/**
import com.lxyer.model.Content; /**
* Created by JUECHENG at 2018/1/7 16:49.
*/
public class ContentService {
public static final ContentService me = new ContentService();
public void save(Content content, int userId) {
if (content.getContentId() == null) {
content.setCreateTime(System.currentTimeMillis());
content.setUserId(userId);
content.save();
}else {
content.update();
}
}
}