Documentation
¶
Index ¶
- Constants
- func Initialize()
- type ActivityDocument
- type ActivityObject
- type AirdropDocument
- type AirdropObject
- type BattleInfoDocument
- type BattleInfoObject
- func (object *BattleInfoObject) GetBattleInfoById(BIUID int64) (error, *BattleInfoDocument)
- func (this *BattleInfoObject) Init(dbName, battleInfoCollectionName string)
- func (this *BattleInfoObject) RemoveBattleInfoById(id int64) error
- func (this *BattleInfoObject) UpdateBattleInfo(id, update interface{}) error
- type BoonCenterObject
- func (o *BoonCenterObject) ForEach(callback func(doc *BoonConfigDocument))
- func (o *BoonCenterObject) GetBoonConfigData(id uint32) (error, *BoonConfigDocument)
- func (o *BoonCenterObject) Init(dbName, boonCenterCollectionName string)
- func (o *BoonCenterObject) UpsertBoonConfigData(id, update interface{}) error
- type BoonConfigDocument
- type CardPoolDocument
- type CardPoolObject
- type ChapterDocument
- type ChapterObject
- type CharacteristicDocument
- type CharacteristicObject
- func (object *CharacteristicObject) Create(userId uint64) error
- func (object *CharacteristicObject) Delete(userId uint64) error
- func (object *CharacteristicObject) FindUserIdListByName(userName string) (error, []uint64)
- func (object *CharacteristicObject) FindUsersByName(userName string, selector bson.M, limit int) (error, []CharacteristicDocument)
- func (object *CharacteristicObject) ForEach(callback func(document *CharacteristicDocument))
- func (object *CharacteristicObject) Get(userId uint64) (error, *CharacteristicDocument)
- func (object *CharacteristicObject) GetCharCount() (error, int32)
- func (object *CharacteristicObject) Init(dbName, collectionName string)
- func (object *CharacteristicObject) Update(userId uint64, document *CharacteristicDocument) error
- func (object *CharacteristicObject) Upsert(userId uint64, document *CharacteristicDocument) error
- type CharacteristicSimpleDocument
- type CharacteristicSimpleObject
- func (object *CharacteristicSimpleObject) Create(userId uint64) error
- func (object *CharacteristicSimpleObject) Delete(userId uint64) error
- func (object *CharacteristicSimpleObject) Get(userId uint64) (error, *CharacteristicSimpleDocument)
- func (object *CharacteristicSimpleObject) GetCharCount() (error, int32)
- func (object *CharacteristicSimpleObject) Init(dbName, collectionName string)
- func (object *CharacteristicSimpleObject) Update(userId uint64, document *CharacteristicSimpleDocument) error
- func (object *CharacteristicSimpleObject) Upsert(userId uint64, document *CharacteristicSimpleDocument) error
- type CompensationDocument
- type CompensationObject
- type ConfigDocument
- type DBObject
- type DB_Golbal
- func (this *DB_Golbal) GetData() (error, string)
- func (this *DB_Golbal) GetDataById(id int32) (error, string)
- func (this *DB_Golbal) GetDataById2(id int64) (error, *map[string]interface{})
- func (object *DB_Golbal) Init(dbName, d string)
- func (this *DB_Golbal) SetDataById(id int32, d string) error
- func (object *DB_Golbal) Upsert(d string) error
- func (object *DB_Golbal) Upsert2(d map[string]interface{}) error
- type DropActivityRankDocument
- type DropActivityRankObject
- type ExpeditionShopDocument
- type ExpeditionShopObject
- type GlobalActionDocument
- type GlobalActionDocumentList
- type GlobalActionIdDocument
- type GlobalActionObject
- func (object *GlobalActionObject) ForEach(callback func(document *GlobalActionDocument))
- func (object *GlobalActionObject) GetGlobalActionId() (error, uint64)
- func (object *GlobalActionObject) Init(...)
- func (object *GlobalActionObject) RemoveGlobalAction(id uint64) error
- func (object *GlobalActionObject) UpdateGlobalAction(id uint64, content []byte) error
- type HotWorldChatDocument
- type IdDocument
- type LeagueBattleLogDocument
- type LeagueBattleLogObject
- func (this *LeagueBattleLogObject) GetLeagueBattleLogById(lid uint64) (error, *LeagueBattleLogDocument)
- func (object *LeagueBattleLogObject) Init(dbName, LeagueBattleLogCollectionName string)
- func (object *LeagueBattleLogObject) RemoveLeagueBattleLog(id uint64) error
- func (object *LeagueBattleLogObject) UpsertLeagueBattleLog(id uint64, update interface{}) error
- type LeagueBusinessHistoryDocument
- type LeagueBusinessHistoryObject
- func (object *LeagueBusinessHistoryObject) ForEach(callback func(document *LeagueBusinessHistoryDocument))
- func (object *LeagueBusinessHistoryObject) GetHistory(id uint64, callback func(err error, document *LeagueBusinessHistoryDocument))
- func (object *LeagueBusinessHistoryObject) Init(dbName, collectionName string)
- func (object *LeagueBusinessHistoryObject) UpsertHistory(leagueId uint64, data interface{}) error
- type LeagueChatDocument
- type LeagueCityDocument
- type LeagueCityObject
- type LeagueCupDocument
- type LeagueCupObject
- type LeagueDocument
- type LeagueIdDocument
- type LeagueObject
- func (object *LeagueObject) ForEach(callback func(document *LeagueDocument))
- func (object *LeagueObject) GetGlobalLeagueId() (error, uint64)
- func (object *LeagueObject) Init(...)
- func (object *LeagueObject) RemoveLeagueData(id uint64) error
- func (object *LeagueObject) UpdateLeague(id uint64, content []byte) error
- type MailDocument
- type MailIdDocument
- type MailObject
- func (object *MailObject) DeleteById(id uint64) error
- func (object *MailObject) ForEach(callback func(document *MailDocument))
- func (object *MailObject) GetGlobalMailId() (error, uint64)
- func (object *MailObject) GetMailById(mailId uint64) (error, *MailDocument)
- func (object *MailObject) Init(dbName, configCollectionName, mailIdCollectionName, mailsCollectionName string)
- func (object *MailObject) UpsertMailWithId(id uint64, update interface{}) error
- type MiracleWarDocument
- type MiracleWarObject
- type MonsterAtkCityObject
- func (object *MonsterAtkCityObject) ForEach(callback func(document *MonsterAtkDocument))
- func (object *MonsterAtkCityObject) Get(id string) (error, *MonsterAtkDocument)
- func (object *MonsterAtkCityObject) Init(dbName, leagueCollectionName string)
- func (object *MonsterAtkCityObject) Remove(id uint64) error
- func (object *MonsterAtkCityObject) RemoveAll() error
- func (object *MonsterAtkCityObject) Update(id uint64, content []byte) error
- type MonsterAtkDocument
- type OfflineUserDocument
- type OfflineUserObject
- type PrepareForWarDocument
- type PrepareForWarObject
- type PrepareForWarRankDocument
- type PrepareForWarRankObject
- func (object *PrepareForWarRankObject) ForEach(callback func(document *PrepareForWarRankDocument))
- func (object *PrepareForWarRankObject) Init(dbName, collectionName string)
- func (object *PrepareForWarRankObject) RemoveById(id uint32)
- func (object *PrepareForWarRankObject) UpserPrepareForWarRank(id uint32, update interface{}) error
- type PrisonMessageDocument
- type PrisonMessageObject
- func (this *PrisonMessageObject) GetPrisonMessageById(lid uint64) (error, *PrisonMessageDocument)
- func (object *PrisonMessageObject) Init(dbName, prisonMessageCollectionName string)
- func (object *PrisonMessageObject) RemovePrisonMessage(id uint64) error
- func (object *PrisonMessageObject) UpsertPrisonMessage(id uint64, update interface{}) error
- type RankingDocument
- type RankingDocumentArray
- type RankingObject
- func (object *RankingObject) Delete(id uint64) error
- func (object *RankingObject) ForEach(callback func(document *RankingDocument))
- func (object *RankingObject) Init(dbName, collectionName string)
- func (object *RankingObject) RemoveAll() error
- func (object *RankingObject) UpsertValue(id, value uint64) error
- type ReportDocument
- type ReportObject
- type SaveCloseTime
- type ServerCloseTime
- type ServerGolbal
- type ServerListDocument
- type ServerListObject
- func (object *ServerListObject) ForEach(callback func(document *ServerListDocument))
- func (object *ServerListObject) GetServerInfo(sid int64) *ServerListDocument
- func (object *ServerListObject) Init(dbName, collectionName string)
- func (object *ServerListObject) UpsertServerInfoWithId(id int64, update interface{}) error
- type SessionDocument
- type SessionManager
- type StarPioneerDocument
- type StarPioneerObject
- type StrongestCommanderDocument
- type StrongestCommanderObject
- type StrongestCommanderRankDocument
- type StrongestCommanderRankObject
- func (object *StrongestCommanderRankObject) ForEach(callback func(document *StrongestCommanderRankDocument))
- func (object *StrongestCommanderRankObject) Init(dbName, collectionName string)
- func (object *StrongestCommanderRankObject) RemoveById(id uint32)
- func (object *StrongestCommanderRankObject) UpserStrongestCommanderRank(id uint32, update interface{}) error
- type TransferBattleDocument
- type TransferBattleObject
- type TransferBattleRankDocument
- type TransferBattleRankObject
- func (object *TransferBattleRankObject) ForEach(callback func(document *TransferBattleRankDocument))
- func (object *TransferBattleRankObject) Init(dbName, collectionName string)
- func (object *TransferBattleRankObject) RemoveAll()
- func (object *TransferBattleRankObject) RemoveById(id uint32)
- func (object *TransferBattleRankObject) UpserTBRank(id uint64, update interface{})
- type TransferBattleUserBackUpDocument
- type TransferBattleUserBackupObject
- type WarCityDocument
- type WarCityObject
- func (object *WarCityObject) Del(id uint32) error
- func (object *WarCityObject) ForEach(callback func(document *WarCityDocument))
- func (this *WarCityObject) GetWarCity(cityid uint32) *Protocol.ST_CityWar_PB
- func (object *WarCityObject) Init(dbName, miracleWarCollectionName string)
- func (object *WarCityObject) RemoveAll() error
- func (object *WarCityObject) Upsert(id uint32, update interface{}) error
- type WorldChatDocument
- type WorldChatIdDocument
- type WorldChatObject
- func (this *WorldChatObject) ForeachLeagueChat(callback func(doc *LeagueChatDocument))
- func (this *WorldChatObject) GetHotWorldChat() (error, *HotWorldChatDocument)
- func (this *WorldChatObject) GetLeagueChatById(lid uint64) (error, *LeagueChatDocument)
- func (this *WorldChatObject) GetWorldChatById(titleId uint64) (error, *WorldChatDocument)
- func (this *WorldChatObject) GetWorldChatID() (error, uint64)
- func (this *WorldChatObject) GetWorldChatWX() (error, *WorldChatWXDocument)
- func (this *WorldChatObject) GetWorldChatsByIds(ids []uint64, res interface{}) error
- func (this *WorldChatObject) GetWorldChatsByTime(timestamp uint64, skip, limit int, res interface{}) error
- func (this *WorldChatObject) Init(dbName, worldChatIdCollectionName, worldChatCollectionName, ... string)
- func (this *WorldChatObject) RemoveWorldChatById(id uint64) error
- func (this *WorldChatObject) UpdateHotWorldChat(update interface{}) error
- func (this *WorldChatObject) UpdateLeagueChat(lid uint64, update interface{}) error
- func (this *WorldChatObject) UpdateWorldChatWX(update interface{}) error
- func (this *WorldChatObject) UpdateWorldChatWithId(titleId uint64, update interface{}) error
- type WorldChatWXDocument
- type WorldDataDocument
- type WorldDataDocumentList
- type WorldDataIdDocument
- type WorldDataObject
- func (object *WorldDataObject) ForEach(callback func(document *WorldDataDocument))
- func (object *WorldDataObject) GetGlobalWorldDataId() (error, uint64)
- func (object *WorldDataObject) Init(dbName, configCollectionName, worldDataIdCollectionName, ... string)
- func (object *WorldDataObject) RemoveAllWorldData() error
- func (object *WorldDataObject) RemoveWorldData(id uint64) error
- func (object *WorldDataObject) UpdateWorldData(id uint64, content []byte) error
- type WorldSituationDocument
- type WorldSituationObject
- func (object *WorldSituationObject) ForEach(callback func(document *WorldSituationDocument))
- func (object *WorldSituationObject) Get() (error, *WorldSituationDocument)
- func (object *WorldSituationObject) Init(dbName, collectionName string)
- func (object *WorldSituationObject) UpserWorldSituation(id uint32, update interface{}) error
- type WorldSituationRankSnapshotDocument
- type WorldSituationRankSnapshotObject
- func (object *WorldSituationRankSnapshotObject) ForEach(callback func(document *WorldSituationRankSnapshotDocument))
- func (object *WorldSituationRankSnapshotObject) Init(dbName, collectionName string)
- func (object *WorldSituationRankSnapshotObject) UpserWorldSituationRankSnapshot(id uint32, update interface{}) error
Constants ¶
const ( WarCityCollectionName = "war_city" DBGolbal = "DBGolbal" LeagueCupCollectionName = "LeagueCup" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActivityDocument ¶
type ActivityObject ¶
type ActivityObject struct { DBObject // contains filtered or unexported fields }
活动
var (
Activity *ActivityObject
)
func (*ActivityObject) ForEach ¶
func (object *ActivityObject) ForEach(callback func(document *ActivityDocument))
全局活动表迭代
func (*ActivityObject) Init ¶
func (object *ActivityObject) Init(dbName, activityCollectionName string)
初始化
func (*ActivityObject) UpsertActivityWithId ¶
func (object *ActivityObject) UpsertActivityWithId(id uint32, update interface{}) error
更新
type AirdropDocument ¶
type AirdropObject ¶
活动
var (
Airdrop *AirdropObject
)
func (*AirdropObject) GetAirdrop ¶
func (this *AirdropObject) GetAirdrop() (error, *AirdropDocument)
func (*AirdropObject) Init ¶
func (object *AirdropObject) Init(dbName, AirdropCollectionName string)
初始化
func (*AirdropObject) UpsertAirdrop ¶
func (object *AirdropObject) UpsertAirdrop(update interface{}) error
更新
type BattleInfoDocument ¶
type BattleInfoDocument struct {
Content string "content" //序列化后的ST_BattleInfo_PB
}
type BattleInfoObject ¶
type BattleInfoObject struct { DBObject // contains filtered or unexported fields }
var (
BattleInfo *BattleInfoObject
)
战斗数据暂时不删除,等下个版本和邮件优化一起做,2019-6-4-1.8.5
func (*BattleInfoObject) GetBattleInfoById ¶
func (object *BattleInfoObject) GetBattleInfoById(BIUID int64) (error, *BattleInfoDocument)
获取
func (*BattleInfoObject) Init ¶
func (this *BattleInfoObject) Init(dbName, battleInfoCollectionName string)
初始化
func (*BattleInfoObject) RemoveBattleInfoById ¶
func (this *BattleInfoObject) RemoveBattleInfoById(id int64) error
删除
func (*BattleInfoObject) UpdateBattleInfo ¶
func (this *BattleInfoObject) UpdateBattleInfo(id, update interface{}) error
更新
type BoonCenterObject ¶
var (
BoonCenterInstance *BoonCenterObject
)
func (*BoonCenterObject) ForEach ¶
func (o *BoonCenterObject) ForEach(callback func(doc *BoonConfigDocument))
func (*BoonCenterObject) GetBoonConfigData ¶
func (o *BoonCenterObject) GetBoonConfigData(id uint32) (error, *BoonConfigDocument)
func (*BoonCenterObject) Init ¶
func (o *BoonCenterObject) Init(dbName, boonCenterCollectionName string)
func (*BoonCenterObject) UpsertBoonConfigData ¶
func (o *BoonCenterObject) UpsertBoonConfigData(id, update interface{}) error
type BoonConfigDocument ¶
type CardPoolDocument ¶
type CardPoolObject ¶
type CardPoolObject struct { DBObject // contains filtered or unexported fields }
卡池
var (
CardPool *CardPoolObject
)
func (*CardPoolObject) GetCardPool ¶
func (this *CardPoolObject) GetCardPool() (error, *CardPoolDocument)
func (*CardPoolObject) Init ¶
func (object *CardPoolObject) Init(dbName, cardPoolCollectionName string)
初始化
func (*CardPoolObject) UpsertCardPool ¶
func (object *CardPoolObject) UpsertCardPool(update interface{}) error
更新
type ChapterDocument ¶
type ChapterObject ¶
var (
ChapterInstance *ChapterObject
)
func (*ChapterObject) GetChapterByUser ¶
func (o *ChapterObject) GetChapterByUser(uid uint64) (error, *ChapterDocument)
func (*ChapterObject) Init ¶
func (o *ChapterObject) Init(dbName, chapterCollectionName string)
func (*ChapterObject) UpsertChapterByUser ¶
func (o *ChapterObject) UpsertChapterByUser(uid uint64, doc interface{}) error
type CharacteristicDocument ¶
type CharacteristicDocument struct { UserId uint64 "_id" CharBasic []byte "basic" CharExp []byte "exp" Resource []byte "resource" Building []byte "building" LocalAction []byte "local_action" GlobalAction []byte "global_action" Unit []byte "unit" UnitCount []byte "unitcount" TeamConf []byte "team_conf" Research []byte "research" Mail []byte "mail" Colony []byte "colony" ItemPack []byte "item_pack" Hospital []byte "hospital" LeagueAsset []byte "league" ChatAsset []byte "chat" HeroAsset []byte "hero" BuffAsset []byte "buff" Attribute []byte "attribute" PrisonAsset []byte "prison" LeagueExtra []byte "league_extra" Tips []byte "tips" Vip []byte "vip" Statistics []byte "statistics" Radar []byte "radar" GiftPack []byte "gift_pack" PopUp []byte "popup" UserName string "user_name" Achievement []byte "achievement" Defense []byte "defense" Market []byte "market" MainCityEvent []byte "main_city_event" Telent []byte "telent" Skill []byte "skill" DispatchTask []byte "dispatch_task" Statue []byte "statue" SignIn []byte "sign_in" StrollHeroEvent []byte "as_stroll_hero_event" Settings []byte "as_settings" BeginnerTutorial []byte "beginner_tutorial" Activity []byte "activity" Bookmark []byte "bookmark" MiracleWar []byte "miraclewar" Account []byte "account" LeagueVersion []byte "leagueversion" LeagueBox []byte "leaguebox" BlackMarket []byte "blackmarket" Supply []byte "supply" Challenge []byte "challenge" MapList []byte "maplist" ActivityTask []byte "activitytask" MainCitySkin []byte "maincityskin" UserBoons []byte "userboons" CommanderEquip []byte "commanderequip" FactoryPackage []byte "factorypackage" TakeCard []byte "takecard" Chapters []byte "chapters" CommanderFashion []byte "commanderfashion" SevenDayTask []byte "sevendaytask" KillWildMonster []byte "killwildmonster" NoviceTask []byte "novicetask" LeagueTask []byte "leaguetask" StrongestCommander []byte "strongestcommander" ExpeditionShop []byte "expeditionshop" WorldSituation []byte "worldsituation" LoginGift []byte "logingift" PrepareForWar []byte "prepareforwar" LuckyStar []byte "luckystar" OfferGift []byte "offergift" UserServer []byte "userserver" TransferBattle []byte "transferbattle" }
type CharacteristicObject ¶
type CharacteristicObject struct { DBObject // contains filtered or unexported fields }
var (
Characteristic *CharacteristicObject
)
func (*CharacteristicObject) Create ¶
func (object *CharacteristicObject) Create(userId uint64) error
* @brief 创建
func (*CharacteristicObject) Delete ¶
func (object *CharacteristicObject) Delete(userId uint64) error
func (*CharacteristicObject) FindUserIdListByName ¶
func (object *CharacteristicObject) FindUserIdListByName(userName string) (error, []uint64)
* @brief 通过用户名模糊搜索
func (*CharacteristicObject) FindUsersByName ¶
func (object *CharacteristicObject) FindUsersByName(userName string, selector bson.M, limit int) (error, []CharacteristicDocument)
func (*CharacteristicObject) ForEach ¶
func (object *CharacteristicObject) ForEach(callback func(document *CharacteristicDocument))
迭代
func (*CharacteristicObject) Get ¶
func (object *CharacteristicObject) Get(userId uint64) (error, *CharacteristicDocument)
* @brief 获取
func (*CharacteristicObject) GetCharCount ¶
func (object *CharacteristicObject) GetCharCount() (error, int32)
* @brief 获取注册玩家数量
func (*CharacteristicObject) Init ¶
func (object *CharacteristicObject) Init(dbName, collectionName string)
* @brief 初始化
func (*CharacteristicObject) Update ¶
func (object *CharacteristicObject) Update(userId uint64, document *CharacteristicDocument) error
* @brief 更新所有
func (*CharacteristicObject) Upsert ¶
func (object *CharacteristicObject) Upsert(userId uint64, document *CharacteristicDocument) error
type CharacteristicSimpleObject ¶
type CharacteristicSimpleObject struct { DBObject // contains filtered or unexported fields }
var (
CharacteristicSimple *CharacteristicSimpleObject
)
func (*CharacteristicSimpleObject) Create ¶
func (object *CharacteristicSimpleObject) Create(userId uint64) error
* @brief 创建
func (*CharacteristicSimpleObject) Delete ¶
func (object *CharacteristicSimpleObject) Delete(userId uint64) error
func (*CharacteristicSimpleObject) Get ¶
func (object *CharacteristicSimpleObject) Get(userId uint64) (error, *CharacteristicSimpleDocument)
* @brief 获取
func (*CharacteristicSimpleObject) GetCharCount ¶
func (object *CharacteristicSimpleObject) GetCharCount() (error, int32)
* @brief 获取注册玩家数量
func (*CharacteristicSimpleObject) Init ¶
func (object *CharacteristicSimpleObject) Init(dbName, collectionName string)
* @brief 初始化
func (*CharacteristicSimpleObject) Update ¶
func (object *CharacteristicSimpleObject) Update(userId uint64, document *CharacteristicSimpleDocument) error
* @brief 更新所有
func (*CharacteristicSimpleObject) Upsert ¶
func (object *CharacteristicSimpleObject) Upsert(userId uint64, document *CharacteristicSimpleDocument) error
type CompensationDocument ¶
type CompensationObject ¶
type CompensationObject struct { DBObject // contains filtered or unexported fields }
var (
Compensation *CompensationObject
)
func (*CompensationObject) Delete ¶
func (object *CompensationObject) Delete(id uint32)
func (*CompensationObject) Get ¶
func (object *CompensationObject) Get(id uint32) (error, *CompensationDocument)
func (*CompensationObject) Init ¶
func (object *CompensationObject) Init(dbName, collectionName string)
初始化
func (*CompensationObject) UpserCompensationByID ¶
func (object *CompensationObject) UpserCompensationByID(id uint32, update interface{}) error
更新
type DBObject ¶
type DBObject struct { Config ConfigDocument //配置 // contains filtered or unexported fields }
数据库父类
type DB_Golbal ¶
func (*DB_Golbal) GetDataById2 ¶
type DropActivityRankObject ¶
type DropActivityRankObject struct { DBObject // contains filtered or unexported fields }
活动
var (
DropActivity *DropActivityRankObject
)
func (*DropActivityRankObject) ForEach ¶
func (object *DropActivityRankObject) ForEach(callback func(document *DropActivityRankDocument))
全局活动表迭代
func (*DropActivityRankObject) Init ¶
func (object *DropActivityRankObject) Init(dbName, collectionName string)
初始化
func (*DropActivityRankObject) UpserRankByActivityId ¶
func (object *DropActivityRankObject) UpserRankByActivityId(id uint32, update interface{}) error
更新
type ExpeditionShopDocument ¶
type ExpeditionShopObject ¶
type ExpeditionShopObject struct { DBObject // contains filtered or unexported fields }
var (
ExpeditionShop *ExpeditionShopObject
)
func (*ExpeditionShopObject) Get ¶
func (object *ExpeditionShopObject) Get(id uint32) (error, *ExpeditionShopDocument)
func (*ExpeditionShopObject) Init ¶
func (object *ExpeditionShopObject) Init(dbName, collectionName string)
初始化
func (*ExpeditionShopObject) UpserExpeditionShopByID ¶
func (object *ExpeditionShopObject) UpserExpeditionShopByID(id uint32, update interface{}) error
更新
type GlobalActionDocument ¶
全局活动文档
func (*GlobalActionDocument) ToPB ¶
func (object *GlobalActionDocument) ToPB() *Protocol.ST_GlobalActionEntry_PB
转换为PB结构
type GlobalActionIdDocument ¶
全局活动id文档
type GlobalActionObject ¶
type GlobalActionObject struct { DBObject // contains filtered or unexported fields }
全局活动对象
var (
GlobalAction *GlobalActionObject
)
func (*GlobalActionObject) ForEach ¶
func (object *GlobalActionObject) ForEach(callback func(document *GlobalActionDocument))
迭代
func (*GlobalActionObject) GetGlobalActionId ¶
func (object *GlobalActionObject) GetGlobalActionId() (error, uint64)
获取全局活动id
func (*GlobalActionObject) Init ¶
func (object *GlobalActionObject) Init(dbName, configCollectionName, leagueIdCollectionName, leagueCollectionName string)
初始化
func (*GlobalActionObject) RemoveGlobalAction ¶
func (object *GlobalActionObject) RemoveGlobalAction(id uint64) error
删除全局活动
func (*GlobalActionObject) UpdateGlobalAction ¶
func (object *GlobalActionObject) UpdateGlobalAction(id uint64, content []byte) error
更新全局活动
type HotWorldChatDocument ¶
世界热本话题文档
type LeagueBattleLogDocument ¶
联盟战斗日志
type LeagueBattleLogObject ¶
联盟战斗日志对象
var (
LeagueBattleLog *LeagueBattleLogObject
)
func (*LeagueBattleLogObject) GetLeagueBattleLogById ¶
func (this *LeagueBattleLogObject) GetLeagueBattleLogById(lid uint64) (error, *LeagueBattleLogDocument)
获取联盟战斗日志
func (*LeagueBattleLogObject) Init ¶
func (object *LeagueBattleLogObject) Init(dbName, LeagueBattleLogCollectionName string)
初始化
func (*LeagueBattleLogObject) RemoveLeagueBattleLog ¶
func (object *LeagueBattleLogObject) RemoveLeagueBattleLog(id uint64) error
删除联盟数据
func (*LeagueBattleLogObject) UpsertLeagueBattleLog ¶
func (object *LeagueBattleLogObject) UpsertLeagueBattleLog(id uint64, update interface{}) error
更新
type LeagueBusinessHistoryDocument ¶
联盟交易历史文档
func (*LeagueBusinessHistoryDocument) ToPB ¶
func (object *LeagueBusinessHistoryDocument) ToPB() *Protocol.ST_LeagueShopRecord_PB
转换为PB结构
type LeagueBusinessHistoryObject ¶
type LeagueBusinessHistoryObject struct { DBObject // contains filtered or unexported fields }
联盟交易历史对象
var ( LeagueBusinessIncomeHistory *LeagueBusinessHistoryObject LeagueBusinessOutcomeHistory *LeagueBusinessHistoryObject )
func (*LeagueBusinessHistoryObject) ForEach ¶
func (object *LeagueBusinessHistoryObject) ForEach(callback func(document *LeagueBusinessHistoryDocument))
迭代
func (*LeagueBusinessHistoryObject) GetHistory ¶
func (object *LeagueBusinessHistoryObject) GetHistory(id uint64, callback func(err error, document *LeagueBusinessHistoryDocument))
获取联盟交易历史数据
func (*LeagueBusinessHistoryObject) Init ¶
func (object *LeagueBusinessHistoryObject) Init(dbName, collectionName string)
初始化
func (*LeagueBusinessHistoryObject) UpsertHistory ¶
func (object *LeagueBusinessHistoryObject) UpsertHistory(leagueId uint64, data interface{}) error
添加联盟交易历史数据
type LeagueChatDocument ¶
联盟聊天文档
type LeagueCityDocument ¶
type LeagueCityObject ¶
活动
var (
LeagueCityActivity *LeagueCityObject
)
func (*LeagueCityObject) GetLeagueCityActivity ¶
func (this *LeagueCityObject) GetLeagueCityActivity() (error, *LeagueCityDocument)
func (*LeagueCityObject) Init ¶
func (object *LeagueCityObject) Init(dbName, miracleWarCollectionName string)
初始化
func (*LeagueCityObject) UpsertLeagueCityActivity ¶
func (object *LeagueCityObject) UpsertLeagueCityActivity(update interface{}) error
更新
type LeagueCupDocument ¶
type LeagueCupObject ¶
活动
var (
LeagueCup *LeagueCupObject
)
func (*LeagueCupObject) Get ¶
func (this *LeagueCupObject) Get(lid uint64) (error, *LeagueCupDocument)
func (*LeagueCupObject) Load ¶
func (object *LeagueCupObject) Load(callback func(document *LeagueCupDocument))
迭代
func (*LeagueCupObject) Upsert ¶
func (object *LeagueCupObject) Upsert(id uint64, update interface{}) error
更新
type LeagueDocument ¶
联盟数据文档
func (*LeagueDocument) ToPB ¶
func (object *LeagueDocument) ToPB() *Protocol.ST_League_Detail_Info
转换为PB结构
type LeagueIdDocument ¶
联盟id文档
type LeagueObject ¶
type LeagueObject struct { DBObject // contains filtered or unexported fields }
联盟对象
var (
League *LeagueObject
)
func (*LeagueObject) ForEach ¶
func (object *LeagueObject) ForEach(callback func(document *LeagueDocument))
迭代
func (*LeagueObject) GetGlobalLeagueId ¶
func (object *LeagueObject) GetGlobalLeagueId() (error, uint64)
获取全局联盟id
func (*LeagueObject) Init ¶
func (object *LeagueObject) Init(dbName, configCollectionName, leagueIdCollectionName, leagueCollectionName string)
初始化
func (*LeagueObject) RemoveLeagueData ¶
func (object *LeagueObject) RemoveLeagueData(id uint64) error
删除联盟数据
func (*LeagueObject) UpdateLeague ¶
func (object *LeagueObject) UpdateLeague(id uint64, content []byte) error
更新联盟
type MailDocument ¶
type MailDocument struct { Id uint64 "_id" Type uint32 "type" TimeStamp uint64 "timestamp" SenderId uint64 "sender_id" ReceiverId uint64 "receiver_id" SenderName string "sender_name" Title []byte "title" Content []byte "content" TitleTips []byte "title_tips" ContentTips []byte "content_tips" TargetId int32 "target_id" OtherId uint64 "other_id" OtherName string "other_name" OtherAvatar string "other_avatar" NPCId uint64 "npc_id" Reward []byte "reward" Detail []byte "detail" Battle []byte "battle" Read bool "read" Kept bool "kept" Locked bool "locked" Removed bool "removed" ServerId uint32 "server_id" GiftPackId int32 "gift_pack_id" MailSource int32 "mail_source" IsMiracleWarGift bool "miracle_war_gift" TitleID int32 "title_id" RewardSource int32 "reward_source" }
邮件文档
type MailObject ¶
type MailObject struct { DBObject // contains filtered or unexported fields }
邮件
var ( Mail *MailObject EveryOneMail *MailObject )
func (*MailObject) DeleteById ¶
func (object *MailObject) DeleteById(id uint64) error
func (*MailObject) ForEach ¶
func (object *MailObject) ForEach(callback func(document *MailDocument))
全局邮件表迭代
func (*MailObject) GetGlobalMailId ¶
func (object *MailObject) GetGlobalMailId() (error, uint64)
得到一个新的全局邮件id(直接写进数据库,然后拿出来用)
func (*MailObject) GetMailById ¶
func (object *MailObject) GetMailById(mailId uint64) (error, *MailDocument)
获取邮件详情
func (*MailObject) Init ¶
func (object *MailObject) Init(dbName, configCollectionName, mailIdCollectionName, mailsCollectionName string)
初始化
func (*MailObject) UpsertMailWithId ¶
func (object *MailObject) UpsertMailWithId(id uint64, update interface{}) error
更新
type MiracleWarDocument ¶
type MiracleWarObject ¶
type MiracleWarObject struct { DBObject // contains filtered or unexported fields }
活动
var (
MiracleWar *MiracleWarObject
)
func (*MiracleWarObject) GetMiracleWar ¶
func (this *MiracleWarObject) GetMiracleWar() (error, *MiracleWarDocument)
func (*MiracleWarObject) Init ¶
func (object *MiracleWarObject) Init(dbName, miracleWarCollectionName string)
初始化
func (*MiracleWarObject) RemoveAll ¶
func (object *MiracleWarObject) RemoveAll() error
func (*MiracleWarObject) UpsertMiracleWar ¶
func (object *MiracleWarObject) UpsertMiracleWar(update interface{}) error
更新
type MonsterAtkCityObject ¶
type MonsterAtkCityObject struct { DBObject // contains filtered or unexported fields }
联盟对象
var (
MstAtk *MonsterAtkCityObject
)
func (*MonsterAtkCityObject) ForEach ¶
func (object *MonsterAtkCityObject) ForEach(callback func(document *MonsterAtkDocument))
迭代
func (*MonsterAtkCityObject) Get ¶
func (object *MonsterAtkCityObject) Get(id string) (error, *MonsterAtkDocument)
func (*MonsterAtkCityObject) Init ¶
func (object *MonsterAtkCityObject) Init(dbName, leagueCollectionName string)
func (*MonsterAtkCityObject) Remove ¶
func (object *MonsterAtkCityObject) Remove(id uint64) error
func (*MonsterAtkCityObject) RemoveAll ¶
func (object *MonsterAtkCityObject) RemoveAll() error
type MonsterAtkDocument ¶
联盟数据文档
func (*MonsterAtkDocument) ToPB ¶
func (object *MonsterAtkDocument) ToPB() *Protocol.ST_MonsterAtkCity
type OfflineUserDocument ¶
type OfflineUserObject ¶
type OfflineUserObject struct { DBObject // contains filtered or unexported fields }
活动
var (
OfflineUser *OfflineUserObject
)
func (*OfflineUserObject) ForEach ¶
func (object *OfflineUserObject) ForEach(callback func(document *OfflineUserDocument))
全局活动表迭代
func (*OfflineUserObject) Init ¶
func (object *OfflineUserObject) Init(dbName, collectionName string)
初始化
func (*OfflineUserObject) Remove ¶
func (object *OfflineUserObject) Remove(id uint64)
func (*OfflineUserObject) UpsertActivityWithId ¶
func (object *OfflineUserObject) UpsertActivityWithId(id uint64, update interface{}) error
更新
type PrepareForWarDocument ¶
type PrepareForWarObject ¶
type PrepareForWarObject struct { DBObject // contains filtered or unexported fields }
var (
PrepareForWar *PrepareForWarObject
)
func (*PrepareForWarObject) Get ¶
func (object *PrepareForWarObject) Get() (error, *PrepareForWarDocument)
func (*PrepareForWarObject) Init ¶
func (object *PrepareForWarObject) Init(dbName, collectionName string)
初始化
func (*PrepareForWarObject) UpserPrepareForWar ¶
func (object *PrepareForWarObject) UpserPrepareForWar(id uint32, update interface{}) error
更新
type PrepareForWarRankObject ¶
type PrepareForWarRankObject struct { DBObject // contains filtered or unexported fields }
var (
PrepareForWarRank *PrepareForWarRankObject
)
func (*PrepareForWarRankObject) ForEach ¶
func (object *PrepareForWarRankObject) ForEach(callback func(document *PrepareForWarRankDocument))
全局活动表迭代
func (*PrepareForWarRankObject) Init ¶
func (object *PrepareForWarRankObject) Init(dbName, collectionName string)
初始化
func (*PrepareForWarRankObject) RemoveById ¶
func (object *PrepareForWarRankObject) RemoveById(id uint32)
func (*PrepareForWarRankObject) UpserPrepareForWarRank ¶
func (object *PrepareForWarRankObject) UpserPrepareForWarRank(id uint32, update interface{}) error
更新
type PrisonMessageDocument ¶
监狱留言板
type PrisonMessageObject ¶
type PrisonMessageObject struct { DBObject // contains filtered or unexported fields }
监狱留言板对象
var (
PrisonMessage *PrisonMessageObject
)
func (*PrisonMessageObject) GetPrisonMessageById ¶
func (this *PrisonMessageObject) GetPrisonMessageById(lid uint64) (error, *PrisonMessageDocument)
获取监狱留言板
func (*PrisonMessageObject) Init ¶
func (object *PrisonMessageObject) Init(dbName, prisonMessageCollectionName string)
初始化
func (*PrisonMessageObject) RemovePrisonMessage ¶
func (object *PrisonMessageObject) RemovePrisonMessage(id uint64) error
删除联盟数据
func (*PrisonMessageObject) UpsertPrisonMessage ¶
func (object *PrisonMessageObject) UpsertPrisonMessage(id uint64, update interface{}) error
更新
type RankingDocument ¶
type RankingDocumentArray ¶
type RankingDocumentArray []RankingDocument
type RankingObject ¶
type RankingObject struct { DBObject // contains filtered or unexported fields }
var ( CommanderKilledRanking *RankingObject CommanderLevelRanking *RankingObject LeagueKilledRanking *RankingObject LeaguePowerRanking *RankingObject MainCityLevelRanking *RankingObject UserPowerRanking *RankingObject BountyRanking *RankingObject CommanderAirShipStarRanking *RankingObject WorldSituationLeagueRanking *RankingObject HeroKilledRanking *RankingObject GatherRanking *RankingObject MacPlayerRanking *RankingObject MacLeagueRanking *RankingObject Ranking = make(map[string]*RankingObject, 0) )
func (*RankingObject) Delete ¶
func (object *RankingObject) Delete(id uint64) error
func (*RankingObject) ForEach ¶
func (object *RankingObject) ForEach(callback func(document *RankingDocument))
迭代
func (*RankingObject) Init ¶
func (object *RankingObject) Init(dbName, collectionName string)
func (*RankingObject) RemoveAll ¶
func (object *RankingObject) RemoveAll() error
func (*RankingObject) UpsertValue ¶
func (object *RankingObject) UpsertValue(id, value uint64) error
更新
type ReportDocument ¶
type ReportObject ¶
type ReportObject struct { DBObject // contains filtered or unexported fields }
var (
Report *ReportObject
)
func (*ReportObject) UpdateReport ¶
func (this *ReportObject) UpdateReport(id string, update interface{}) error
更新热本话题
type SaveCloseTime ¶
type ServerCloseTime ¶
var (
DbSvrCloseTime *ServerCloseTime
)
func (*ServerCloseTime) GetLastCloseTime ¶
func (this *ServerCloseTime) GetLastCloseTime() (error, uint64)
func (*ServerCloseTime) Init ¶
func (object *ServerCloseTime) Init(dbName, tableShoutdown string)
初始化
func (*ServerCloseTime) UpsertSvrCloseTime ¶
func (object *ServerCloseTime) UpsertSvrCloseTime(closeTime uint64) error
更新
type ServerGolbal ¶
type ServerListDocument ¶
type ServerListObject ¶
type ServerListObject struct { DBObject // contains filtered or unexported fields }
var (
ServerListDBObject *ServerListObject
)
func (*ServerListObject) ForEach ¶
func (object *ServerListObject) ForEach(callback func(document *ServerListDocument))
迭代服务器
func (*ServerListObject) GetServerInfo ¶
func (object *ServerListObject) GetServerInfo(sid int64) *ServerListDocument
func (*ServerListObject) Init ¶
func (object *ServerListObject) Init(dbName, collectionName string)
* @brief 初始化
func (*ServerListObject) UpsertServerInfoWithId ¶
func (object *ServerListObject) UpsertServerInfoWithId(id int64, update interface{}) error
更新
type SessionDocument ¶
type SessionManager ¶
type SessionManager struct { DBObject // contains filtered or unexported fields }
var (
Session *SessionManager
)
func (*SessionManager) ForEach ¶
func (object *SessionManager) ForEach(callback func(document *SessionDocument))
迭代
func (*SessionManager) Init ¶
func (object *SessionManager) Init(dbName, collectionName string)
* @brief 初始化
type StarPioneerDocument ¶
type StarPioneerObject ¶
type StarPioneerObject struct { DBObject // contains filtered or unexported fields }
var (
StarPioneerDBObject *StarPioneerObject
)
func (*StarPioneerObject) Get ¶
func (object *StarPioneerObject) Get() (error, *StarPioneerDocument)
func (*StarPioneerObject) Init ¶
func (object *StarPioneerObject) Init(dbName, collectionName string)
* @brief 初始化
func (*StarPioneerObject) UpsertWithId ¶
func (object *StarPioneerObject) UpsertWithId(update interface{}) error
更新
type StrongestCommanderObject ¶
type StrongestCommanderObject struct { DBObject // contains filtered or unexported fields }
var (
StrongestCommander *StrongestCommanderObject
)
func (*StrongestCommanderObject) Get ¶
func (object *StrongestCommanderObject) Get() (error, *StrongestCommanderDocument)
func (*StrongestCommanderObject) Init ¶
func (object *StrongestCommanderObject) Init(dbName, collectionName string)
初始化
func (*StrongestCommanderObject) UpserStrongestCommander ¶
func (object *StrongestCommanderObject) UpserStrongestCommander(id uint32, update interface{}) error
更新
type StrongestCommanderRankObject ¶
type StrongestCommanderRankObject struct { DBObject // contains filtered or unexported fields }
var (
StrongestCommanderRank *StrongestCommanderRankObject
)
func (*StrongestCommanderRankObject) ForEach ¶
func (object *StrongestCommanderRankObject) ForEach(callback func(document *StrongestCommanderRankDocument))
全局活动表迭代
func (*StrongestCommanderRankObject) Init ¶
func (object *StrongestCommanderRankObject) Init(dbName, collectionName string)
初始化
func (*StrongestCommanderRankObject) RemoveById ¶
func (object *StrongestCommanderRankObject) RemoveById(id uint32)
func (*StrongestCommanderRankObject) UpserStrongestCommanderRank ¶
func (object *StrongestCommanderRankObject) UpserStrongestCommanderRank(id uint32, update interface{}) error
更新
type TransferBattleDocument ¶
type TransferBattleObject ¶
type TransferBattleObject struct { DBObject // contains filtered or unexported fields }
var (
TransferBattle *TransferBattleObject
)
func (*TransferBattleObject) Get ¶
func (object *TransferBattleObject) Get() (error, *TransferBattleDocument)
func (*TransferBattleObject) Init ¶
func (object *TransferBattleObject) Init(dbName, collectionName string)
初始化
func (*TransferBattleObject) UpserTransferBattle ¶
func (object *TransferBattleObject) UpserTransferBattle(id uint32, update interface{}) error
更新
type TransferBattleRankObject ¶
type TransferBattleRankObject struct { DBObject // contains filtered or unexported fields }
var ( TransferBattlePrepareUserSubRank *TransferBattleRankObject TransferBattlePrepareUserTotalRank *TransferBattleRankObject TransferBattlePrepareLeagueSubRank *TransferBattleRankObject TransferBattlePrepareLeagueTotalRank *TransferBattleRankObject )
func (*TransferBattleRankObject) ForEach ¶
func (object *TransferBattleRankObject) ForEach(callback func(document *TransferBattleRankDocument))
全局活动表迭代
func (*TransferBattleRankObject) Init ¶
func (object *TransferBattleRankObject) Init(dbName, collectionName string)
初始化
func (*TransferBattleRankObject) RemoveAll ¶
func (object *TransferBattleRankObject) RemoveAll()
func (*TransferBattleRankObject) RemoveById ¶
func (object *TransferBattleRankObject) RemoveById(id uint32)
func (*TransferBattleRankObject) UpserTBRank ¶
func (object *TransferBattleRankObject) UpserTBRank(id uint64, update interface{})
type TransferBattleUserBackupObject ¶
type TransferBattleUserBackupObject struct { DBObject // contains filtered or unexported fields }
var (
TransferBattleUserBackup *TransferBattleUserBackupObject
)
func (*TransferBattleUserBackupObject) Get ¶
func (object *TransferBattleUserBackupObject) Get(uid uint64) (error, *TransferBattleUserBackUpDocument)
func (*TransferBattleUserBackupObject) Init ¶
func (object *TransferBattleUserBackupObject) Init(dbName, collectionName string)
初始化
func (*TransferBattleUserBackupObject) UpserTransferBattle ¶
func (object *TransferBattleUserBackupObject) UpserTransferBattle(id uint64, update interface{}) error
更新
type WarCityDocument ¶
type WarCityObject ¶
活动
var (
WarCity *WarCityObject
)
func (*WarCityObject) Del ¶
func (object *WarCityObject) Del(id uint32) error
func (*WarCityObject) ForEach ¶
func (object *WarCityObject) ForEach(callback func(document *WarCityDocument))
迭代
func (*WarCityObject) GetWarCity ¶
func (this *WarCityObject) GetWarCity(cityid uint32) *Protocol.ST_CityWar_PB
func (*WarCityObject) Init ¶
func (object *WarCityObject) Init(dbName, miracleWarCollectionName string)
初始化
func (*WarCityObject) RemoveAll ¶
func (object *WarCityObject) RemoveAll() error
func (*WarCityObject) Upsert ¶
func (object *WarCityObject) Upsert(id uint32, update interface{}) error
更新
type WorldChatDocument ¶
type WorldChatDocument struct { TitleID uint64 "_id" Time uint64 "timestamp" ReplyCount uint32 "reply_count" PraiseCount uint32 "praise_count" ChatTitle []byte "chat_title" ReplyList []byte "reply_list" FollowUserList []byte "follow_user_list" PraiseUserList []byte "praise_user_list" HotInfo []byte "hot_info" }
世界聊天消息文档
type WorldChatIdDocument ¶
世界聊天消息ID文档
type WorldChatObject ¶
type WorldChatObject struct { DBObject // contains filtered or unexported fields }
var (
WorldChat *WorldChatObject
)
func (*WorldChatObject) ForeachLeagueChat ¶
func (this *WorldChatObject) ForeachLeagueChat(callback func(doc *LeagueChatDocument))
获取联盟聊天
func (*WorldChatObject) GetHotWorldChat ¶
func (this *WorldChatObject) GetHotWorldChat() (error, *HotWorldChatDocument)
获取热本话题
func (*WorldChatObject) GetLeagueChatById ¶
func (this *WorldChatObject) GetLeagueChatById(lid uint64) (error, *LeagueChatDocument)
获取联盟聊天
func (*WorldChatObject) GetWorldChatById ¶
func (this *WorldChatObject) GetWorldChatById(titleId uint64) (error, *WorldChatDocument)
根据ID获取世界聊天消息
func (*WorldChatObject) GetWorldChatID ¶
func (this *WorldChatObject) GetWorldChatID() (error, uint64)
获取世界聊天ID
func (*WorldChatObject) GetWorldChatWX ¶
func (this *WorldChatObject) GetWorldChatWX() (error, *WorldChatWXDocument)
获取世界微信聊天消息
func (*WorldChatObject) GetWorldChatsByIds ¶
func (this *WorldChatObject) GetWorldChatsByIds(ids []uint64, res interface{}) error
根据idx列表获取世界聊天消息
func (*WorldChatObject) GetWorldChatsByTime ¶
func (this *WorldChatObject) GetWorldChatsByTime(timestamp uint64, skip, limit int, res interface{}) error
根据消息时间获取世界聊天消息
func (*WorldChatObject) Init ¶
func (this *WorldChatObject) Init(dbName, worldChatIdCollectionName, worldChatCollectionName, hotWorldChaCollectionName, leagueChatCollectionName, worldChatWXCollectionName string)
初始化
func (*WorldChatObject) RemoveWorldChatById ¶
func (this *WorldChatObject) RemoveWorldChatById(id uint64) error
根据ID删除世界聊天数据
func (*WorldChatObject) UpdateHotWorldChat ¶
func (this *WorldChatObject) UpdateHotWorldChat(update interface{}) error
更新热本话题
func (*WorldChatObject) UpdateLeagueChat ¶
func (this *WorldChatObject) UpdateLeagueChat(lid uint64, update interface{}) error
更新联盟聊天
func (*WorldChatObject) UpdateWorldChatWX ¶
func (this *WorldChatObject) UpdateWorldChatWX(update interface{}) error
跟新世界微信聊天消息
func (*WorldChatObject) UpdateWorldChatWithId ¶
func (this *WorldChatObject) UpdateWorldChatWithId(titleId uint64, update interface{}) error
根据ID更新世界聊天消息
type WorldChatWXDocument ¶
世界微信聊天
type WorldDataDocument ¶
func (*WorldDataDocument) ToPB ¶
func (object *WorldDataDocument) ToPB() *Protocol.ST_WorldDataEntry_PB
type WorldDataDocumentList ¶
type WorldDataDocumentList []WorldDataDocument
type WorldDataIdDocument ¶
type WorldDataObject ¶
type WorldDataObject struct { DBObject // contains filtered or unexported fields }
var (
WorldData *WorldDataObject
)
func (*WorldDataObject) ForEach ¶
func (object *WorldDataObject) ForEach(callback func(document *WorldDataDocument))
迭代
func (*WorldDataObject) GetGlobalWorldDataId ¶
func (object *WorldDataObject) GetGlobalWorldDataId() (error, uint64)
获取全局联盟id
func (*WorldDataObject) Init ¶
func (object *WorldDataObject) Init(dbName, configCollectionName, worldDataIdCollectionName, worldDataCollectionName string)
func (*WorldDataObject) RemoveAllWorldData ¶
func (object *WorldDataObject) RemoveAllWorldData() error
func (*WorldDataObject) RemoveWorldData ¶
func (object *WorldDataObject) RemoveWorldData(id uint64) error
删除世界数据
func (*WorldDataObject) UpdateWorldData ¶
func (object *WorldDataObject) UpdateWorldData(id uint64, content []byte) error
更新世界数据
type WorldSituationDocument ¶
type WorldSituationObject ¶
type WorldSituationObject struct { DBObject // contains filtered or unexported fields }
var (
WorldSituation *WorldSituationObject
)
func (*WorldSituationObject) ForEach ¶
func (object *WorldSituationObject) ForEach(callback func(document *WorldSituationDocument))
迭代
func (*WorldSituationObject) Get ¶
func (object *WorldSituationObject) Get() (error, *WorldSituationDocument)
func (*WorldSituationObject) Init ¶
func (object *WorldSituationObject) Init(dbName, collectionName string)
初始化
func (*WorldSituationObject) UpserWorldSituation ¶
func (object *WorldSituationObject) UpserWorldSituation(id uint32, update interface{}) error
更新
type WorldSituationRankSnapshotObject ¶
type WorldSituationRankSnapshotObject struct { DBObject // contains filtered or unexported fields }
var (
WorldSituationRankSnapshot *WorldSituationRankSnapshotObject
)
func (*WorldSituationRankSnapshotObject) ForEach ¶
func (object *WorldSituationRankSnapshotObject) ForEach(callback func(document *WorldSituationRankSnapshotDocument))
迭代
func (*WorldSituationRankSnapshotObject) Init ¶
func (object *WorldSituationRankSnapshotObject) Init(dbName, collectionName string)
初始化
func (*WorldSituationRankSnapshotObject) UpserWorldSituationRankSnapshot ¶
func (object *WorldSituationRankSnapshotObject) UpserWorldSituationRankSnapshot(id uint32, update interface{}) error
更新
Source Files
¶
- DB.go
- DB_Activity.go
- DB_Airdrop.go
- DB_BattleInfo.go
- DB_BoonCenter.go
- DB_CardPool.go
- DB_Chapters.go
- DB_Characteristic.go
- DB_CharacteristicSample.go
- DB_Compensation.go
- DB_DropActivityRank.go
- DB_ExpeditionShop.go
- DB_GlobalAction.go
- DB_Golbal.go
- DB_League.go
- DB_LeagueBattleLog.go
- DB_LeagueBusinessHistory.go
- DB_LeagueCity.go
- DB_LeagueCup.go
- DB_Mail.go
- DB_MiracleWar.go
- DB_MonsterAtkCity.go
- DB_OfflineUser.go
- DB_PrepareForWar.go
- DB_PrepareForWarRank.go
- DB_PrisonMessage.go
- DB_RankingList.go
- DB_Report.go
- DB_ServerList.go
- DB_ServerTime.go
- DB_Session.go
- DB_StarPioneer.go
- DB_StrongestCommander.go
- DB_StrongestCommanderRank.go
- DB_TransferBattle.go
- DB_TransferBattleRank.go
- DB_TrasnsferBattleUserBackup.go
- DB_WarCity.go
- DB_WorldChat.go
- DB_WorldData.go
- DB_WorldSituation.go
- DB_WorldSituationRankSnapshot.go
- init.go