You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

135 lines
6.7 KiB

using System;
using System.Collections.Generic;
using Sog;
using ProtoCSStruct;
using LitJson;
using SimpleHttpServer;
namespace Operation
{
public abstract class DBOperator
{
public abstract void Dispose();
public abstract void KeepAlive();
public abstract void DBDelAccount(string account, JsonData jsondata);
public abstract void DBLogin(string account, string passwd, JsonData builder);
public abstract void DBInsertBanUser(ref SSGMSetFreezeTimeRes res);
public abstract void DBSelectBanUser(int type, string startDate, string endDate, JsonData Jsondata);
public abstract void DBCheckAuth(string account, JsonData builder);
public abstract void DBDeleteNotice(JsonData Jsondata, string id, string noticeId);
public abstract void DBSendEmailCokie(JsonData Jsondata, HttpResponse rsp, HttpRequest request, HttpQueryParams query);
public abstract void DBChangeAuthority(string account, string jurisdiction, JsonData Jsondata);
public abstract bool DBSelectMailWithRule(int id, bool isDiscard, ref SSGetMailWithRuleRes res);
public abstract bool DBUpdateMailStatus(int newStatus, int id, string uuid);
public abstract int DBSelectMaxIdPlayerOp();
public abstract List<DBPlayerDataOp> DBSelectPlayOpData(long uid, long currentMaxId);
public abstract void DBInsertBanChat(ref SSEnableSendMsgRes res);
public abstract void DBNoticeBackgrounds(string language, ref SSNoticeBackGroundsRes res);
public abstract void DBDeleteNoticeBackgrounds(int id);
public abstract void DBSelectNoticeBackGrounds(string language, string id, JsonData Jsondata);
public abstract void DBUpdateNoticeBackGrounds(string language, string pic, int id, int state, string startTime, string endTime, JsonData Jsondata);
public abstract bool DBUpdateNoticeBackGroundsState(int id, int state);
public abstract void BanNotice(int noticeId, int state, JsonData Jsondata);
public abstract bool DBSelectNotice(int noticeId, JsonData Jsondata);
public abstract void DBUpdateNotice(Dictionary<string, string> from, byte[] dataByte, JsonData Jsondata);
public abstract void DBSelectUserName(string account, string user, string pageno, JsonData jsonData);
public abstract int DBUpdateUserName(string account, string user, string pass, string newPass, string jurisdiction, JsonData jsondata);
public abstract int DBDeleteUserName(string account, string user, JsonData jsondata);
public abstract int DBAddUserName(string account, string token, string user, string pass, string jurisdiction, JsonData jsondata);
public abstract int DBRecalledEmail(string uuid, string id,string table, JsonData Jsondata);
public abstract void DBSelectPlayerOp(int pageSize, int pageIndex, int type, string opUser, JsonData jsonData);
public abstract int DBSelectNotice(int page, int pageCount, int popUp, string noticeId, JsonData Jsondata);
public abstract int DBShowNoticeDayNotice(string noticeId, JsonData Jsondata);
public abstract int DBSelectNoticeLamp(string id, JsonData Jsondata);
public abstract int DBSendNoticeLamp(string strTriggerTime, string content, int showCount, int cycleTimeType, int showInterval, string Realmliststr, JsonData Jsondata);
public abstract string DBCheckJurisdiction(string account, JsonData Jsondata);
public abstract bool DBCheckEmailExist(JsonData Jsondata, MailJsonObj mailContent);
public abstract int DBInsertIntoMailBox(string _name, string title11, string content11, string realmlist11,
string herolist11, string language, string uuid, string curstr11, string itemstr11,
string timeLimit11, int isSendToAll, string equipStr, byte[] dataByte, string customItemStr);
public abstract void DBSelectEmail(string startDate, string endDate, int page, int pageCount, JsonData Jsondata);
public abstract int DBReviewEmail(string uuid, string id, int status,JsonData Jsondata);
public abstract int DBDeleteRefuseMail(string uuid, string id, JsonData Jsondata);
public abstract void DBSelectReviewEmail(string startDate, string endDate, int page, int pageCount, JsonData Jsondata);
public abstract bool DBInsertPlayerOp(long uid, int type, string opUser, int opId, int opType, int opNum, string uniqueId, int paramInt, string paramStr, JsonData jsonData);
//定时邮件
public abstract bool DBCheckEmailTempExist(JsonData Jsondata, MailJsonObj mailContent);
public abstract int DBInsertIntoMailBoxTemp(string _name, string title11, string content11, string realmlist11,
string herolist11, string language, string uuid, string curstr11, string itemstr11,
string timeLimit11, int isSendToAll, string equipStr, byte[] dataByte, string customItemStr);
public abstract int DBInsertIntoMailBoxTempReview(string _name, string title11, string content11, string realmlist11,
string herolist11, string language, string uuid, string curstr11, string itemstr11,
string timeLimit11, int isSendToAll, string equipStr, byte[] dataByte, string customItemStr);
//道具价值
public abstract int DbInsertItemCost(JsonData builder,int itemId, float cn,float kr,float jp,float en );
public abstract int DbSelectItemCostAll(JsonData builder);
public abstract int DbDeleteItemCost(JsonData builder ,int itemId);
//内部福利
public abstract int DbInsertPayment(JsonData builder, string opName, string owner, string realm, string dep, int uid, string itemIds, int num);
public abstract int DbSelectPaymentAll(JsonData builder,RepeatedFixedStructString128_10 param);
// public abstract int DbSelectPayment(JsonData builder, int uid,int itemId);
//public abstract int DbDeletePayment(JsonData builder ,int itemId);
public abstract int InsertOperationLog(string account, string method, string url, byte[] data);
public abstract int SelectOperationLog(JsonData payload, int pageIndex, int pageSize, string account, string method, string url, string start, string end);
public abstract int SelectAccount(JsonData builder, string account);
public abstract void CreateAccount(JsonData builder, string account, string name,string password);
public abstract int InsertPreset(int id,string account, string realms, string items, string start, string end);
public abstract int DeletePreSet(long id);
public abstract JsonData FindAllPreset(long id);
public abstract PresetData OnGetPresetWithRule(int reqVersion);
}
}