新增用户注册/登录
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user