Merge "重新分配db任务"
diff --git a/src/main/java/database/DataManagerInterface.java b/src/main/java/database/DataManagerInterface.java
index fe60d6e..f8d0940 100644
--- a/src/main/java/database/DataManagerInterface.java
+++ b/src/main/java/database/DataManagerInterface.java
@@ -31,13 +31,16 @@
public int GetUserAvailableInviteTimes(String userid);//获取用户的剩余邀请次数
public int InviteUser(String inviterid,String inviteemail);//邀请用户,返回状态:0 success,1 重复,2其他原因
- public boolean AddBegSeed(BegInfo info);//添加一个新的求种信息,返回状态:0 success,1 重复,2其他原因
- public boolean UpdateBegSeed(BegInfo info);//更新一个求种信息,返回状态:0 success,1 重复,2其他原因
+ public boolean AddCollect(String userid,String postid);//添加一个收藏,返回状态:0 success,1 不存在,2其他原因
+ public boolean DeleteCollect(String userid,String postid);//删除一个收藏,返回状态:0 success,1 不存在,2其他原因
+
// ----------------------------------------------------------------------------------------------------
//DB2
+ public boolean AddBegSeed(BegInfo info);//添加一个新的求种信息,返回状态:0 success,1 重复,2其他原因
+ public boolean UpdateBegSeed(BegInfo info);//更新一个求种信息,返回状态:0 success,1 重复,2其他原因
public boolean DeleteBegSeed(String begid);//删除一个求种信息,返回状态:0 success,1 重复,2其他原因
public boolean VoteSeed(String begid,String userid,boolean vote);//投票,返回状态:0 success,1 重复,2其他原因,vote=true表示赞成,vote=false表示反对
public int SubmitSeed(String begid,Seed seed);//提交种子,返回状态:0 success,1 重复,2其他原因
@@ -50,8 +53,7 @@
public int AddComment(String postid,String comment);//添加一个评论,返回状态:0 success,1 不存在,2其他原因
public int DeleteComment(String postid,String commentid);//删除一个评论,返回状态:0 success,1 不存在,2其他原因
- public boolean AddCollect(String userid,String postid);//添加一个收藏,返回状态:0 success,1 不存在,2其他原因
- public boolean DeleteCollect(String userid,String postid);//删除一个收藏,返回状态:0 success,1 不存在,2其他原因
+
public boolean ExchangeMagicToUpload(String userid,int magic);//将魔力值兑换为上传量,返回状态:0 success,1 不存在,2其他原因
public boolean ExchangeMagicToDownload(String userid,int magic);//将魔力值兑换为下载量,返回状态:0 success,1 不存在,2其他原因