Documentation
¶
Index ¶
- Constants
- Variables
- func AcceptFriendRequest(targetID uint32, requesterID uint32) error
- func AcceptGuildJoinRequest(actorCommanderID uint32, applicantCommanderID uint32) (uint32, error)
- func AccountUsernameNormalizedExists(usernameNormalized string, excludeAccountID string) (bool, error)
- func ActivateGuildOperation(commanderID uint32, chapterID uint32, consume uint32, durationSeconds uint32, ...) error
- func AddChapterDrop(drop *ChapterDrop) error
- func AddCommanderFurnitureTx(ctx context.Context, tx pgx.Tx, commanderID uint32, furnitureID uint32, ...) error
- func AddCommanderStory(commanderID uint32, storyID uint32) error
- func AddDorm3dInstagramReply(commanderID uint32, shipGroup uint32, postID uint32, chatID uint32, ...) error
- func AddFriendBlacklist(commanderID uint32, targetID uint32) (bool, error)
- func AddGuildCapital(guildID uint32, amount uint32) error
- func AddGuildMemberLiveness(guildID uint32, commanderID uint32, amount uint32) error
- func AddIslandBookCondTx(ctx context.Context, tx pgx.Tx, commanderID uint32, condType uint32, ...) error
- func AddIslandCardLabelCount(state *IslandCardState, labelID uint32)
- func AddIslandCardLabelGiftTx(ctx context.Context, tx pgx.Tx, fromCommanderID uint32, toCommanderID uint32, ...) (bool, error)
- func AddIslandCardLikeTx(ctx context.Context, tx pgx.Tx, fromCommanderID uint32, toCommanderID uint32) (bool, error)
- func AddIslandFollowerTx(ctx context.Context, tx pgx.Tx, commanderID uint32, shipID uint32, ...) error
- func AddIslandInventoryTx(ctx context.Context, tx pgx.Tx, commanderID uint32, itemID uint32, ...) error
- func AddIslandOrderActGroupTx(ctx context.Context, tx pgx.Tx, commanderID uint32, actID uint32, ...) (bool, error)
- func AddIslandOrderFavorClaimTx(ctx context.Context, tx pgx.Tx, commanderID uint32, level uint32) (bool, error)
- func AddIslandOrderFavorTx(ctx context.Context, tx pgx.Tx, commanderID uint32, amount uint32) error
- func AddIslandRoleDressNum(commanderID uint32, dressID uint32, num int32) error
- func AddIslandSeasonPTTx(ctx context.Context, tx pgx.Tx, commanderID uint32, pt uint32) error
- func AddIslandSeasonRewardClaimTx(ctx context.Context, tx pgx.Tx, commanderID uint32, targetPT uint32) (bool, error)
- func AddIslandShipInvite(commanderID uint32, shipID uint32) error
- func AddOwnedShipMetaRepairTx(ctx context.Context, tx pgx.Tx, ownerID uint32, shipID uint32, repairID uint32) error
- func ApplyCommanderMoraleRecovery(commanderID uint32, nowUnix uint32) (uint32, error)
- func ApplyIslandDelegationClaimTx(ctx context.Context, tx pgx.Tx, commanderID uint32, buildID uint32, ...) (uint32, error)
- func ApplyRandomFlagShipUpdates(_ any, commanderID uint32, updates []RandomFlagShipUpdate) error
- func ApplyRemasterDailyReset(state *RemasterState, now time.Time) bool
- func AreFriends(commanderID uint32, otherID uint32) (bool, error)
- func AssignRoleByName(accountID string, roleName string) error
- func BackyardThemeID(commanderID uint32, pos uint32) string
- func BatchGetCommanderIslandSocialStates(commanderIDs []uint32) (map[uint32]*CommanderIslandSocialState, error)
- func CancelEventCollection(_ any, commanderID, collectionID uint32) error
- func ChangeDorm3dShipSkin(commanderID uint32, shipGroup uint32, skinID uint32) error
- func CheckCommanderNameAvailability(name string) error
- func ClaimCommanderTrophyProgress(commanderID uint32, trophyID uint32, timestamp uint32) error
- func ClearCommanderCommonFlag(commanderID uint32, flagID uint32) error
- func ClearCommanderHomeCacheExp(commanderID uint32) error
- func ClearIslandOverflowInventoryTx(ctx context.Context, tx pgx.Tx, commanderID uint32) error
- func ClearShoppingStreetState(commanderID uint32) error
- func CommanderCatteryOpBit(opType uint32) uint32
- func CommanderClearCatteryOpFlag(opFlag uint32, opType uint32) uint32
- func CommanderExists(commanderID uint32) error
- func CommanderHasAttire(commanderID uint32, attireType uint32, attireID uint32, now time.Time) (bool, error)
- func CommanderHasCatteryOpFlag(opFlag uint32, opType uint32) bool
- func CommanderHasLivingAreaCover(commanderID uint32, coverID uint32) (bool, error)
- func CommanderIDExists(commanderID uint32) (bool, error)
- func CommanderNameExists(name string) (bool, error)
- func CommanderNameExistsExcept(name string, commanderID uint32) (bool, error)
- func CompensationSummary(compensations []Compensation, now time.Time) (uint32, uint32)
- func ConsumeCommanderQuickFinishTx(ctx context.Context, tx pgx.Tx, commanderID uint32, allowance uint32, ...) (uint32, error)
- func ConsumeIslandInventoryCheckedTx(ctx context.Context, tx pgx.Tx, commanderID uint32, itemID uint32, ...) error
- func ConsumeIslandInventoryTx(ctx context.Context, tx pgx.Tx, commanderID uint32, itemID uint32, ...) error
- func ConsumeIslandOverflowInventoryCheckedTx(ctx context.Context, tx pgx.Tx, commanderID uint32, itemID uint32, ...) error
- func ConsumeIslandSpeedupTicketsTx(ctx context.Context, tx pgx.Tx, commanderID uint32, ...) error
- func ConsumeOwnedShipEnergyTx(ctx context.Context, tx pgx.Tx, commanderID uint32, ownedShipID uint32, ...) (uint32, error)
- func CountAdminAccounts() (int64, error)
- func CountEnabledAccountsWithRole(roleName string, excludeAccountID string) (int64, error)
- func CountFriends(commanderID uint32) (uint32, error)
- func CountGuildJoinRequestsByApplicant(applicantCommanderID uint32) (uint32, error)
- func CountGuildMembersByDuty(guildID uint32, duty uint32) (uint32, error)
- func CreateAccount(account *Account) error
- func CreateArenaShopState(state ArenaShopState) error
- func CreateAuditLog(entry AuditLog) error
- func CreateBuffRecord(buff *Buff) error
- func CreateCommanderAccountRoot(accountID uint32, nickname string, guideIndex uint32, newGuideIndex uint32) error
- func CreateCommanderFriendRelationPair(commanderID uint32, friendCommanderID uint32) error
- func CreateCommanderRoot(commanderID uint32, accountID uint32, name string, guideIndex uint32, ...) error
- func CreateCommanderSkillClassTx(ctx context.Context, tx pgx.Tx, entry *CommanderSkillClass) error
- func CreateConfigEntryRecord(entry *ConfigEntry) error
- func CreateDefaultStarterInventory(accountID uint32) error
- func CreateDorm3dApartment(apartment *Dorm3dApartment) error
- func CreateEquipmentRecord(equipment *Equipment) error
- func CreateExchangeCode(code *ExchangeCode) error
- func CreateExchangeCodeRedeem(codeID uint32, commanderID uint32, redeemedAt time.Time) error
- func CreateFleet(owner *Commander, id uint32, name string, ships []uint32) error
- func CreateFriendLinkPair(commanderID uint32, friendID uint32) error
- func CreateFriendRelationship(commanderID uint32, friendID uint32, createdAt uint32) error
- func CreateFriendRequest(requesterID uint32, targetID uint32, content string) (bool, error)
- func CreateGlobalSkinRestriction(restriction *GlobalSkinRestriction) error
- func CreateGlobalSkinRestrictionWindow(window *GlobalSkinRestrictionWindow) error
- func CreateGuild(commander *Commander, faction uint32, policy uint32, name string, ...) (uint32, error)
- func CreateGuildCapitalLog(guildID uint32, entry GuildCapitalLogEntry) error
- func CreateGuildShopGood(good GuildShopGood) error
- func CreateGuildShopState(state GuildShopState) error
- func CreateIslandCollectFragmentStateTx(ctx context.Context, tx pgx.Tx, islandID uint32, fragmentID uint32, ...) (bool, error)
- func CreateIslandWildGatherCollectStateTx(ctx context.Context, tx pgx.Tx, islandID uint32, gatherID uint32, ...) (bool, error)
- func CreateItemRecord(item *Item) error
- func CreateJuustagramLanguage(entry *JuustagramLanguage) error
- func CreateJuustagramNpcTemplate(template *JuustagramNpcTemplate) error
- func CreateJuustagramShipGroupTemplate(template *JuustagramShipGroupTemplate) error
- func CreateJuustagramTemplate(template *JuustagramTemplate) error
- func CreateLocalAccount(entry LocalAccount) error
- func CreateMedalShopGood(good MedalShopGood) error
- func CreateMedalShopState(state MedalShopState) error
- func CreateMiniGameShopGood(good MiniGameShopGood) error
- func CreateMiniGameShopState(state MiniGameShopState) error
- func CreateRarity(rarity *Rarity) error
- func CreateRequisitionShip(shipID uint32) error
- func CreateResourceRecord(resource *Resource) error
- func CreateShipType(shipType *ShipType) error
- func CreateShopOffer(offer *ShopOffer) error
- func CreateShoppingStreetGood(good ShoppingStreetGood) error
- func CreateShoppingStreetState(state ShoppingStreetState) error
- func CreateSkillRecord(skill *Skill) error
- func CreateSkinRecord(skin *Skin) error
- func CreateWeaponRecord(weapon *Weapon) error
- func CreateWebAuthnCredential(record *WebAuthnCredential) error
- func CreateYostarusMap(arg2 uint32, accountID uint32) error
- func CurrentDayResetUnix(now time.Time) uint32
- func CurrentLimitChallengeMonthBucket(now time.Time) uint32
- func CurrentTechnologyDay(now time.Time) uint32
- func CurrentWeeklyResetUnix(now time.Time) uint32
- func DealiasResource(resourceId *uint32)
- func DefaultJuustagramOpTime() uint32
- func DeleteAccountByID(accountID string) error
- func DeleteAllFriendRequestsForTarget(targetID uint32) error
- func DeleteArenaShopState(commanderID uint32) error
- func DeleteBackyardCustomThemeTemplateTx(ctx context.Context, tx pgx.Tx, commanderID uint32, pos uint32) error
- func DeleteBackyardPublishedThemeVersionsByThemeIDTx(ctx context.Context, tx pgx.Tx, themeID string) error
- func DeleteBattleSession(commanderID uint32) error
- func DeleteBuffRecord(id uint32) error
- func DeleteChallengeModeStateTx(ctx context.Context, tx pgx.Tx, commanderID uint32, activityID uint32, ...) error
- func DeleteChapterProgress(commanderID uint32, chapterID uint32) error
- func DeleteChapterState(commanderID uint32) error
- func DeleteCommander(commanderID uint32) error
- func DeleteCommanderAttire(commanderID uint32, attireType uint32, attireID uint32) error
- func DeleteCommanderBuff(commanderID uint32, buffID uint32) error
- func DeleteCommanderDormThemeTx(q *gen.Queries, commanderID uint32, slotID uint32) error
- func DeleteCommanderFriendRelationPair(commanderID uint32, friendCommanderID uint32) (bool, error)
- func DeleteCommanderItem(commanderID uint32, itemID uint32) error
- func DeleteCommanderItemTx(ctx context.Context, tx pgx.Tx, commanderID uint32, itemID uint32) error
- func DeleteCommanderLivingAreaCover(commanderID uint32, coverID uint32) error
- func DeleteCommanderLoveLetterState(commanderID uint32) error
- func DeleteCommanderMeowsTx(ctx context.Context, tx pgx.Tx, commanderID uint32, meowIDs []uint32) error
- func DeleteCommanderMiscItem(commanderID uint32, itemID uint32) error
- func DeleteCommanderMiscItemTx(ctx context.Context, tx pgx.Tx, commanderID uint32, itemID uint32) error
- func DeleteCommanderSkillClassTx(ctx context.Context, tx pgx.Tx, commanderID uint32, roomID uint32) error
- func DeleteCommanderStory(commanderID uint32, storyID uint32) error
- func DeleteCommanderTB(commanderID uint32) (bool, error)
- func DeleteCompensationByCommanderAndID(commanderID uint32, compensationID uint32) error
- func DeleteConfigEntryByID(id uint64) error
- func DeleteDorm3dApartment(commanderID uint32) error
- func DeleteEquipmentRecord(id uint32) error
- func DeleteExchangeCode(codeID uint32) error
- func DeleteExchangeCodeRedeem(codeID uint32, commanderID uint32) error
- func DeleteFleetByCommanderAndGameID(commanderID uint32, gameID uint32) error
- func DeleteFriendRequest(targetID uint32, requesterID uint32) (bool, error)
- func DeleteGlobalSkinRestriction(skinID uint32) error
- func DeleteGlobalSkinRestrictionWindow(id uint32) error
- func DeleteGuildJoinRequest(guildID uint32, applicantCommanderID uint32) (bool, error)
- func DeleteGuildShopGood(commanderID uint32, index uint32) error
- func DeleteIslandAgoraThemeTx(ctx context.Context, tx pgx.Tx, commanderID uint32, slotID uint32) error
- func DeleteIslandOrderSlotTx(ctx context.Context, tx pgx.Tx, commanderID uint32, slotID uint32) error
- func DeleteIslandShipInviteTx(ctx context.Context, tx pgx.Tx, commanderID uint32, shipID uint32) error
- func DeleteIslandShipOrderAppointTx(ctx context.Context, tx pgx.Tx, commanderID uint32, appointID uint32) error
- func DeleteIslandSpeedupTargetTx(ctx context.Context, tx pgx.Tx, commanderID uint32, targetType uint32, ...) error
- func DeleteIslandSpeedupTicketKeysTx(ctx context.Context, tx pgx.Tx, commanderID uint32, ...) error
- func DeleteItemRecord(id uint32) error
- func DeleteJuustagramChatGroup(commanderID uint32, chatGroupID uint32) error
- func DeleteJuustagramGroup(commanderID uint32, groupID uint32) error
- func DeleteJuustagramLanguage(key string) error
- func DeleteJuustagramMessageState(commanderID uint32, messageID uint32) error
- func DeleteJuustagramNpcTemplate(id uint32) error
- func DeleteJuustagramPlayerDiscuss(commanderID uint32, messageID uint32, discussID uint32) error
- func DeleteJuustagramReply(chatGroupRecordID uint32, sequence uint32) error
- func DeleteJuustagramShipGroupTemplate(shipGroup uint32) error
- func DeleteJuustagramTemplate(id uint32) error
- func DeleteLike(commanderID uint32, groupID uint32) error
- func DeleteMedalShopGood(commanderID uint32, index uint32) error
- func DeleteMiniGameShopGood(commanderID uint32, goodsID uint32) error
- func DeleteOwnedResource(commanderID uint32, resourceID uint32) error
- func DeleteOwnedShipTransformsTx(ctx context.Context, tx pgx.Tx, ownerID uint32, shipID uint32, ...) error
- func DeleteOwnedSkin(commanderID uint32, skinID uint32) error
- func DeletePunishmentByCommanderAndID(commanderID uint32, punishmentID uint32) error
- func DeleteRandomFlagShipEntry(commanderID uint32, shipID uint32, phantomID uint32) error
- func DeleteRarity(id uint32) error
- func DeleteRemasterProgress(commanderID uint32, chapterID uint32, pos uint32) error
- func DeleteRequisitionShip(shipID uint32) error
- func DeleteResourceRecord(id uint32) error
- func DeleteShipType(id uint32) error
- func DeleteShopOffer(offerID uint32) error
- func DeleteShoppingStreetGood(commanderID uint32, goodsID uint32) error
- func DeleteSkillRecord(id uint32) error
- func DeleteSkinRecord(id uint32) error
- func DeleteWeaponRecord(id uint32) error
- func DeleteWebAuthnCredentialByUserAndCredentialID(userID string, credentialID string) (bool, error)
- func DeleteWebAuthnCredentialsByUserID(userID string) error
- func EnsureAuthzDefaults() error
- func EnsureCommanderHome(commanderID uint32) (*CommanderHome, []CommanderHomeSlot, error)
- func EnsureIslandHandPlantRowsTx(ctx context.Context, tx pgx.Tx, commanderID uint32, slotIDs []uint32) error
- func FireGuildMember(commanderID uint32, targetCommanderID uint32) error
- func GetActiveEventCount(_ any, commanderID uint32) (int, error)
- func GetBusyEventShipIDs(_ any, commanderID uint32) (map[uint32]struct{}, error)
- func GetCommanderCoresByIDs(commanderIDs []uint32) (map[uint32]*Commander, error)
- func GetCommanderDailyQuickFinishUsed(commanderID uint32, now time.Time) (uint32, error)
- func GetCommanderGuildWaitTime(commanderID uint32) (uint32, error)
- func GetCommanderHome(commanderID uint32) (*CommanderHome, []CommanderHomeSlot, error)
- func GetCommanderHomeFeedExp(level uint32) uint32
- func GetCommanderHomeStyleList(level uint32) []uint32
- func GetCommanderIDByIslandInviteCode(code string) (uint32, error)
- func GetCommanderSkillLearnTimeAllowance(commanderID uint32, now time.Time) (uint32, error)
- func GetCommanderSocialProfilesByIDs(commanderIDs []uint32) (map[uint32]CommanderSocialProfile, error)
- func GetCommanderUpgradeRates() (sameRate uint32, skillExp uint32, err error)
- func GetFriendBlacklist(commanderID uint32) ([]uint32, error)
- func GetGuildDataLevelDeputyLimit(level uint32) (uint32, error)
- func GetGuildDataLevelMemberLimit(level uint32) (uint32, error)
- func GetGuildForCommander(commanderID uint32) (*Guild, *GuildMember, error)
- func GetGuildSetUint(key string) (uint32, error)
- func GetGuildUserDonateTasks(commanderID uint32) ([]uint32, error)
- func GetGuildUserTechnologyByGroup(commanderID uint32, techGroup uint32) (uint32, error)
- func GetIslandManageTradeForUpdateTx(ctx context.Context, tx pgx.Tx, commanderID uint32, tradeID uint32) (*protobuf.PB_ISLAND_TRADE, *protobuf.PB_TRADE_PRESELL, uint32, error)
- func GetIslandOrderSlotForUpdateTx(ctx context.Context, tx pgx.Tx, commanderID uint32, slotID uint32) (*protobuf.PB_ISLAND_ORDER_SLOT, error)
- func GetIslandShipOrderAppointForUpdateTx(ctx context.Context, tx pgx.Tx, commanderID uint32, appointID uint32) (*protobuf.PB_SHIP_ORDER_APPOINT, error)
- func GetIslandShipOrderSlotForUpdateTx(ctx context.Context, tx pgx.Tx, commanderID uint32, slotID uint32) (*protobuf.PB_ISLAND_ORDER_SHIP_SLOT, error)
- func GetJuustagramChatGroupRecordID(commanderID uint32, chatGroupID uint32) (uint32, error)
- func GetJuustagramLanguage(key string) (string, error)
- func GetLastCommanderStoreupAwardIndex(commanderID uint32, storeupID uint32) (uint32, error)
- func GetMailboxCounts(commanderID uint32) (uint32, uint32, error)
- func GetMonthShopPurchaseCountTx(ctx context.Context, tx pgx.Tx, commanderID uint32, goodsID uint32, ...) (uint32, error)
- func GetShipBaseSkinIDTx(_ any, templateID uint32) (uint32, error)
- func GetShipyardPursueDiscounts(ur bool) ([]uint32, error)
- func GetSkinNameByID(skinID uint32) (string, error)
- func GetTechnologyCatchupItem(version uint32) (uint32, uint32, error)
- func GuildDissolve(commanderID uint32, guildID uint32) error
- func GuildImpeach(commanderID uint32, targetCommanderID uint32, now time.Time) error
- func GuildQuit(commanderID uint32, guildID uint32) error
- func HasGuildBossMissionFleet(guildID uint32, operationID uint32) (bool, error)
- func HasGuildJoinRequest(guildID uint32, applicantCommanderID uint32) (bool, error)
- func HasIslandCardLabelGift(fromCommanderID uint32, toCommanderID uint32) (bool, error)
- func HasIslandCardLike(fromCommanderID uint32, toCommanderID uint32) (bool, error)
- func HasIslandCollectFragmentTx(ctx context.Context, tx pgx.Tx, islandID uint32, fragmentID uint32) (bool, error)
- func HasIslandShipInviteTx(ctx context.Context, tx pgx.Tx, commanderID uint32, shipID uint32) (bool, error)
- func IncrementGuildMemberRank(guildID uint32, rankType uint32, userID uint32, amount uint32) error
- func IncrementIslandShipBreakoutTx(ctx context.Context, tx pgx.Tx, commanderID uint32, shipID uint32) error
- func IncrementMonthShopPurchaseTx(ctx context.Context, tx pgx.Tx, commanderID uint32, goodsID uint32, ...) error
- func InitDatabase() bool
- func InsertDebugPacket(packetSize int, packetID int, payload []byte) error
- func InsertShip(s *Ship) error
- func IsCommanderInAnyFleet(commander *Commander, meowID uint32) bool
- func IsCommanderSoundStoryUnlockedTx(q *gen.Queries, commanderID uint32, soundStoryID uint32) (bool, error)
- func IsCommanderSurveyCompleted(commanderID uint32, surveyID uint32) (bool, error)
- func IsFriend(commanderID uint32, friendID uint32) (bool, error)
- func IsIslandCollectionCompletedTx(ctx context.Context, tx pgx.Tx, commanderID uint32, collectID uint32) (bool, error)
- func IsIslandInviteCodeTaken(code string, excludeCommanderID uint32) (bool, error)
- func IsPlayableShipTemplateID(shipID uint32) bool
- func IsUniqueViolation(err error) bool
- func IsValidGuildDuty(duty uint32) bool
- func IslandBookCondExistsTx(ctx context.Context, tx pgx.Tx, commanderID uint32, condType uint32, ...) (bool, error)
- func ListAccountRoleNames(accountID string) ([]string, error)
- func ListBackyardPublishedThemeIDsByPage(page uint32, num uint32) ([]string, error)
- func ListCommanderCommonFlags(commanderID uint32) ([]uint32, error)
- func ListCommanderFriendIDs(commanderID uint32) ([]uint32, error)
- func ListCommanderItemBalances(commanderID uint32, itemIDs []uint32) (map[uint32]uint32, error)
- func ListCommanderMedalDisplay(commanderID uint32) ([]uint32, error)
- func ListCommanderSoundStoryIDs(commanderID uint32) ([]uint32, error)
- func ListCommanderStoryIDs(commanderID uint32) ([]uint32, error)
- func ListGuildCapitalLogsByCategory(guildID uint32, limit uint32) (map[uint32][]GuildCapitalLogEntry, error)
- func ListGuildMemberRanks(guildID uint32, rankType uint32) (map[uint32][]GuildMemberRankEntry, error)
- func ListGuildUserTechnologyState(commanderID uint32) ([]uint32, error)
- func ListIslandOrderActGroupsTx(ctx context.Context, tx pgx.Tx, commanderID uint32) ([]*protobuf.PB_FINISH_ACT_GROUP, error)
- func ListIslandOrderFavorClaimsTx(ctx context.Context, tx pgx.Tx, commanderID uint32) ([]uint32, error)
- func ListIslandOrderSlotsTx(ctx context.Context, tx pgx.Tx, commanderID uint32) ([]*protobuf.PB_ISLAND_ORDER_SLOT, error)
- func ListIslandSeasonRewardClaimsTx(ctx context.Context, tx pgx.Tx, commanderID uint32) ([]uint32, error)
- func ListIslandShipInvites(commanderID uint32) ([]uint32, error)
- func ListIslandShipOrderAppointsTx(ctx context.Context, tx pgx.Tx, commanderID uint32) ([]*protobuf.PB_SHIP_ORDER_APPOINT, error)
- func ListIslandShipOrderSlotsTx(ctx context.Context, tx pgx.Tx, commanderID uint32) ([]*protobuf.PB_ISLAND_ORDER_SHIP_SLOT, error)
- func ListMonthShopPurchaseCounts(commanderID uint32, month uint32) (map[uint32]uint32, error)
- func ListOwnedShipMetaRepairIDs(ownerID uint32, shipID uint32) ([]uint32, error)
- func ListOwnedShipMetaRepairIDsByShips(ownerID uint32, shipIDs []uint32) (map[uint32][]uint32, error)
- func ListOwnedShipShadowSkins(commanderID uint32, shipIDs []uint32) (map[uint32][]OwnedShipShadowSkin, error)
- func ListRandomFlagShipPhantoms(commanderID uint32, shipIDs []uint32) (map[uint32][]uint32, error)
- func ListRequisitionShipIDs() ([]uint32, error)
- func ListSkinNamesByIDs(skinIDs []uint32) (map[uint32]string, error)
- func LoadEffectivePermissions(accountID string) (map[string]authz.Capability, error)
- func LoadItemUsageExp(itemID uint32) (uint32, error)
- func LoadWorldMovePowerSettings() (uint32, uint32, error)
- func LocalArg2Exists(value uint32) (bool, error)
- func LockAtelierStateTx(ctx context.Context, tx pgx.Tx, commanderID uint32, actID uint32) error
- func MarkCommanderIslandDressRead(commanderID uint32, dressIDs []uint32) error
- func MarkCommanderTaskSubmittedTx(ctx context.Context, tx pgx.Tx, commanderID uint32, taskID uint32, ...) (bool, error)
- func MarkDorm3dCollection(commanderID uint32, roomID uint32, collectionID uint32, shipGroup uint32) error
- func MarkDorm3dDialogueSeen(commanderID uint32, dialogID uint32) error
- func MarkIslandCollectionCompletedTx(ctx context.Context, tx pgx.Tx, commanderID uint32, collectID uint32) (bool, error)
- func MarkJuustagramChatGroupsRead(commanderID uint32, chatGroupIDs []uint32) error
- func MarkLimitChallengePass(state *LimitChallengeState, challengeID uint32, totalTime uint32)
- func MarkRoleIslandDressRead(commanderID uint32, dressIDs []uint32) error
- func MaxTechnologyBlueprintVersion() (uint32, error)
- func QualifiedTable(name string) string
- func ReduceIslandSpeedupTargetTx(ctx context.Context, tx pgx.Tx, commanderID uint32, targetType uint32, ...) (uint32, error)
- func RefreshGuildShopGoods(commanderID uint32, goods []GuildShopGood, refreshCount uint32, ...) error
- func RefreshMedalShopGoods(commanderID uint32, goods []MedalShopGood, nextRefreshTime uint32) error
- func RefreshMiniGameShopGoods(commanderID uint32, goods []MiniGameShopGood, nextRefreshTime uint32) error
- func RefreshShoppingStreetGoods(commanderID uint32, goods []ShoppingStreetGood, nextFlashTime uint32, ...) error
- func RemainingSeconds(finishTime time.Time, now time.Time) uint32
- func RemoveFriendBlacklist(commanderID uint32, targetID uint32) (bool, error)
- func RemoveIslandFollowerTx(ctx context.Context, tx pgx.Tx, commanderID uint32, shipID uint32) error
- func RemoveIslandShipDressByDressTx(ctx context.Context, tx pgx.Tx, commanderID uint32, dressID uint32) (uint32, error)
- func RemoveIslandShipDressTx(ctx context.Context, tx pgx.Tx, commanderID uint32, shipID uint32, ...) (bool, error)
- func ReplaceAccountOverrides(accountID string, overrides []AccountOverrideEntry) error
- func ReplaceAccountRolesByName(accountID string, roleNames []string) error
- func ReplaceGuildOperationBossRanks(guildID uint32, operationID uint32, bossID uint32, ...) error
- func ReplaceRolePolicyByName(roleName string, capabilities map[string]authz.Capability, updatedBy *string) error
- func ReplaceShoppingStreetGoods(commanderID uint32, goods []ShoppingStreetGood) error
- func ResetIslandHandPlantsTx(ctx context.Context, tx pgx.Tx, commanderID uint32, slotIDs []uint32) error
- func ResetWeeklyRefresh(commanderID uint32, refreshAt uint32) error
- func RollCommanderTemplateForPool(poolID uint32) (uint32, error)
- func SaveActivityFleetGroups(commanderID uint32, activityID uint32, groups ActivityFleetGroupList) error
- func SaveActivityPermanentState(state *ActivityPermanentState) error
- func SaveAtelierState(state *AtelierState) error
- func SaveAtelierStateTx(ctx context.Context, tx pgx.Tx, state *AtelierState) error
- func SaveCityRebuildState(state *CityRebuildState) error
- func SaveCommanderAppreciationState(state *CommanderAppreciationState) error
- func SaveCommanderColoringState(state *CommanderColoringState) error
- func SaveCommanderColoringStateTx(ctx context.Context, tx pgx.Tx, state *CommanderColoringState) error
- func SaveCommanderDormState(state *CommanderDormState) error
- func SaveCommanderDormStateTx(ctx context.Context, tx pgx.Tx, state *CommanderDormState) error
- func SaveCommanderFleetTechState(state *CommanderFleetTechState) error
- func SaveCommanderFleetTechStateTx(ctx context.Context, tx pgx.Tx, state *CommanderFleetTechState) error
- func SaveCommanderIslandSocialState(state *CommanderIslandSocialState) error
- func SaveCommanderIslandSocialStateTx(ctx context.Context, tx pgx.Tx, state *CommanderIslandSocialState) error
- func SaveCommanderIslandTradeInviteState(state *CommanderIslandTradeInviteState) error
- func SaveCommanderLoveLetterState(state *CommanderLoveLetterState) error
- func SaveCommanderLoveLetterStateTx(ctx context.Context, tx pgx.Tx, state *CommanderLoveLetterState) error
- func SaveCommanderMetaPtProgress(state *CommanderMetaPtProgress) error
- func SaveCommanderMetaPtProgressTx(ctx context.Context, tx pgx.Tx, state *CommanderMetaPtProgress) error
- func SaveCommanderMetaTacticsSkillStateTx(ctx context.Context, tx pgx.Tx, state *CommanderMetaTacticsSkillState) error
- func SaveCommanderMetaTacticsStateTx(ctx context.Context, tx pgx.Tx, state *CommanderMetaTacticsState) error
- func SaveCommanderPacketState(entry *CommanderPacketState) error
- func SaveCommanderPrefabFleet(entry *CommanderPrefabFleet) error
- func SaveCommanderShipSkillTx(ctx context.Context, tx pgx.Tx, entry *CommanderShipSkill) error
- func SaveCommanderTB(entry *CommanderTB, info *protobuf.TBINFO, permanent *protobuf.TBPERMANENT) error
- func SaveCommanderWorldBossState(state *WorldBossState) error
- func SaveDorm3dApartment(apartment *Dorm3dApartment) error
- func SaveDorm3dApartmentTx(ctx context.Context, tx pgx.Tx, apartment *Dorm3dApartment) error
- func SaveEventCollection(_ any, event *EventCollection) error
- func SaveFeastState(state *FeastState) error
- func SaveFeastStateTx(ctx context.Context, tx pgx.Tx, state *FeastState) error
- func SaveGameRoomStateTx(ctx context.Context, tx pgx.Tx, state *GameRoomState) error
- func SaveIslandAchievementStateTx(ctx context.Context, tx pgx.Tx, state *IslandAchievementState) error
- func SaveIslandBookStateTx(ctx context.Context, tx pgx.Tx, state *IslandBookState) error
- func SaveIslandCardStateTx(ctx context.Context, tx pgx.Tx, state *IslandCardState) error
- func SaveIslandNodeState(commanderID uint32, actID uint32, nodes []IslandNodeState) error
- func SaveIslandOrderStateTx(ctx context.Context, tx pgx.Tx, state *IslandOrderState) error
- func SaveIslandProsperityStateTx(ctx context.Context, tx pgx.Tx, state *IslandProsperityState) error
- func SaveIslandShipOrderStateTx(ctx context.Context, tx pgx.Tx, state *IslandShipOrderState) error
- func SaveIslandTaskProgressTx(ctx context.Context, tx pgx.Tx, state *IslandTaskProgress) error
- func SaveJuustagramMessageState(state *JuustagramMessageState) error
- func SaveLegacyEducateState(state *LegacyEducateState) error
- func SaveLimitChallengeStateTx(ctx context.Context, tx pgx.Tx, state *LimitChallengeState) error
- func SaveMiniGameDataState(state *MiniGameDataState) error
- func SaveMiniGameHubState(state *MiniGameHubState) error
- func SaveMiniGameTelemetryState(state *MiniGameTelemetryState) error
- func SaveNavalAcademyRuntime(runtime *NavalAcademyRuntime) error
- func SaveOwnedSpWeapon(entry *OwnedSpWeapon) error
- func SaveRefluxState(state *RefluxState) error
- func SaveRemasterState(state *RemasterState) error
- func SaveSecondaryPasswordState(state *SecondaryPasswordState) error
- func SaveTechnologyResearchState(state *TechnologyResearchState) error
- func SaveTechnologyResearchStateTx(ctx context.Context, tx pgx.Tx, state *TechnologyResearchState) error
- func SaveWeeklyTaskProgressTx(ctx context.Context, tx pgx.Tx, state *WeeklyTaskProgress) error
- func SaveWorldRuntime(runtime *WorldRuntime) error
- func SetCommanderAppreciationGalleryFavor(commanderID uint32, galleryID uint32, liked bool) error
- func SetCommanderAppreciationGalleryUnlock(commanderID uint32, galleryID uint32) error
- func SetCommanderAppreciationMusicFavor(commanderID uint32, musicID uint32, liked bool) error
- func SetCommanderCartoonCollectMark(commanderID uint32, cartoonID uint32, liked bool) error
- func SetCommanderCartoonReadMark(commanderID uint32, cartoonID uint32) error
- func SetCommanderCommonFlag(commanderID uint32, flagID uint32) error
- func SetCommanderGuildWaitTime(commanderID uint32, waitTime uint32) error
- func SetCommanderMedalDisplay(commanderID uint32, medalIDs []uint32) error
- func SetCommanderStoreupAwardIndexTx(ctx context.Context, tx pgx.Tx, commanderID uint32, storeupID uint32, ...) error
- func SetCommanderSurveyCompleted(commanderID uint32, surveyID uint32, completedAt time.Time) error
- func SetDorm3dCallName(commanderID uint32, shipGroup uint32, name string, now uint32, cooldown uint32) error
- func SetDorm3dCurrentCommID(commanderID uint32, shipGroup uint32, commID uint32) error
- func SetGuildAssaultRecommendation(guildID uint32, commanderID uint32, shipID uint32, recommended bool) error
- func SetGuildTechnologyActive(guildID uint32, techID uint32) error
- func SetGuildUserDonateTasks(commanderID uint32, tasks []uint32) error
- func SetIslandProsperity(commanderID uint32, prosperity uint32) error
- func SetJuustagramChatGroupRead(commanderID uint32, chatGroupIDs []uint32) error
- func SetJuustagramCurrentChatGroup(commanderID uint32, chatGroupID uint32) error
- func StartGuildSupply(guildID uint32, cost uint32, benefitFinishTime uint32) error
- func SupportRequisitionMonth(now time.Time) uint32
- func SyncWorldRuntime(runtime *WorldRuntime, now time.Time) (bool, bool, error)
- func ToProtoBuildInfo(payload BuildInfoPayload) *protobuf.BUILDINFO
- func ToProtoCommanderBox(box CommanderBox) *protobuf.COMMANDERBOXINFO
- func ToProtoCommanderInfo(meow CommanderMeow) *protobuf.COMMANDERINFO
- func ToProtoCompensationDropInfoList(attachments []CompensationAttachment) []*protobuf.DROPINFO
- func ToProtoDropInfoList(attachments []MailAttachment) []*protobuf.DROPINFO
- func ToProtoOwnedShip(ship OwnedShip, randomFlags []uint32, shadowSkins []OwnedShipShadowSkin) *protobuf.SHIPINFO
- func ToProtoOwnedShipList(ships []OwnedShip, randomFlags map[uint32][]uint32, ...) []*protobuf.SHIPINFO
- func ToProtoOwnedSpWeapon(entry OwnedSpWeapon) *protobuf.SPWEAPONINFO
- func ToProtoOwnedSpWeaponList(entries []OwnedSpWeapon) []*protobuf.SPWEAPONINFO
- func ToProtoProposeResponse(success bool) *protobuf.SC_12033
- func ToUint32List(values Int64List) []uint32
- func TryAdvanceCommanderStoreupAwardIndexTx(ctx context.Context, tx pgx.Tx, commanderID uint32, storeupID uint32, ...) (bool, error)
- func TryRecordChargeSuccessEventTx(ctx context.Context, tx pgx.Tx, commanderID uint32, payID string) (bool, error)
- func TrySubmitCommanderActivityTaskTx(ctx context.Context, tx pgx.Tx, commanderID uint32, actID uint32, ...) (bool, error)
- func TrySubmitReadyCommanderActivityTaskTx(ctx context.Context, tx pgx.Tx, commanderID uint32, actID uint32, ...) (bool, error)
- func Uint32FromInt64Checked(value int64) (uint32, error)
- func UnlockCommanderSoundStoryTx(q *gen.Queries, commanderID uint32, soundStoryID uint32) error
- func UpdateAccountDisabledAt(accountID string, disabledAt *time.Time, updatedAt time.Time) error
- func UpdateAccountLastLoginAt(accountID string, loginAt time.Time) error
- func UpdateAccountPassword(accountID string, passwordHash string, passwordAlgo string, ...) error
- func UpdateAccountUsername(accountID string, username string, usernameNormalized string, ...) error
- func UpdateAccountWebAuthnUserHandle(accountID string, handle []byte, updatedAt int64) error
- func UpdateArenaShopState(state ArenaShopState) error
- func UpdateBuffRecord(buff *Buff) error
- func UpdateCommanderBuffExpiry(commanderID uint32, buffID uint32, expiresAt time.Time) error
- func UpdateCommanderChildDisplay(commanderID uint32, childDisplay uint32) error
- func UpdateCommanderHome(home *CommanderHome) error
- func UpdateCommanderHomeSlot(slot *CommanderHomeSlot) error
- func UpdateCommanderLivingAreaCoverIsNew(commanderID uint32, coverID uint32, isNew bool) error
- func UpdateCommanderMeowExpTx(ctx context.Context, tx pgx.Tx, commanderID uint32, meowID uint32, exp uint32) error
- func UpdateCommanderRandomFlagShipEnabled(commanderID uint32, enabled bool) error
- func UpdateCommanderRandomShipMode(commanderID uint32, mode uint32) error
- func UpdateCommanderTrophyProgress(row *CommanderTrophyProgress) error
- func UpdateConfigEntryRecord(entry *ConfigEntry) error
- func UpdateDorm3dInsBackground(commanderID uint32, shipGroup uint32, backID uint32) error
- func UpdateDorm3dInsCareFlag(commanderID uint32, shipGroup uint32, careFlag uint32) error
- func UpdateDorm3dInstagramFlags(commanderID uint32, shipGroup uint32, postIDs []uint32, op uint32, now uint32) error
- func UpdateDorm3dSkinHiddenParts(commanderID uint32, shipGroup uint32, skinID uint32, hiddenParts []uint32) error
- func UpdateDorm3dVisitTime(commanderID uint32, shipGroup uint32, visitTime uint32) error
- func UpdateEquipmentRecord(equipment *Equipment) error
- func UpdateExchangeCode(code *ExchangeCode) error
- func UpdateFleetMeowfficerSlot(commander *Commander, groupID uint32, pos uint32, meowID uint32) error
- func UpdateGlobalSkinRestriction(restriction *GlobalSkinRestriction) error
- func UpdateGlobalSkinRestrictionWindow(window *GlobalSkinRestrictionWindow) error
- func UpdateGuildBase(commander *Commander, guildID uint32, opType uint32, intValue uint32, ...) error
- func UpdateGuildDuty(commanderID uint32, targetCommanderID uint32, duty uint32) error
- func UpdateGuildOperationEventFormation(guildID uint32, eventTid uint32, personShip json.RawMessage, ...) error
- func UpdateGuildOperationEventRefresh(guildID uint32, eventTid uint32, formationTime uint32) error
- func UpdateGuildOperationParticipation(commanderID uint32, now uint32, maxJoinTimes uint32, livenessGain uint32) error
- func UpdateGuildShopGood(good GuildShopGood) error
- func UpdateGuildShopState(state GuildShopState) error
- func UpdateGuildUserBenefitTime(commanderID uint32, benefitTime uint32) error
- func UpdateItemRecord(item *Item) error
- func UpdateJuustagramGroup(commanderID uint32, groupID uint32, skinID *uint32, favorite *uint32, ...) error
- func UpdateJuustagramLanguage(entry *JuustagramLanguage) error
- func UpdateJuustagramNpcTemplate(template *JuustagramNpcTemplate) error
- func UpdateJuustagramShipGroupTemplate(template *JuustagramShipGroupTemplate) error
- func UpdateJuustagramTemplate(template *JuustagramTemplate) error
- func UpdateLocalAccountPassword(arg2 uint32, password string) error
- func UpdateMedalShopGood(good MedalShopGood) error
- func UpdateMedalShopState(state MedalShopState) error
- func UpdateMiniGameShopGood(good MiniGameShopGood) error
- func UpdateMiniGameShopState(state MiniGameShopState) error
- func UpdateOwnedSkinExpiry(commanderID uint32, skinID uint32, expiresAt *time.Time) error
- func UpdateRarity(rarity *Rarity) error
- func UpdateResourceRecord(resource *Resource) error
- func UpdateShipType(shipType *ShipType) error
- func UpdateShopOffer(offer *ShopOffer) error
- func UpdateShoppingStreetGood(good ShoppingStreetGood) error
- func UpdateShoppingStreetState(state ShoppingStreetState) error
- func UpdateSkillRecord(skill *Skill) error
- func UpdateSkinRecord(skin *Skin) error
- func UpdateUserRegistrationChallengeStatus(id string, status string) error
- func UpdateWeaponRecord(weapon *Weapon) error
- func UpdateWebAuthnCredentialUsageByCredentialID(credentialID string, signCount uint32, lastUsedAt time.Time, ...) error
- func UpsertActivityStoreState(state *ActivityStoreState) error
- func UpsertActivityStoreStateTx(ctx context.Context, tx pgx.Tx, state *ActivityStoreState) error
- func UpsertBackyardCustomThemeTemplateTx(ctx context.Context, tx pgx.Tx, commanderID uint32, pos uint32, name string, ...) error
- func UpsertBattleSession(session *BattleSession) error
- func UpsertChallengeModeStateTx(ctx context.Context, tx pgx.Tx, state *ChallengeModeState) error
- func UpsertChapterProgress(progress *ChapterProgress) error
- func UpsertChapterState(state *ChapterState) error
- func UpsertCommanderActivityTaskProgressTx(ctx context.Context, tx pgx.Tx, commanderID uint32, actID uint32, ...) error
- func UpsertCommanderAttire(entry CommanderAttire) error
- func UpsertCommanderBoxTx(ctx context.Context, tx pgx.Tx, box CommanderBox) error
- func UpsertCommanderBuff(commanderID uint32, buffID uint32, expiresAt time.Time) error
- func UpsertCommanderDormFloorLayoutTx(q *gen.Queries, commanderID uint32, floor uint32, ...) error
- func UpsertCommanderDormThemeTx(q *gen.Queries, commanderID uint32, slotID uint32, name string, ...) error
- func UpsertCommanderLivingAreaCover(entry CommanderLivingAreaCover) error
- func UpsertCommanderMetaTacticsTaskProgressTx(ctx context.Context, tx pgx.Tx, entry *CommanderMetaTacticsTaskProgress) error
- func UpsertCommanderMiscItem(commanderID uint32, itemID uint32, data uint32) error
- func UpsertCommanderShipyardBlueprintTx(ctx context.Context, tx pgx.Tx, entry *CommanderShipyardBlueprint) error
- func UpsertCommanderShipyardStateTx(ctx context.Context, tx pgx.Tx, state *CommanderShipyardState) error
- func UpsertCommanderTaskProgressTx(ctx context.Context, tx pgx.Tx, commanderID uint32, taskID uint32, mode uint32, ...) error
- func UpsertConfigEntry(category string, key string, data json.RawMessage) error
- func UpsertDeviceAuthMap(deviceID string, arg2 uint32, accountID uint32) error
- func UpsertEducateShopState(state *EducateShopState) error
- func UpsertEducateShopStateTx(ctx context.Context, tx pgx.Tx, state *EducateShopState) error
- func UpsertExerciseFleet(commanderID uint32, vanguardShipIDs []uint32, mainShipIDs []uint32) error
- func UpsertGameRoomScoreTx(ctx context.Context, tx pgx.Tx, commanderID uint32, roomID uint32, ...) error
- func UpsertGuildAssaultFleetSlots(guildID uint32, commanderID uint32, slots []GuildAssaultFleetSlot, now uint32) error
- func UpsertGuildBossMissionFleets(guildID uint32, operationID uint32, fleets []GuildBossMissionFleet) error
- func UpsertGuildJoinRequest(guildID uint32, applicantCommanderID uint32, content string, ...) error
- func UpsertGuildOperationBossState(state GuildOperationBossState) error
- func UpsertGuildOperationPerf(guildID uint32, eventTid uint32, index uint32) error
- func UpsertGuildOperationPerfsMonotonic(guildID uint32, perfs []GuildOperationPerf) error
- func UpsertGuildUserTechnologyState(commanderID uint32, techGroup uint32, techID uint32) error
- func UpsertGuildWeeklyTaskState(guildID uint32, taskID uint32, progress uint32, monday0Clock uint32) error
- func UpsertIslandAgoraPlacementTx(ctx context.Context, tx pgx.Tx, commanderID uint32, placedData []byte) error
- func UpsertIslandAgoraThemeTx(ctx context.Context, tx pgx.Tx, commanderID uint32, slotID uint32, name string, ...) error
- func UpsertIslandCardState(state *IslandCardState) error
- func UpsertIslandCollectFragmentSignState(state *IslandCollectFragmentSignState) error
- func UpsertIslandCommanderDressProfile(profile *IslandCommanderDressProfile) error
- func UpsertIslandCommanderDressState(entry *IslandCommanderDressState) error
- func UpsertIslandDelegation(slot *IslandDelegation) error
- func UpsertIslandDelegationTx(ctx context.Context, tx pgx.Tx, slot *IslandDelegation) error
- func UpsertIslandFishingStateTx(ctx context.Context, tx pgx.Tx, state *IslandFishingState) error
- func UpsertIslandHandPlantTx(ctx context.Context, tx pgx.Tx, value *IslandHandPlant) error
- func UpsertIslandManageTradeTx(ctx context.Context, tx pgx.Tx, commanderID uint32, ...) error
- func UpsertIslandNPCFeedbackState(state *IslandNPCFeedbackState) error
- func UpsertIslandOrderSlotTx(ctx context.Context, tx pgx.Tx, commanderID uint32, ...) error
- func UpsertIslandOverflowInventory(commanderID uint32, itemID uint32, count uint32) error
- func UpsertIslandRoleDressState(state *IslandRoleDressState) error
- func UpsertIslandRuntimeShipOrderSlotTx(ctx context.Context, tx pgx.Tx, slot *IslandShipOrderSlot) error
- func UpsertIslandShip(ship *IslandShip) error
- func UpsertIslandShipDressTx(ctx context.Context, tx pgx.Tx, commanderID uint32, shipID uint32, ...) error
- func UpsertIslandShipOrderAppointTx(ctx context.Context, tx pgx.Tx, commanderID uint32, ...) error
- func UpsertIslandShipOrderSlot(slot *IslandShipOrderSlot) error
- func UpsertIslandShipOrderSlotDataTx(ctx context.Context, tx pgx.Tx, commanderID uint32, ...) error
- func UpsertIslandShipOrderSlotTx(ctx context.Context, tx pgx.Tx, slot *IslandShipOrderSlot) error
- func UpsertIslandShipSkinState(state *IslandShipSkinState) error
- func UpsertIslandShipTx(ctx context.Context, tx pgx.Tx, ship *IslandShip) error
- func UpsertIslandShopState(state *IslandShopState) error
- func UpsertIslandShopStateTx(ctx context.Context, tx pgx.Tx, state *IslandShopState) error
- func UpsertIslandSignInState(state *IslandSignInState) error
- func UpsertIslandSlotCollectStateTx(ctx context.Context, tx pgx.Tx, state *IslandSlotCollectState) error
- func UpsertIslandSnapshot(snapshot *IslandSnapshot) error
- func UpsertIslandSnapshotTx(ctx context.Context, tx pgx.Tx, snapshot *IslandSnapshot) error
- func UpsertIslandSpeedupTarget(commanderID uint32, targetType uint32, targetID uint32, endTime uint32) error
- func UpsertIslandSpeedupTargetTx(ctx context.Context, tx pgx.Tx, commanderID uint32, targetType uint32, ...) error
- func UpsertIslandSpeedupTicket(commanderID uint32, speedID uint32, endTime uint32, count uint32) error
- func UpsertIslandTechnologyState(state *IslandTechnologyState) error
- func UpsertIslandTreasureState(state *IslandTreasureState) error
- func UpsertIslandTreasureStateTx(ctx context.Context, tx pgx.Tx, state *IslandTreasureState) error
- func UpsertIslandWildGatherSignState(state *IslandWildGatherSignState) error
- func UpsertJuustagramPlayerDiscuss(entry *JuustagramPlayerDiscuss) error
- func UpsertNewServerShopState(state *NewServerShopState) error
- func UpsertNewServerShopStateTx(ctx context.Context, tx pgx.Tx, state *NewServerShopState) error
- func UpsertOwnedShipEquipmentTx(ctx context.Context, tx pgx.Tx, entry *OwnedShipEquipment) error
- func UpsertOwnedShipShadowSkin(_ any, commanderID uint32, shipID uint32, shadowID uint32, skinID uint32) error
- func UpsertOwnedShipStrengthTx(ctx context.Context, tx pgx.Tx, entry *OwnedShipStrength) error
- func UpsertOwnedShipTransformTx(ctx context.Context, tx pgx.Tx, entry *OwnedShipTransform) error
- func UpsertOwnedSpWeaponTx(ctx context.Context, tx pgx.Tx, entry *OwnedSpWeapon) error
- func UpsertRandomFlagShipEntry(entry RandomFlagShip) error
- func UpsertRemasterProgress(entry *RemasterProgress) error
- func UpsertSubmarineState(state *SubmarineExpeditionState) error
- func UpsertSurveyState(state *SurveyState) error
- func ValidateJuustagramChatGroupIDs(groupIDs []uint32) error
- func ValidateOwnedShipTemplateID(shipID uint32) error
- func ValidateShipID(shipID uint32) error
- func WebAuthnCredentialExists(credentialID string) (bool, error)
- func WebAuthnCredentialExistsForUser(userID string, credentialID string) (bool, error)
- func WithIslandTaskProgressTx(commanderID uint32, now time.Time, fn func(state *IslandTaskProgress) error) error
- func WithPGXTx(ctx context.Context, fn func(tx pgx.Tx) error) error
- func WithTx(ctx context.Context, fn func(q *gen.Queries) error) error
- func WithWeeklyTaskProgressTx(commanderID uint32, fn func(state *WeeklyTaskProgress) error) error
- type Account
- func ConsumeUserRegistrationChallenge(commanderID uint32, pin string, now time.Time) (*Account, error)
- func ConsumeUserRegistrationChallengeByID(id string, pin string, now time.Time) (*Account, error)
- func ConsumeUserRegistrationChallengeByIDWithContext(ctx context.Context, id string, pin string, now time.Time) (*Account, error)
- func ConsumeUserRegistrationChallengeWithContext(ctx context.Context, commanderID uint32, pin string, now time.Time) (*Account, error)
- func GetAccountByCommanderID(commanderID uint32) (*Account, error)
- func GetAccountByID(accountID string) (*Account, error)
- func GetAccountByUsernameNormalized(usernameNormalized string) (*Account, error)
- func GetAccountByWebAuthnUserHandle(handle []byte) (*Account, error)
- func ListAdminAccounts(offset int, limit int) ([]Account, int64, error)
- type AccountOverrideEntry
- type AccountPermissionOverride
- type AccountRole
- type ActivityFleet
- type ActivityFleetCommander
- type ActivityFleetGroup
- type ActivityFleetGroupList
- type ActivityPermanentState
- type ActivityStoreState
- type ArenaShopState
- type AtelierBuffSlotState
- type AtelierState
- type AuditLog
- type AuthChallenge
- type BackyardCustomThemeTemplate
- type BackyardPublishedThemeVersion
- func CreateBackyardPublishedThemeVersionTx(ctx context.Context, tx pgx.Tx, commanderID uint32, pos uint32, name string, ...) (BackyardPublishedThemeVersion, error)
- func LatestBackyardPublishedThemeVersion(themeID string) (*BackyardPublishedThemeVersion, error)
- func ListLatestBackyardPublishedThemeVersions() ([]BackyardPublishedThemeVersion, error)
- type BackyardThemeCollection
- type BackyardThemeInform
- type BackyardThemeLike
- type BattleSession
- type Buff
- type Build
- type BuildInfoPayload
- type ChallengeCommanderSlot
- type ChallengeModeState
- type ChapterDrop
- type ChapterProgress
- type ChapterProgressListResult
- type ChapterState
- type ChapterStateListResult
- type CityRebuildRecruit
- type CityRebuildState
- type ColoringAwardState
- type ColoringCellState
- type ColoringDropState
- type Commander
- func (c *Commander) AddItem(itemId uint32, amount uint32) error
- func (c *Commander) AddItemTx(ctx context.Context, tx pgx.Tx, itemId uint32, amount uint32) error
- func (c *Commander) AddOwnedEquipmentTx(ctx context.Context, tx pgx.Tx, equipmentID uint32, count uint32) error
- func (c *Commander) AddResource(resourceId uint32, amount uint32) error
- func (c *Commander) AddResourceTx(ctx context.Context, tx pgx.Tx, resourceId uint32, amount uint32) error
- func (c *Commander) AddShip(shipId uint32) (*OwnedShip, error)
- func (c *Commander) AddShipTx(ctx context.Context, tx pgx.Tx, shipId uint32) (*OwnedShip, error)
- func (c *Commander) BumpLastLogin() error
- func (c *Commander) CleanMailbox() error
- func (c *Commander) Commit() error
- func (c *Commander) ConsumeItem(itemId uint32, count uint32) error
- func (c *Commander) ConsumeItemTx(ctx context.Context, tx pgx.Tx, itemId uint32, count uint32) error
- func (c *Commander) ConsumeResource(resourceId uint32, count uint32) error
- func (c *Commander) ConsumeResourceTx(ctx context.Context, tx pgx.Tx, resourceId uint32, count uint32) error
- func (c *Commander) CreateBuild(poolId uint32, runningBuilds *int) (*Build, uint32, error)
- func (c *Commander) DestroyShips(shipIds []uint32) error
- func (c *Commander) EnsureSupportRequisitionMonth(now time.Time) bool
- func (c *Commander) EquipmentBagCount() uint32
- func (c *Commander) GetBuildRange(minPos, maxPos uint32) ([]Build, error)
- func (c *Commander) GetItem(itemId uint32) (CommanderItem, error)
- func (c *Commander) GetItemCount(itemId uint32) uint32
- func (c *Commander) GetOwnedEquipment(equipmentID uint32) *OwnedEquipment
- func (c *Commander) GetResource(resourceId uint32) (OwnedResource, error)
- func (c *Commander) GetResourceCount(resourceId uint32) uint32
- func (c *Commander) GetSecretaries() []*OwnedShip
- func (c *Commander) GiveSkin(skinId uint32) error
- func (c *Commander) GiveSkinTx(ctx context.Context, tx pgx.Tx, skinId uint32) error
- func (c *Commander) GiveSkinWithExpiry(skinId uint32, expiresAt *time.Time) error
- func (c *Commander) HasEnoughCube(n uint32) bool
- func (c *Commander) HasEnoughGold(n uint32) bool
- func (c *Commander) HasEnoughItem(itemId uint32, n uint32) bool
- func (c *Commander) HasEnoughResource(resourceId uint32, n uint32) bool
- func (c *Commander) IncrementDrawCount(count uint32) error
- func (c *Commander) IncrementExchangeCount(n uint32) error
- func (c *Commander) IncrementReserveUsage(count uint32) error
- func (c *Commander) Like(groupId uint32) error
- func (c *Commander) Load() error
- func (c *Commander) ProposeShip(shipId uint32) (bool, error)
- func (c *Commander) Punish(liftTimestamp *time.Time, permanent bool) error
- func (c *Commander) RebuildOwnedEquipmentMap()
- func (c *Commander) RebuildOwnedSpWeaponMap()
- func (c *Commander) RemoveOwnedEquipmentTx(ctx context.Context, tx pgx.Tx, equipmentID uint32, count uint32) error
- func (c *Commander) RemoveOwnedSpWeaponTx(ctx context.Context, tx pgx.Tx, spweaponID uint32) error
- func (c *Commander) RemoveSecretaries() error
- func (c *Commander) RetireShips(shipIds *[]uint32) error
- func (c *Commander) RevokeActivePunishment() error
- func (c *Commander) SaveTx(ctx context.Context, tx pgx.Tx) error
- func (c *Commander) SendMail(mail *Mail) error
- func (c *Commander) SendMailTx(ctx context.Context, tx pgx.Tx, mail *Mail) error
- func (c *Commander) SetItem(itemId uint32, amount uint32) error
- func (c *Commander) SetOwnedEquipmentTx(ctx context.Context, tx pgx.Tx, equipmentID uint32, count uint32) error
- func (c *Commander) SetResource(resourceId uint32, amount uint32) error
- func (c *Commander) UpdateRoom(roomID uint32) error
- func (c *Commander) UpdateSecretaries(updates []SecretaryUpdate) error
- type CommanderAbilityGroup
- type CommanderAbilityTemplate
- type CommanderActivityTask
- type CommanderAppreciationState
- type CommanderAttire
- type CommanderBox
- func ApplyCommanderQuickFinishTx(ctx context.Context, tx pgx.Tx, boxes []CommanderBox, now uint32, ...) ([]CommanderBox, error)
- func EnsureCommanderBoxes(commanderID uint32) ([]CommanderBox, error)
- func GetCommanderBox(commanderID uint32, boxID uint32) (*CommanderBox, error)
- func ListCommanderBoxes(commanderID uint32) ([]CommanderBox, error)
- type CommanderBuff
- type CommanderChargeSuccessEvent
- type CommanderColoringState
- type CommanderCommonFlag
- type CommanderCreateMaterialConfig
- type CommanderDataTemplateConfig
- type CommanderDormFloorLayout
- type CommanderDormState
- type CommanderDormTheme
- type CommanderFleetTechState
- func GetCommanderFleetTechState(commanderID uint32) (*CommanderFleetTechState, error)
- func GetCommanderFleetTechStateTx(ctx context.Context, tx pgx.Tx, commanderID uint32) (*CommanderFleetTechState, error)
- func GetOrCreateCommanderFleetTechState(commanderID uint32) (*CommanderFleetTechState, error)
- func GetOrCreateCommanderFleetTechStateTx(ctx context.Context, tx pgx.Tx, commanderID uint32) (*CommanderFleetTechState, error)
- type CommanderFriendRelation
- type CommanderFurniture
- type CommanderGameSet
- type CommanderHome
- type CommanderHomeSlot
- type CommanderIslandSocialState
- func GetCommanderIslandSocialState(commanderID uint32) (*CommanderIslandSocialState, error)
- func GetCommanderIslandSocialStateForUpdateTx(ctx context.Context, tx pgx.Tx, commanderID uint32) (*CommanderIslandSocialState, error)
- func GetOrCreateCommanderIslandSocialState(commanderID uint32) (*CommanderIslandSocialState, error)
- type CommanderIslandTradeInviteState
- type CommanderItem
- type CommanderLivingAreaCover
- type CommanderLoveLetterState
- type CommanderMedalDisplay
- type CommanderMeow
- type CommanderMetaPtProgress
- func GetCommanderMetaPtProgress(commanderID uint32, groupID uint32) (*CommanderMetaPtProgress, error)
- func GetOrCreateCommanderMetaPtProgress(commanderID uint32, groupID uint32) (*CommanderMetaPtProgress, error)
- func GetOrCreateCommanderMetaPtProgressTx(ctx context.Context, tx pgx.Tx, commanderID uint32, groupID uint32) (*CommanderMetaPtProgress, error)
- func ListCommanderMetaPtProgress(commanderID uint32) ([]CommanderMetaPtProgress, error)
- type CommanderMetaTacticsSkillState
- type CommanderMetaTacticsState
- type CommanderMetaTacticsTaskProgress
- type CommanderMiniGameScore
- type CommanderMiscItem
- type CommanderPacketState
- type CommanderPrefabFleet
- type CommanderPrefabSlot
- type CommanderQuickFinishCounts
- type CommanderShipSkill
- type CommanderShipyardBlueprint
- type CommanderShipyardState
- type CommanderSkillClass
- type CommanderSocialProfile
- func GetCommanderSocialProfile(commanderID uint32) (CommanderSocialProfile, error)
- func GetCommanderSocialProfileByID(commanderID uint32) (*CommanderSocialProfile, error)
- func GetCommanderSocialProfileByName(name string) (*CommanderSocialProfile, error)
- func ListCommanderSocialProfilesForRecommendations(excludeCommanderID uint32, limit int) ([]CommanderSocialProfile, error)
- func ListFriendProfiles(commanderID uint32) ([]CommanderSocialProfile, error)
- type CommanderSoundStory
- type CommanderStoreupAwardProgress
- type CommanderStory
- type CommanderSurvey
- type CommanderTB
- type CommanderTacticsQuickFinish
- type CommanderTask
- type CommanderTrophyProgress
- func GetCommanderTrophyProgress(commanderID uint32, trophyID uint32) (*CommanderTrophyProgress, error)
- func GetOrCreateCommanderTrophyProgress(commanderID uint32, trophyID uint32, progress uint32) (*CommanderTrophyProgress, bool, error)
- func ListCommanderTrophyProgress(commanderID uint32) ([]CommanderTrophyProgress, error)
- type Compensation
- type CompensationAttachment
- type ComposeDataTemplateEntry
- type ConfigEntry
- type Debug
- type DebugName
- type DeviceAuthMap
- type Dorm3dActInfo
- type Dorm3dApartment
- func GetDorm3dApartment(commanderID uint32) (*Dorm3dApartment, error)
- func GetDorm3dApartmentTx(ctx context.Context, tx pgx.Tx, commanderID uint32) (*Dorm3dApartment, error)
- func GetOrCreateDorm3dApartment(commanderID uint32) (*Dorm3dApartment, error)
- func GetOrCreateDorm3dApartmentTx(ctx context.Context, tx pgx.Tx, commanderID uint32) (*Dorm3dApartment, error)
- func ListDorm3dApartments(offset int, limit int) ([]Dorm3dApartment, int64, error)
- func NewDorm3dApartment(commanderID uint32) Dorm3dApartment
- func (apartment *Dorm3dApartment) AddRoom(room Dorm3dRoom) bool
- func (apartment *Dorm3dApartment) EnsureDefaults()
- func (apartment *Dorm3dApartment) FindGift(giftID uint32) *Dorm3dGift
- func (apartment *Dorm3dApartment) FindShip(shipGroup uint32) *Dorm3dShip
- func (apartment *Dorm3dApartment) RoomByID(roomID uint32) *Dorm3dRoom
- type Dorm3dCommInfo
- type Dorm3dEventInfo
- type Dorm3dFriendCircleInfo
- type Dorm3dFurniture
- type Dorm3dGift
- type Dorm3dGiftList
- type Dorm3dGiftShop
- type Dorm3dGiftShopList
- type Dorm3dIns
- type Dorm3dInsList
- type Dorm3dKeyValue
- type Dorm3dPhoneInfo
- type Dorm3dReplyFriend
- type Dorm3dRoom
- type Dorm3dRoomList
- type Dorm3dShip
- type Dorm3dShipList
- type Dorm3dSkinHiddenInfo
- type EducateShopGoodsState
- type EducateShopState
- type EquipCodeLike
- type EquipCodeReport
- type EquipCodeShare
- type EquipUpgradeData
- type EquipUpgradeMaterial
- type Equipment
- type EscortState
- type EventCollection
- type ExchangeCode
- type ExchangeCodeRedeem
- type ExerciseFleet
- type FeastPartyRole
- type FeastSpecialRole
- type FeastState
- type Fleet
- type FleetTechAttrOverride
- type FleetTechGroupState
- type FriendDirectMessage
- type FriendLink
- type FriendRelationship
- type FriendRequest
- type GameRoomScore
- type GameRoomState
- type GlobalSkinRestriction
- type GlobalSkinRestrictionWindow
- type Guild
- type GuildAssaultFleetSlot
- type GuildAssaultRecommendation
- type GuildBossMissionCommander
- type GuildBossMissionFleet
- type GuildBossMissionShip
- type GuildCapitalLogEntry
- type GuildChatMessage
- type GuildDirectoryEntry
- type GuildJoinRequest
- type GuildMember
- type GuildMemberRankEntry
- type GuildOfficeState
- type GuildOperationBossRank
- type GuildOperationBossState
- type GuildOperationEvent
- type GuildOperationPerf
- type GuildOperationState
- type GuildReport
- type GuildReportNode
- type GuildReportRank
- type GuildShopGood
- type GuildShopState
- type GuildUserInfo
- type GuildWeeklyTaskState
- type Int64List
- type IslandAchievementProgressEntry
- type IslandAchievementState
- func (state *IslandAchievementState) HasFinished(achievementID uint32) bool
- func (state *IslandAchievementState) ProgressValue(eventType uint32, eventArg uint32) (uint32, bool)
- func (state *IslandAchievementState) SetProgress(eventType uint32, eventArg uint32, value uint32)
- func (IslandAchievementState) TableName() string
- type IslandAgoraPlacement
- type IslandAgoraTheme
- type IslandBookCollectEntry
- type IslandBookCollectLevel
- type IslandBookCond
- type IslandBookState
- type IslandCapState
- type IslandCardLabelCount
- type IslandCardState
- type IslandCollectFragmentSignState
- type IslandCollectFragmentState
- type IslandCollectionCompleteState
- type IslandCommanderDressProfile
- type IslandCommanderDressState
- type IslandCurDress
- type IslandDelegation
- func GetIslandDelegation(commanderID uint32, buildID uint32, areaID uint32) (*IslandDelegation, error)
- func GetIslandDelegationByAreaForUpdateTx(ctx context.Context, tx pgx.Tx, commanderID uint32, areaID uint32) (*IslandDelegation, error)
- func GetIslandDelegationForUpdateTx(ctx context.Context, tx pgx.Tx, commanderID uint32, buildID uint32, ...) (*IslandDelegation, error)
- type IslandFishWeightState
- type IslandFishingState
- type IslandFollower
- type IslandHandPlant
- func ListIslandHandPlantsByBuild(commanderID uint32, buildID uint32) ([]IslandHandPlant, error)
- func ListIslandHandPlantsBySlotIDsForUpdateTx(ctx context.Context, tx pgx.Tx, commanderID uint32, slotIDs []uint32) ([]IslandHandPlant, error)
- func ListIslandHandPlantsBySlotIDsTx(ctx context.Context, tx pgx.Tx, commanderID uint32, slotIDs []uint32) ([]IslandHandPlant, error)
- type IslandInventory
- type IslandManageTrade
- type IslandNPCFeedbackState
- type IslandNodeState
- type IslandOrderState
- type IslandOverflowInventory
- type IslandProsperityState
- type IslandRoleDressState
- type IslandSeason
- type IslandShip
- type IslandShipAttr
- type IslandShipBuff
- type IslandShipDressState
- type IslandShipOrderAppoint
- type IslandShipOrderCost
- type IslandShipOrderSlot
- type IslandShipOrderState
- type IslandShipSkinState
- type IslandShopGoodsState
- type IslandShopState
- type IslandSignInState
- type IslandSlotCollectState
- type IslandSnapshot
- type IslandSpeedupTarget
- type IslandSpeedupTicket
- type IslandSpeedupTicketConsume
- type IslandSpeedupTicketKey
- type IslandTaskEntry
- type IslandTaskProgress
- type IslandTaskTargetProcess
- type IslandTechnologyState
- type IslandTreasurePriceState
- type IslandTreasureSellState
- type IslandTreasureState
- type IslandWildGatherCollectState
- type IslandWildGatherSignState
- type Item
- type ItemDataStatisticsConfig
- type ItemListResult
- type ItemQueryParams
- type JuustagramChatGroup
- func AddJuustagramChatReply(commanderID uint32, chatGroupID uint32, chatID uint32, value uint32, ...) (*JuustagramChatGroup, error)
- func CreateJuustagramChatGroup(commanderID uint32, groupID uint32, chatGroupID uint32, opTime uint32) (*JuustagramChatGroup, error)
- func GetJuustagramChatGroup(commanderID uint32, chatGroupID uint32) (*JuustagramChatGroup, error)
- type JuustagramGroup
- func CreateJuustagramGroup(commanderID uint32, groupID uint32, chatGroupID uint32) (*JuustagramGroup, error)
- func EnsureJuustagramGroupExists(commanderID uint32, groupID uint32, chatGroupID uint32) (*JuustagramGroup, error)
- func GetJuustagramGroup(commanderID uint32, groupID uint32) (*JuustagramGroup, error)
- func GetJuustagramGroupByRecordID(commanderID uint32, groupRecordID uint32) (*JuustagramGroup, error)
- func GetJuustagramGroups(commanderID uint32) ([]JuustagramGroup, error)
- func ListJuustagramGroups(commanderID uint32, offset int, limit int) ([]JuustagramGroup, int64, error)
- type JuustagramLanguage
- type JuustagramMessageState
- func GetJuustagramMessageState(commanderID uint32, messageID uint32) (*JuustagramMessageState, error)
- func GetOrCreateJuustagramMessageState(commanderID uint32, messageID uint32, now uint32) (*JuustagramMessageState, error)
- func ListJuustagramMessageStatesByCommander(commanderID uint32) ([]JuustagramMessageState, error)
- type JuustagramNpcTemplate
- type JuustagramPlayerDiscuss
- type JuustagramReply
- type JuustagramReplyList
- type JuustagramShipGroupTemplate
- type JuustagramTemplate
- type JuustagramTimeConfig
- type JuustagramUint32List
- type LegacyEducateState
- type Like
- type LimitChallengeState
- type LocalAccount
- type LoveLetterConvertedItem
- type LoveLetterLetterState
- type LoveLetterMedalState
- type Mail
- func (m *Mail) CollectAttachments(commander *Commander) ([]MailAttachment, error)
- func (m *Mail) Create() error
- func (m *Mail) Delete() error
- func (m *Mail) SetArchived(archived bool) error
- func (m *Mail) SetImportant(important bool) error
- func (m *Mail) SetRead(read bool) error
- func (m *Mail) Update() error
- type MailAttachment
- type MedalShopGood
- type MedalShopState
- type Message
- type MetaTacticsSkillSlot
- type MiniGameConfig
- type MiniGameDataState
- type MiniGameHubConfig
- type MiniGameHubState
- type MiniGameKVListState
- type MiniGameKVState
- type MiniGameScoreEntry
- type MiniGameShopGood
- type MiniGameShopState
- type MiniGameTelemetryState
- type MonthShopPurchase
- type NavalAcademyRuntime
- type NewServerShopGoodsState
- type NewServerShopState
- type Notice
- type NoticeListResult
- type NoticeQueryParams
- type OwnedEquipment
- type OwnedResource
- type OwnedShip
- type OwnedShipEquipment
- type OwnedShipShadowSkin
- type OwnedShipStrength
- type OwnedShipTransform
- type OwnedSkin
- type OwnedSpWeapon
- type PendingFriendRequest
- type Permission
- type PlayerBanStatus
- type PlayerInform
- type PlayerListResult
- type PlayerQueryParams
- type PlayerSummaryStats
- type Punishment
- func ActivePunishment(commanderID uint32) (*Punishment, error)
- func GetPunishmentByCommanderAndID(commanderID uint32, punishmentID uint32) (*Punishment, error)
- func ListPermanentPunishmentsByCommanderIDs(commanderIDs []uint32) ([]Punishment, error)
- func ListPunishmentsByCommanderID(commanderID uint32) ([]Punishment, error)
- type RandomFlagShip
- type RandomFlagShipUpdate
- type Rarity
- type RefluxState
- type RemasterProgress
- type RemasterState
- type RequisitionShip
- type Resource
- type ResourceListResult
- type ResourceQueryParams
- type Role
- type RolePermission
- type RolePolicyEntry
- type SecondaryPasswordState
- type SecretaryUpdate
- type Session
- type Ship
- type ShipBreakoutConfig
- type ShipDataBlueprintConfig
- type ShipDataStatisticsConfig
- type ShipDataTemplateMetaConfig
- type ShipEquipConfig
- type ShipListResult
- type ShipMetaBreakoutConfig
- type ShipMetaRepairConfig
- type ShipMetaSkillTaskConfig
- type ShipQueryParams
- type ShipStrengthenBlueprintConfig
- type ShipStrengthenConfig
- type ShipStrengthenMetaConfig
- type ShipTemplateConfig
- type ShipType
- type ShipyardTaskTemplateConfig
- type ShopOffer
- type ShopOfferListResult
- type ShopOfferQueryParams
- type ShoppingStreetGood
- type ShoppingStreetState
- type Skill
- type SkillDataTemplateConfig
- type Skin
- type SkinListResult
- type SkinQueryParams
- type SpWeaponDataStatisticsConfig
- type SpWeaponResetMaterial
- type SpWeaponUpgradeConfig
- type StringList
- type SubmarineExpeditionState
- type SupportRarityWeight
- type SupportRequisitionConfig
- type SurveyState
- type TechnologyDataTemplate
- type TechnologyProjectState
- type TechnologyQueueState
- type TechnologyRefreshPoolState
- type TechnologyResearchState
- func GetOrCreateTechnologyResearchState(commanderID uint32) (*TechnologyResearchState, error)
- func GetOrCreateTechnologyResearchStateForUpdateTx(ctx context.Context, tx pgx.Tx, commanderID uint32) (*TechnologyResearchState, error)
- func GetTechnologyResearchState(commanderID uint32) (*TechnologyResearchState, error)
- func GetTechnologyResearchStateForUpdateTx(ctx context.Context, tx pgx.Tx, commanderID uint32) (*TechnologyResearchState, error)
- type TechnologyShadowUnlockConfig
- type TransformDataTemplate
- type UserRegistrationChallenge
- type Weapon
- type WebAuthnCredential
- type WeeklyTaskEntry
- type WeeklyTaskProgress
- type WorldBossBossState
- type WorldBossRankEntry
- type WorldBossState
- func (state *WorldBossState) GetRankings(bossID uint32) []WorldBossRankEntry
- func (state *WorldBossState) IsRewardClaimed(bossID uint32) bool
- func (state *WorldBossState) SetRankings(bossID uint32, values []WorldBossRankEntry)
- func (state *WorldBossState) SetRewardClaimed(bossID uint32, claimed bool)
- type WorldRuntime
- type YostarusMap
Constants ¶
const ( PermissionOverrideAllow = "allow" PermissionOverrideDeny = "deny" )
const ( MSG_TYPE_BANNED = 100 MSG_ACTOBSS_WORD = 1000 // litterally no idea wtf this is MSG_TYPE_NORMAL = 1 )
const ( ActivityTaskProgressModeSet = uint32(0) ActivityTaskProgressModeAppend = uint32(1) )
const ( CommanderCatteryOpClean = uint32(1) CommanderCatteryOpFeed = uint32(2) CommanderCatteryOpPlay = uint32(3) )
const ( TaskProgressUpdate = uint32(0) TaskProgressAppend = uint32(1) )
const ( Dorm3dInstagramOpRead uint32 = 3 Dorm3dInstagramOpLike uint32 = 4 Dorm3dInstagramOpExit uint32 = 6 )
const ( GuildDutyCommander uint32 = 1 GuildDutyDeputy uint32 = 2 GuildDutyOrdinary uint32 = 4 GuildDutyRecruit uint32 = 5 )
const ( GuildCapitalLogCategoryIncrease = uint32(1) GuildCapitalLogCategoryDecrease = uint32(2) GuildCapitalLogCategoryOther = uint32(3) )
const ( UserRegistrationStatusPending = "pending" UserRegistrationStatusConsumed = "consumed" UserRegistrationStatusExpired = "expired" )
const DefaultMetaTacticsSwitchCount uint32 = 3
const GuildAssaultRecommendationLimit = uint32(9)
Variables ¶
var ( ErrDorm3dShipNotFound = errors.New("dorm3d ship not found") ErrDorm3dRoomNotFound = errors.New("dorm3d room not found") ErrDorm3dCollectionInvalid = errors.New("dorm3d collection invalid") ErrDorm3dCollectionShipGroup = errors.New("dorm3d collection ship group mismatch") ErrDorm3dDialogueInvalid = errors.New("dorm3d dialogue invalid") ErrDorm3dCommNotFound = errors.New("dorm3d comm topic not found") ErrDorm3dInvalidCommShip = errors.New("dorm3d comm topic does not belong to ship") ErrDorm3dInvalidCallName = errors.New("dorm3d call name invalid") ErrDorm3dInvalidBackground = errors.New("dorm3d background not available") ErrDorm3dSkinNotAvailable = errors.New("dorm3d skin not available") ErrDorm3dHiddenSkinInvalid = errors.New("dorm3d hidden skin invalid") ErrDorm3dCollectionRoomConfig = errors.New("dorm3d room config invalid") ErrDorm3dUnsupportedActType = errors.New("dorm3d unsupported unlock act type") ErrDorm3dUnlockTargetMissing = errors.New("dorm3d unlock target missing") )
var ( ErrInvalidShipID = errors.New("invalid ship id") ErrShipBusy = errors.New("ship is busy") )
var ( ErrGuildNameExists = errors.New("guild name already exists") ErrCommanderInGuild = errors.New("commander already in guild") ErrCommanderNotInGuild = errors.New("commander is not in guild") ErrGuildPermission = errors.New("guild permission denied") ErrGuildInvalidArgument = errors.New("invalid guild argument") ErrGuildInsufficientCap = errors.New("guild capital is insufficient") )
var ( ErrRenameInCooldown = errors.New("renaming is still in cooldown") ErrNotProposed = errors.New("commander hasn't proposed this ship") )
var ( ErrUserAccountExists = errors.New("user account exists") ErrRegistrationChallengeExists = errors.New("registration challenge exists") ErrRegistrationChallengeNotFound = errors.New("registration challenge not found") ErrRegistrationChallengeConsumed = errors.New("registration challenge consumed") ErrRegistrationChallengeExpired = errors.New("registration challenge expired") ErrRegistrationChallengeMismatch = errors.New("registration challenge mismatch") ErrRegistrationChallengePinMismatch = errors.New("registration challenge pin mismatch") ErrRegistrationPinExists = errors.New("registration pin exists") )
var ErrCommanderNameExists = errors.New("commander name already exists")
var ErrFriendRequestNotFound = errors.New("friend request not found")
var ErrInsufficientIslandInventory = errors.New("insufficient island inventory")
var ErrInsufficientIslandOverflowInventory = errors.New("insufficient island overflow inventory")
var ErrInvalidActivityTaskProgressMode = errors.New("invalid activity task progress mode")
var ErrNoQuickFinishAllowance = errors.New("no quick finish allowance")
var ErrSkillClassConflict = errors.New("skill class conflict")
var (
ErrorNotEnoughQuickFinishers = errors.New("not enough quick finishers")
)
Functions ¶
func AcceptFriendRequest ¶
func AcceptGuildJoinRequest ¶
func ActivateGuildOperation ¶
func AddChapterDrop ¶
func AddChapterDrop(drop *ChapterDrop) error
func AddCommanderFurnitureTx ¶
func AddCommanderStory ¶
func AddDorm3dInstagramReply ¶
func AddFriendBlacklist ¶
func AddGuildCapital ¶
func AddGuildMemberLiveness ¶
func AddIslandBookCondTx ¶
func AddIslandCardLabelCount ¶
func AddIslandCardLabelCount(state *IslandCardState, labelID uint32)
func AddIslandCardLikeTx ¶
func AddIslandFollowerTx ¶
func AddIslandInventoryTx ¶
func AddIslandOrderFavorTx ¶
func AddIslandRoleDressNum ¶
func AddIslandSeasonPTTx ¶
func AddIslandShipInvite ¶
func ApplyRandomFlagShipUpdates ¶
func ApplyRandomFlagShipUpdates(_ any, commanderID uint32, updates []RandomFlagShipUpdate) error
func ApplyRemasterDailyReset ¶
func ApplyRemasterDailyReset(state *RemasterState, now time.Time) bool
func AssignRoleByName ¶
func BackyardThemeID ¶
func BatchGetCommanderIslandSocialStates ¶
func BatchGetCommanderIslandSocialStates(commanderIDs []uint32) (map[uint32]*CommanderIslandSocialState, error)
func CancelEventCollection ¶
func ChangeDorm3dShipSkin ¶
func CommanderCatteryOpBit ¶
func CommanderExists ¶
func CommanderHasAttire ¶
func CommanderIDExists ¶
func CommanderNameExists ¶
func CompensationSummary ¶
func CompensationSummary(compensations []Compensation, now time.Time) (uint32, uint32)
func CountAdminAccounts ¶
func CountFriends ¶
func CountGuildMembersByDuty ¶
func CreateAccount ¶
func CreateArenaShopState ¶
func CreateArenaShopState(state ArenaShopState) error
func CreateAuditLog ¶
func CreateBuffRecord ¶
func CreateCommanderRoot ¶
func CreateConfigEntryRecord ¶
func CreateConfigEntryRecord(entry *ConfigEntry) error
func CreateDorm3dApartment ¶
func CreateDorm3dApartment(apartment *Dorm3dApartment) error
func CreateEquipmentRecord ¶
func CreateExchangeCode ¶
func CreateExchangeCode(code *ExchangeCode) error
func CreateFleet ¶
Creates a fleet for the given commander, with the given ships
func CreateFriendLinkPair ¶
func CreateFriendRequest ¶
func CreateGlobalSkinRestriction ¶
func CreateGlobalSkinRestriction(restriction *GlobalSkinRestriction) error
func CreateGlobalSkinRestrictionWindow ¶
func CreateGlobalSkinRestrictionWindow(window *GlobalSkinRestrictionWindow) error
func CreateGuild ¶
func CreateGuildCapitalLog ¶
func CreateGuildCapitalLog(guildID uint32, entry GuildCapitalLogEntry) error
func CreateGuildShopGood ¶
func CreateGuildShopGood(good GuildShopGood) error
func CreateGuildShopState ¶
func CreateGuildShopState(state GuildShopState) error
func CreateItemRecord ¶
func CreateJuustagramLanguage ¶
func CreateJuustagramLanguage(entry *JuustagramLanguage) error
func CreateJuustagramNpcTemplate ¶
func CreateJuustagramNpcTemplate(template *JuustagramNpcTemplate) error
func CreateJuustagramShipGroupTemplate ¶
func CreateJuustagramShipGroupTemplate(template *JuustagramShipGroupTemplate) error
func CreateJuustagramTemplate ¶
func CreateJuustagramTemplate(template *JuustagramTemplate) error
func CreateLocalAccount ¶
func CreateLocalAccount(entry LocalAccount) error
func CreateMedalShopGood ¶
func CreateMedalShopGood(good MedalShopGood) error
func CreateMedalShopState ¶
func CreateMedalShopState(state MedalShopState) error
func CreateMiniGameShopGood ¶
func CreateMiniGameShopGood(good MiniGameShopGood) error
func CreateMiniGameShopState ¶
func CreateMiniGameShopState(state MiniGameShopState) error
func CreateRarity ¶
func CreateRequisitionShip ¶
func CreateResourceRecord ¶
func CreateShipType ¶
func CreateShopOffer ¶
func CreateShoppingStreetGood ¶
func CreateShoppingStreetGood(good ShoppingStreetGood) error
func CreateShoppingStreetState ¶
func CreateShoppingStreetState(state ShoppingStreetState) error
func CreateSkillRecord ¶
func CreateSkinRecord ¶
func CreateWeaponRecord ¶
func CreateWebAuthnCredential ¶
func CreateWebAuthnCredential(record *WebAuthnCredential) error
func CreateYostarusMap ¶
func CurrentDayResetUnix ¶
func CurrentTechnologyDay ¶
func CurrentWeeklyResetUnix ¶
func DealiasResource ¶
func DealiasResource(resourceId *uint32)
Some resources are aliases, for example id=14 = freeGem <=> id=4 = gem
func DefaultJuustagramOpTime ¶
func DefaultJuustagramOpTime() uint32
func DeleteAccountByID ¶
func DeleteArenaShopState ¶
func DeleteBattleSession ¶
func DeleteBuffRecord ¶
func DeleteChapterProgress ¶
func DeleteChapterState ¶
func DeleteCommander ¶
func DeleteCommanderAttire ¶
func DeleteCommanderBuff ¶
func DeleteCommanderItem ¶
func DeleteCommanderItemTx ¶
func DeleteCommanderMeowsTx ¶
func DeleteCommanderMiscItem ¶
func DeleteCommanderStory ¶
func DeleteCommanderTB ¶
func DeleteConfigEntryByID ¶
func DeleteDorm3dApartment ¶
func DeleteEquipmentRecord ¶
func DeleteExchangeCode ¶
func DeleteFriendRequest ¶
func DeleteGuildJoinRequest ¶
func DeleteGuildShopGood ¶
func DeleteIslandOrderSlotTx ¶
func DeleteItemRecord ¶
func DeleteJuustagramGroup ¶
func DeleteJuustagramReply ¶
func DeleteLike ¶
func DeleteMedalShopGood ¶
func DeleteMiniGameShopGood ¶
func DeleteOwnedResource ¶
func DeleteOwnedSkin ¶
func DeleteRarity ¶
func DeleteRemasterProgress ¶
func DeleteRequisitionShip ¶
func DeleteResourceRecord ¶
func DeleteShipType ¶
func DeleteShopOffer ¶
func DeleteSkillRecord ¶
func DeleteSkinRecord ¶
func DeleteWeaponRecord ¶
func EnsureAuthzDefaults ¶
func EnsureAuthzDefaults() error
func EnsureCommanderHome ¶
func EnsureCommanderHome(commanderID uint32) (*CommanderHome, []CommanderHomeSlot, error)
func FireGuildMember ¶
func GetBusyEventShipIDs ¶
func GetCommanderCoresByIDs ¶
func GetCommanderHome ¶
func GetCommanderHome(commanderID uint32) (*CommanderHome, []CommanderHomeSlot, error)
func GetCommanderHomeFeedExp ¶
func GetCommanderSocialProfilesByIDs ¶
func GetCommanderSocialProfilesByIDs(commanderIDs []uint32) (map[uint32]CommanderSocialProfile, error)
func GetFriendBlacklist ¶
func GetGuildForCommander ¶
func GetGuildForCommander(commanderID uint32) (*Guild, *GuildMember, error)
func GetGuildSetUint ¶
func GetGuildUserDonateTasks ¶
func GetJuustagramLanguage ¶
func GetSkinNameByID ¶
func GuildDissolve ¶
func GuildImpeach ¶
func HasGuildJoinRequest ¶
func HasIslandCardLabelGift ¶
func HasIslandCardLike ¶
func HasIslandShipInviteTx ¶
func InitDatabase ¶
func InitDatabase() bool
InitDatabase initializes the Postgres/sqlc store for the current process.
This remains as a compatibility shim for tests and legacy callers. Production startup should prefer internal/db bootstrap directly.
func InsertShip ¶
func IsCommanderInAnyFleet ¶
func IsIslandInviteCodeTaken ¶
func IsUniqueViolation ¶
func IsValidGuildDuty ¶
func IslandBookCondExistsTx ¶
func ListAccountRoleNames ¶
func ListCommanderFriendIDs ¶
func ListCommanderStoryIDs ¶
func ListGuildCapitalLogsByCategory ¶
func ListGuildCapitalLogsByCategory(guildID uint32, limit uint32) (map[uint32][]GuildCapitalLogEntry, error)
func ListGuildMemberRanks ¶
func ListGuildMemberRanks(guildID uint32, rankType uint32) (map[uint32][]GuildMemberRankEntry, error)
func ListIslandOrderSlotsTx ¶
func ListIslandShipInvites ¶
func ListOwnedShipShadowSkins ¶
func ListOwnedShipShadowSkins(commanderID uint32, shipIDs []uint32) (map[uint32][]OwnedShipShadowSkin, error)
func ListRequisitionShipIDs ¶
func LoadEffectivePermissions ¶
func LoadEffectivePermissions(accountID string) (map[string]authz.Capability, error)
func LoadItemUsageExp ¶
func LocalArg2Exists ¶
func LockAtelierStateTx ¶
func MarkDorm3dCollection ¶
func MarkDorm3dDialogueSeen ¶
func MarkLimitChallengePass ¶
func MarkLimitChallengePass(state *LimitChallengeState, challengeID uint32, totalTime uint32)
func MarkRoleIslandDressRead ¶
func QualifiedTable ¶
QualifiedTable returns the DB table name using the active NamingStrategy. When using Postgres with database.schema_name, tables are created under that schema via gorm's TablePrefix (e.g. "belfast.account_roles").
func RefreshGuildShopGoods ¶
func RefreshGuildShopGoods(commanderID uint32, goods []GuildShopGood, refreshCount uint32, nextRefreshTime uint32) error
func RefreshMedalShopGoods ¶
func RefreshMedalShopGoods(commanderID uint32, goods []MedalShopGood, nextRefreshTime uint32) error
func RefreshMiniGameShopGoods ¶
func RefreshMiniGameShopGoods(commanderID uint32, goods []MiniGameShopGood, nextRefreshTime uint32) error
func RefreshShoppingStreetGoods ¶
func RefreshShoppingStreetGoods(commanderID uint32, goods []ShoppingStreetGood, nextFlashTime uint32, flashCount uint32) error
func RemoveFriendBlacklist ¶
func RemoveIslandFollowerTx ¶
func RemoveIslandShipDressTx ¶
func ReplaceAccountOverrides ¶
func ReplaceAccountOverrides(accountID string, overrides []AccountOverrideEntry) error
func ReplaceGuildOperationBossRanks ¶
func ReplaceGuildOperationBossRanks(guildID uint32, operationID uint32, bossID uint32, ranks []GuildOperationBossRank) error
func ReplaceRolePolicyByName ¶
func ReplaceShoppingStreetGoods ¶
func ReplaceShoppingStreetGoods(commanderID uint32, goods []ShoppingStreetGood) error
func ResetIslandHandPlantsTx ¶
func ResetWeeklyRefresh ¶
func SaveActivityFleetGroups ¶
func SaveActivityFleetGroups(commanderID uint32, activityID uint32, groups ActivityFleetGroupList) error
func SaveActivityPermanentState ¶
func SaveActivityPermanentState(state *ActivityPermanentState) error
func SaveAtelierState ¶
func SaveAtelierState(state *AtelierState) error
func SaveAtelierStateTx ¶
func SaveCityRebuildState ¶
func SaveCityRebuildState(state *CityRebuildState) error
func SaveCommanderAppreciationState ¶
func SaveCommanderAppreciationState(state *CommanderAppreciationState) error
func SaveCommanderColoringState ¶
func SaveCommanderColoringState(state *CommanderColoringState) error
func SaveCommanderDormState ¶
func SaveCommanderDormState(state *CommanderDormState) error
func SaveCommanderFleetTechState ¶
func SaveCommanderFleetTechState(state *CommanderFleetTechState) error
func SaveCommanderIslandSocialState ¶
func SaveCommanderIslandSocialState(state *CommanderIslandSocialState) error
func SaveCommanderIslandTradeInviteState ¶
func SaveCommanderIslandTradeInviteState(state *CommanderIslandTradeInviteState) error
func SaveCommanderLoveLetterState ¶
func SaveCommanderLoveLetterState(state *CommanderLoveLetterState) error
func SaveCommanderMetaPtProgress ¶
func SaveCommanderMetaPtProgress(state *CommanderMetaPtProgress) error
func SaveCommanderPacketState ¶
func SaveCommanderPacketState(entry *CommanderPacketState) error
func SaveCommanderPrefabFleet ¶
func SaveCommanderPrefabFleet(entry *CommanderPrefabFleet) error
func SaveCommanderTB ¶
func SaveCommanderTB(entry *CommanderTB, info *protobuf.TBINFO, permanent *protobuf.TBPERMANENT) error
func SaveCommanderWorldBossState ¶
func SaveCommanderWorldBossState(state *WorldBossState) error
func SaveDorm3dApartment ¶
func SaveDorm3dApartment(apartment *Dorm3dApartment) error
func SaveDorm3dApartmentTx ¶
func SaveEventCollection ¶
func SaveEventCollection(_ any, event *EventCollection) error
func SaveFeastState ¶
func SaveFeastState(state *FeastState) error
func SaveFeastStateTx ¶
func SaveGameRoomStateTx ¶
func SaveIslandBookStateTx ¶
func SaveIslandCardStateTx ¶
func SaveIslandNodeState ¶
func SaveIslandNodeState(commanderID uint32, actID uint32, nodes []IslandNodeState) error
func SaveIslandOrderStateTx ¶
func SaveJuustagramMessageState ¶
func SaveJuustagramMessageState(state *JuustagramMessageState) error
func SaveLegacyEducateState ¶
func SaveLegacyEducateState(state *LegacyEducateState) error
func SaveMiniGameDataState ¶
func SaveMiniGameDataState(state *MiniGameDataState) error
func SaveMiniGameHubState ¶
func SaveMiniGameHubState(state *MiniGameHubState) error
func SaveMiniGameTelemetryState ¶
func SaveMiniGameTelemetryState(state *MiniGameTelemetryState) error
func SaveNavalAcademyRuntime ¶
func SaveNavalAcademyRuntime(runtime *NavalAcademyRuntime) error
func SaveOwnedSpWeapon ¶
func SaveOwnedSpWeapon(entry *OwnedSpWeapon) error
func SaveRefluxState ¶
func SaveRefluxState(state *RefluxState) error
func SaveRemasterState ¶
func SaveRemasterState(state *RemasterState) error
func SaveSecondaryPasswordState ¶
func SaveSecondaryPasswordState(state *SecondaryPasswordState) error
func SaveTechnologyResearchState ¶
func SaveTechnologyResearchState(state *TechnologyResearchState) error
func SaveWorldRuntime ¶
func SaveWorldRuntime(runtime *WorldRuntime) error
func SetCommanderCommonFlag ¶
func SetDorm3dCallName ¶
func SetDorm3dCurrentCommID ¶
func SetGuildUserDonateTasks ¶
func SetIslandProsperity ¶
func StartGuildSupply ¶
func SupportRequisitionMonth ¶
func SyncWorldRuntime ¶
func ToProtoBuildInfo ¶
func ToProtoBuildInfo(payload BuildInfoPayload) *protobuf.BUILDINFO
func ToProtoCommanderBox ¶
func ToProtoCommanderBox(box CommanderBox) *protobuf.COMMANDERBOXINFO
func ToProtoCommanderInfo ¶
func ToProtoCommanderInfo(meow CommanderMeow) *protobuf.COMMANDERINFO
func ToProtoCompensationDropInfoList ¶
func ToProtoCompensationDropInfoList(attachments []CompensationAttachment) []*protobuf.DROPINFO
func ToProtoDropInfoList ¶
func ToProtoDropInfoList(attachments []MailAttachment) []*protobuf.DROPINFO
func ToProtoOwnedShip ¶
func ToProtoOwnedShip(ship OwnedShip, randomFlags []uint32, shadowSkins []OwnedShipShadowSkin) *protobuf.SHIPINFO
func ToProtoOwnedShipList ¶
func ToProtoOwnedSpWeapon ¶
func ToProtoOwnedSpWeapon(entry OwnedSpWeapon) *protobuf.SPWEAPONINFO
func ToProtoOwnedSpWeaponList ¶
func ToProtoOwnedSpWeaponList(entries []OwnedSpWeapon) []*protobuf.SPWEAPONINFO
func ToProtoProposeResponse ¶
func ToUint32List ¶
func TryAdvanceCommanderStoreupAwardIndexTx ¶
func TryAdvanceCommanderStoreupAwardIndexTx(ctx context.Context, tx pgx.Tx, commanderID uint32, storeupID uint32, awardIndex uint32) (bool, error)
TryAdvanceCommanderStoreupAwardIndexTx atomically advances the storeup progress by exactly one tier.
It returns (true, nil) only if the index was advanced from (awardIndex-1) -> awardIndex. This is used to prevent duplicate claims on concurrent requests.
func Uint32FromInt64Checked ¶
func UpdateAccountDisabledAt ¶
func UpdateAccountPassword ¶
func UpdateAccountUsername ¶
func UpdateArenaShopState ¶
func UpdateArenaShopState(state ArenaShopState) error
func UpdateBuffRecord ¶
func UpdateCommanderHome ¶
func UpdateCommanderHome(home *CommanderHome) error
func UpdateCommanderHomeSlot ¶
func UpdateCommanderHomeSlot(slot *CommanderHomeSlot) error
func UpdateCommanderTrophyProgress ¶
func UpdateCommanderTrophyProgress(row *CommanderTrophyProgress) error
func UpdateConfigEntryRecord ¶
func UpdateConfigEntryRecord(entry *ConfigEntry) error
func UpdateDorm3dInsCareFlag ¶
func UpdateDorm3dVisitTime ¶
func UpdateEquipmentRecord ¶
func UpdateExchangeCode ¶
func UpdateExchangeCode(code *ExchangeCode) error
func UpdateGlobalSkinRestriction ¶
func UpdateGlobalSkinRestriction(restriction *GlobalSkinRestriction) error
func UpdateGlobalSkinRestrictionWindow ¶
func UpdateGlobalSkinRestrictionWindow(window *GlobalSkinRestrictionWindow) error
func UpdateGuildBase ¶
func UpdateGuildDuty ¶
func UpdateGuildShopGood ¶
func UpdateGuildShopGood(good GuildShopGood) error
func UpdateGuildShopState ¶
func UpdateGuildShopState(state GuildShopState) error
func UpdateItemRecord ¶
func UpdateJuustagramGroup ¶
func UpdateJuustagramLanguage ¶
func UpdateJuustagramLanguage(entry *JuustagramLanguage) error
func UpdateJuustagramNpcTemplate ¶
func UpdateJuustagramNpcTemplate(template *JuustagramNpcTemplate) error
func UpdateJuustagramShipGroupTemplate ¶
func UpdateJuustagramShipGroupTemplate(template *JuustagramShipGroupTemplate) error
func UpdateJuustagramTemplate ¶
func UpdateJuustagramTemplate(template *JuustagramTemplate) error
func UpdateMedalShopGood ¶
func UpdateMedalShopGood(good MedalShopGood) error
func UpdateMedalShopState ¶
func UpdateMedalShopState(state MedalShopState) error
func UpdateMiniGameShopGood ¶
func UpdateMiniGameShopGood(good MiniGameShopGood) error
func UpdateMiniGameShopState ¶
func UpdateMiniGameShopState(state MiniGameShopState) error
func UpdateOwnedSkinExpiry ¶
func UpdateRarity ¶
func UpdateResourceRecord ¶
func UpdateShipType ¶
func UpdateShopOffer ¶
func UpdateShoppingStreetGood ¶
func UpdateShoppingStreetGood(good ShoppingStreetGood) error
func UpdateShoppingStreetState ¶
func UpdateShoppingStreetState(state ShoppingStreetState) error
func UpdateSkillRecord ¶
func UpdateSkinRecord ¶
func UpdateWeaponRecord ¶
func UpsertActivityStoreState ¶
func UpsertActivityStoreState(state *ActivityStoreState) error
func UpsertBattleSession ¶
func UpsertBattleSession(session *BattleSession) error
func UpsertChapterProgress ¶
func UpsertChapterProgress(progress *ChapterProgress) error
func UpsertChapterState ¶
func UpsertChapterState(state *ChapterState) error
func UpsertCommanderAttire ¶
func UpsertCommanderAttire(entry CommanderAttire) error
func UpsertCommanderBoxTx ¶
func UpsertCommanderBuff ¶
func UpsertCommanderLivingAreaCover ¶
func UpsertCommanderLivingAreaCover(entry CommanderLivingAreaCover) error
func UpsertCommanderMiscItem ¶
func UpsertConfigEntry ¶
func UpsertConfigEntry(category string, key string, data json.RawMessage) error
func UpsertDeviceAuthMap ¶
func UpsertEducateShopState ¶
func UpsertEducateShopState(state *EducateShopState) error
func UpsertExerciseFleet ¶
func UpsertGameRoomScoreTx ¶
func UpsertGuildAssaultFleetSlots ¶
func UpsertGuildAssaultFleetSlots(guildID uint32, commanderID uint32, slots []GuildAssaultFleetSlot, now uint32) error
func UpsertGuildBossMissionFleets ¶
func UpsertGuildBossMissionFleets(guildID uint32, operationID uint32, fleets []GuildBossMissionFleet) error
func UpsertGuildJoinRequest ¶
func UpsertGuildOperationBossState ¶
func UpsertGuildOperationBossState(state GuildOperationBossState) error
func UpsertGuildOperationPerfsMonotonic ¶
func UpsertGuildOperationPerfsMonotonic(guildID uint32, perfs []GuildOperationPerf) error
func UpsertIslandCardState ¶
func UpsertIslandCardState(state *IslandCardState) error
func UpsertIslandCollectFragmentSignState ¶
func UpsertIslandCollectFragmentSignState(state *IslandCollectFragmentSignState) error
func UpsertIslandCommanderDressProfile ¶
func UpsertIslandCommanderDressProfile(profile *IslandCommanderDressProfile) error
func UpsertIslandCommanderDressState ¶
func UpsertIslandCommanderDressState(entry *IslandCommanderDressState) error
func UpsertIslandDelegation ¶
func UpsertIslandDelegation(slot *IslandDelegation) error
func UpsertIslandHandPlantTx ¶
func UpsertIslandNPCFeedbackState ¶
func UpsertIslandNPCFeedbackState(state *IslandNPCFeedbackState) error
func UpsertIslandOrderSlotTx ¶
func UpsertIslandRoleDressState ¶
func UpsertIslandRoleDressState(state *IslandRoleDressState) error
func UpsertIslandShip ¶
func UpsertIslandShip(ship *IslandShip) error
func UpsertIslandShipDressTx ¶
func UpsertIslandShipOrderSlot ¶
func UpsertIslandShipOrderSlot(slot *IslandShipOrderSlot) error
func UpsertIslandShipSkinState ¶
func UpsertIslandShipSkinState(state *IslandShipSkinState) error
func UpsertIslandShipTx ¶
func UpsertIslandShopState ¶
func UpsertIslandShopState(state *IslandShopState) error
func UpsertIslandShopStateTx ¶
func UpsertIslandSignInState ¶
func UpsertIslandSignInState(state *IslandSignInState) error
func UpsertIslandSnapshot ¶
func UpsertIslandSnapshot(snapshot *IslandSnapshot) error
func UpsertIslandSnapshotTx ¶
func UpsertIslandTechnologyState ¶
func UpsertIslandTechnologyState(state *IslandTechnologyState) error
func UpsertIslandTreasureState ¶
func UpsertIslandTreasureState(state *IslandTreasureState) error
func UpsertIslandWildGatherSignState ¶
func UpsertIslandWildGatherSignState(state *IslandWildGatherSignState) error
func UpsertJuustagramPlayerDiscuss ¶
func UpsertJuustagramPlayerDiscuss(entry *JuustagramPlayerDiscuss) error
func UpsertNewServerShopState ¶
func UpsertNewServerShopState(state *NewServerShopState) error
func UpsertOwnedSpWeaponTx ¶
func UpsertRandomFlagShipEntry ¶
func UpsertRandomFlagShipEntry(entry RandomFlagShip) error
func UpsertRemasterProgress ¶
func UpsertRemasterProgress(entry *RemasterProgress) error
func UpsertSubmarineState ¶
func UpsertSubmarineState(state *SubmarineExpeditionState) error
func UpsertSurveyState ¶
func UpsertSurveyState(state *SurveyState) error
func ValidateShipID ¶
func WithWeeklyTaskProgressTx ¶
func WithWeeklyTaskProgressTx(commanderID uint32, fn func(state *WeeklyTaskProgress) error) error
Types ¶
type Account ¶
type Account struct {
ID string `gorm:"primary_key;size:36"`
Username *string `gorm:"size:64"`
UsernameNormalized *string `gorm:"size:64;uniqueIndex"`
CommanderID *uint32 `gorm:"uniqueIndex"`
PasswordHash string `gorm:"not_null"`
PasswordAlgo string `gorm:"size:32;not_null"`
PasswordUpdatedAt time.Time `gorm:"type:timestamp;not_null"`
IsAdmin bool `gorm:"default:false;not_null"`
DisabledAt *time.Time `gorm:"type:timestamp"`
LastLoginAt *time.Time `gorm:"type:timestamp"`
WebAuthnUserHandle []byte `gorm:"uniqueIndex"`
CreatedAt time.Time `gorm:"autoCreateTime"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`
}
Account is the single authenticated principal for the REST API.
It can represent: - A staff/admin account (Username set, IsAdmin true/false) - A player-bound account (CommanderID set) - Both (rare, but supported)
func GetAccountByCommanderID ¶
func GetAccountByID ¶
type AccountOverrideEntry ¶
type AccountOverrideEntry struct {
Key string
Mode string
Capability authz.Capability
}
func ListAccountOverrides ¶
func ListAccountOverrides(accountID string) ([]AccountOverrideEntry, error)
type AccountPermissionOverride ¶
type AccountPermissionOverride struct {
AccountID string `gorm:"primaryKey;size:36"`
PermissionID string `gorm:"primaryKey;size:36"`
Mode string `gorm:"size:8;not_null"`
CanReadSelf bool `gorm:"default:false;not_null"`
CanReadAny bool `gorm:"default:false;not_null"`
CanWriteSelf bool `gorm:"default:false;not_null"`
CanWriteAny bool `gorm:"default:false;not_null"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`
}
type AccountRole ¶
type ActivityFleet ¶
type ActivityFleet struct {
CommanderID uint32 `gorm:"primaryKey"`
ActivityID uint32 `gorm:"primaryKey"`
GroupList ActivityFleetGroupList `gorm:"type:text;not_null;default:'[]'"`
}
type ActivityFleetCommander ¶
type ActivityFleetGroup ¶
type ActivityFleetGroup struct {
ID uint32 `json:"id"`
ShipList []uint32 `json:"ship_list"`
Commanders []ActivityFleetCommander `json:"commanders"`
}
type ActivityFleetGroupList ¶
type ActivityFleetGroupList []ActivityFleetGroup
func LoadActivityFleetGroups ¶
func LoadActivityFleetGroups(commanderID uint32, activityID uint32) (ActivityFleetGroupList, bool, error)
func (*ActivityFleetGroupList) Scan ¶
func (list *ActivityFleetGroupList) Scan(value any) error
type ActivityPermanentState ¶
type ActivityPermanentState struct {
CommanderID uint32 `gorm:"primary_key"`
CurrentActivityID uint32 `gorm:"not_null;default:0"`
FinishedActivityIDs Int64List `gorm:"type:text;not_null;default:'[]'"`
}
func GetOrCreateActivityPermanentState ¶
func GetOrCreateActivityPermanentState(commanderID uint32) (*ActivityPermanentState, error)
func (*ActivityPermanentState) AddFinished ¶
func (state *ActivityPermanentState) AddFinished(activityID uint32)
func (*ActivityPermanentState) FinishedList ¶
func (state *ActivityPermanentState) FinishedList() []uint32
func (*ActivityPermanentState) HasFinished ¶
func (state *ActivityPermanentState) HasFinished(activityID uint32) bool
type ActivityStoreState ¶
type ActivityStoreState struct {
CommanderID uint32
ActivityID uint32
Data1 uint32
StrData1 string
}
func GetActivityStoreState ¶
func GetActivityStoreState(commanderID uint32, activityID uint32) (*ActivityStoreState, error)
func (ActivityStoreState) TableName ¶
func (ActivityStoreState) TableName() string
type ArenaShopState ¶
type ArenaShopState struct {
CommanderID uint32 `gorm:"primary_key"`
FlashCount uint32 `gorm:"not_null"`
LastRefreshTime uint32 `gorm:"not_null"`
NextFlashTime uint32 `gorm:"not_null"`
}
func GetArenaShopState ¶
func GetArenaShopState(commanderID uint32) (*ArenaShopState, error)
type AtelierBuffSlotState ¶
type AtelierState ¶
type AtelierState struct {
CommanderID uint32 `json:"commander_id"`
ActID uint32 `json:"act_id"`
Items map[uint32]uint32 `json:"items"`
RecipeUses map[uint32]uint32 `json:"recipe_uses"`
Slots map[uint32]AtelierBuffSlotState `json:"slots"`
}
func GetOrCreateAtelierState ¶
func GetOrCreateAtelierState(commanderID uint32, actID uint32) (*AtelierState, error)
type AuditLog ¶
type AuditLog struct {
ID string `gorm:"primary_key;size:36"`
ActorAccountID *string `gorm:"size:36;index"`
ActorCommanderID *uint32 `gorm:"index"`
Method string `gorm:"size:8;not_null;index"`
Path string `gorm:"size:255;not_null;index"`
StatusCode int `gorm:"not_null;index"`
PermissionKey *string `gorm:"size:128;index"`
PermissionOp *string `gorm:"size:16;index"`
Action string `gorm:"size:96;index"`
Metadata []byte `gorm:"type:json"`
CreatedAt time.Time `gorm:"autoCreateTime"`
}
type AuthChallenge ¶
type AuthChallenge struct {
ID string `gorm:"primary_key;size:36"`
UserID *string `gorm:"size:36;index"`
Type string `gorm:"size:64;not_null;index"`
Challenge string `gorm:"size:512;not_null;index"`
ExpiresAt time.Time `gorm:"type:timestamp;not_null"`
CreatedAt time.Time `gorm:"autoCreateTime"`
Metadata []byte `gorm:"type:json"`
}
type BackyardCustomThemeTemplate ¶
type BackyardCustomThemeTemplate struct {
CommanderID uint32 `json:"commander_id"`
Pos uint32 `json:"pos"`
Name string `json:"name"`
FurniturePutList json.RawMessage `json:"furniture_put_list"`
IconImageMd5 string `json:"icon_image_md5"`
ImageMd5 string `json:"image_md5"`
UploadTime uint32 `json:"upload_time"`
}
BackyardCustomThemeTemplate stores the per-commander editable template (pos 1..N). UploadTime==0 means not published.
func GetBackyardCustomThemeTemplate ¶
func GetBackyardCustomThemeTemplate(commanderID uint32, pos uint32) (*BackyardCustomThemeTemplate, error)
func ListBackyardCustomThemeTemplates ¶
func ListBackyardCustomThemeTemplates(commanderID uint32) ([]BackyardCustomThemeTemplate, error)
type BackyardPublishedThemeVersion ¶
type BackyardPublishedThemeVersion struct {
ThemeID string `json:"theme_id"`
UploadTime uint32 `json:"upload_time"`
OwnerID uint32 `json:"owner_id"`
Pos uint32 `json:"pos"`
Name string `json:"name"`
FurniturePutList json.RawMessage `json:"furniture_put_list"`
IconImageMd5 string `json:"icon_image_md5"`
ImageMd5 string `json:"image_md5"`
LikeCount uint32 `json:"like_count"`
FavCount uint32 `json:"fav_count"`
}
BackyardPublishedThemeVersion stores an uploaded version of a theme. ThemeID is the stable id (player.id .. pos), UploadTime disambiguates versions.
func LatestBackyardPublishedThemeVersion ¶
func LatestBackyardPublishedThemeVersion(themeID string) (*BackyardPublishedThemeVersion, error)
func ListLatestBackyardPublishedThemeVersions ¶
func ListLatestBackyardPublishedThemeVersions() ([]BackyardPublishedThemeVersion, error)
type BackyardThemeCollection ¶
type BackyardThemeInform ¶
type BackyardThemeInform struct {
ID uint64 `json:"id"`
ReporterID uint32 `json:"reporter_id"`
TargetID uint32 `json:"target_id"`
TargetName string `json:"target_name"`
ThemeID string `json:"theme_id"`
ThemeName string `json:"theme_name"`
Reason uint32 `json:"reason"`
CreatedAt uint32 `json:"created_at"`
}
type BackyardThemeLike ¶
type BattleSession ¶
type BattleSession struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false"`
System uint32 `gorm:"not_null"`
StageID uint32 `gorm:"not_null"`
Key uint32 `gorm:"not_null"`
ShipIDs Int64List `gorm:"type:text;not_null"`
CreatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
UpdatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
}
func GetBattleSession ¶
func GetBattleSession(commanderID uint32) (*BattleSession, error)
type Buff ¶
type Buff struct {
ID uint32 `gorm:"primary_key" json:"id"`
Name string `gorm:"size:256;not_null" json:"name"`
Description string `gorm:"type:text;not_null" json:"desc"`
MaxTime int `gorm:"default:0;not_null" json:"max_time"`
BenefitType string `gorm:"size:50;not_null" json:"benefit_type"`
}
func GetBuffByID ¶
type Build ¶
type Build struct {
ID uint32 `gorm:"primary_key"`
BuilderID uint32 `gorm:"not_null"`
ShipID uint32 `gorm:"not_null"`
PoolID uint32 `gorm:"not_null"`
FinishesAt time.Time `gorm:"not_null"`
Ship Ship `gorm:"foreignKey:ShipID;references:TemplateID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
Commander Commander `gorm:"foreignKey:BuilderID;references:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
}
func GetBuildByID ¶
func OrderedBuilds ¶
func (*Build) QuickFinish ¶
QuickFinishes a build, checks if the passed commander has enough quick finishers
type BuildInfoPayload ¶
type ChallengeCommanderSlot ¶
type ChallengeModeState ¶
type ChallengeModeState struct {
CommanderID uint32
ActivityID uint32
Mode uint32
SeasonID uint32
Level uint32
CurrentScore uint32
Issl uint32
RegularGroupID uint32
SubmarineGroupID uint32
RegularShipIDs []uint32
SubmarineShipIDs []uint32
RegularCommanders []ChallengeCommanderSlot
SubmarineCommanders []ChallengeCommanderSlot
}
func ListChallengeModeStates ¶
func ListChallengeModeStates(commanderID uint32, activityID uint32) ([]ChallengeModeState, error)
func (ChallengeModeState) TableName ¶
func (ChallengeModeState) TableName() string
type ChapterDrop ¶
type ChapterDrop struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false"`
ChapterID uint32 `gorm:"primaryKey;autoIncrement:false"`
ShipID uint32 `gorm:"primaryKey;autoIncrement:false"`
}
ChapterDrop tracks unique ship drops for a commander in a given chapter. Rows are inserted as ships are obtained; duplicates are ignored.
func GetChapterDrops ¶
func GetChapterDrops(commanderID uint32, chapterID uint32) ([]ChapterDrop, error)
type ChapterProgress ¶
type ChapterProgress struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false"`
ChapterID uint32 `gorm:"primaryKey;autoIncrement:false"`
Progress uint32 `gorm:"not_null"`
KillBossCount uint32 `gorm:"not_null"`
KillEnemyCount uint32 `gorm:"not_null"`
TakeBoxCount uint32 `gorm:"not_null"`
DefeatCount uint32 `gorm:"not_null"`
TodayDefeatCount uint32 `gorm:"not_null"`
PassCount uint32 `gorm:"not_null"`
UpdatedAt uint32 `gorm:"not_null"`
}
func GetChapterProgress ¶
func GetChapterProgress(commanderID uint32, chapterID uint32) (*ChapterProgress, error)
func ListChapterProgress ¶
func ListChapterProgress(commanderID uint32) ([]ChapterProgress, error)
type ChapterProgressListResult ¶
type ChapterProgressListResult struct {
Progress []ChapterProgress
Total int64
}
func ListChapterProgressPage ¶
func ListChapterProgressPage(commanderID uint32, offset int, limit int) (ChapterProgressListResult, error)
func SearchChapterProgress ¶
type ChapterState ¶
type ChapterState struct {
CommanderID uint32 `gorm:"primary_key"`
ChapterID uint32 `gorm:"not_null;index"`
State []byte `gorm:"not_null"`
UpdatedAt uint32 `gorm:"not_null"`
}
func GetChapterState ¶
func GetChapterState(commanderID uint32) (*ChapterState, error)
func ListChapterStates ¶
func ListChapterStates(commanderID uint32) ([]ChapterState, error)
type ChapterStateListResult ¶
type ChapterStateListResult struct {
States []ChapterState
Total int64
}
func SearchChapterStates ¶
type CityRebuildRecruit ¶
type CityRebuildState ¶
type CityRebuildState struct {
CommanderID uint32 `json:"commander_id"`
ActID uint32 `json:"act_id"`
Pt uint32 `json:"pt"`
Builds []uint32 `json:"builds"`
Roles []uint32 `json:"roles"`
Recruits []CityRebuildRecruit `json:"recruits"`
Buffs map[uint32]uint32 `json:"buffs"`
MaxLevel uint32 `json:"max_level"`
CurLevel uint32 `json:"cur_level"`
MaxDisplay uint32 `json:"max_display"`
AdjustTime uint32 `json:"adjust_time"`
AdjustLeftHP uint32 `json:"adjust_left_hp"`
AdjustMaxLevel uint32 `json:"adjust_max_level"`
SummaryPt uint32 `json:"summary_pt"`
SummaryReady bool `json:"summary_ready"`
}
func GetOrCreateCityRebuildState ¶
func GetOrCreateCityRebuildState(commanderID uint32, actID uint32) (*CityRebuildState, error)
type ColoringAwardState ¶
type ColoringAwardState struct {
PageID uint32 `json:"page_id"`
Drops []ColoringDropState `json:"drops"`
}
type ColoringCellState ¶
type ColoringDropState ¶
type Commander ¶
type Commander struct {
CommanderID uint32 `gorm:"primary_key"`
AccountID uint32 `gorm:"not_null"`
Level int `gorm:"default:1;not_null"`
Exp int `gorm:"default:0;not_null"`
Name string `gorm:"size:30;not_null;uniqueIndex"`
LastLogin time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
GuideIndex uint32 `gorm:"default:0;not_null"`
NewGuideIndex uint32 `gorm:"default:0;not_null"`
NameChangeCooldown time.Time `gorm:"type:timestamp;default:'1970-01-01 00:00:00';not_null"`
RoomID uint32 `gorm:"default:0;not_null"`
ExchangeCount uint32 `gorm:"default:0;not_null"` // Number of times the commander has built ships, can be exchanged for UR ships
DrawCount1 uint32 `gorm:"default:0;not_null"`
DrawCount10 uint32 `gorm:"default:0;not_null"`
SupportRequisitionCount uint32 `gorm:"default:0;not_null"`
SupportRequisitionMonth uint32 `gorm:"default:0;not_null"`
CollectAttackCount uint32 `gorm:"default:0;not_null"`
AccPayLv uint32 `gorm:"default:0;not_null"`
LivingAreaCoverID uint32 `gorm:"default:0;not_null"`
SelectedIconFrameID uint32 `gorm:"default:0;not_null"`
SelectedChatFrameID uint32 `gorm:"default:0;not_null"`
SelectedBattleUIID uint32 `gorm:"default:0;not_null"`
DisplayIconID uint32 `gorm:"default:0;not_null"`
DisplaySkinID uint32 `gorm:"default:0;not_null"`
DisplayIconThemeID uint32 `gorm:"default:0;not_null"`
Manifesto string `gorm:"size:200;default:'';not_null"`
DormName string `gorm:"size:50;default:'';not_null"`
RandomShipMode uint32 `gorm:"default:0;not_null"`
ChildDisplay uint32 `gorm:"default:1004;not_null"`
MailStoreroomLv uint32 `gorm:"default:1;not_null"`
RandomFlagShipEnabled bool `gorm:"default:false;not_null"`
DeletedAt *time.Time `gorm:"index"`
Punishments []Punishment `gorm:"foreignKey:PunishedID;references:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
Ships []OwnedShip `gorm:"foreignKey:OwnerID;references:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
Items []CommanderItem `gorm:"foreignKey:CommanderID;references:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
MiscItems []CommanderMiscItem `gorm:"foreignKey:CommanderID;references:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
OwnedResources []OwnedResource `gorm:"foreignKey:CommanderID;references:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
Builds []Build `gorm:"foreignKey:BuilderID;references:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
Mails []Mail `gorm:"foreignKey:ReceiverID;references:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
Compensations []Compensation `gorm:"-:migration"`
OwnedSkins []OwnedSkin `gorm:"foreignKey:CommanderID;references:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
OwnedEquipments []OwnedEquipment `gorm:"foreignKey:CommanderID;references:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
OwnedSpWeapons []OwnedSpWeapon `gorm:"foreignKey:OwnerID;references:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
Secretaries []*OwnedShip `gorm:"-"`
Fleets []Fleet `gorm:"foreignKey:CommanderID;references:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
EventCollections []EventCollection `gorm:"foreignKey:CommanderID;references:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
// These maps will be populated by the Load() method
OwnedShipsMap map[uint32]*OwnedShip `gorm:"-"`
OwnedResourcesMap map[uint32]*OwnedResource `gorm:"-"`
CommanderItemsMap map[uint32]*CommanderItem `gorm:"-"`
MiscItemsMap map[uint32]*CommanderMiscItem `gorm:"-"`
BuildsMap map[uint32]*Build `gorm:"-"`
OwnedSkinsMap map[uint32]*OwnedSkin `gorm:"-"`
OwnedEquipmentMap map[uint32]*OwnedEquipment `gorm:"-"`
OwnedSpWeaponsMap map[uint32]*OwnedSpWeapon `gorm:"-"`
MailsMap map[uint32]*Mail `gorm:"-"`
CompensationsMap map[uint32]*Compensation `gorm:"-"`
FleetsMap map[uint32]*Fleet `gorm:"-"`
}
func GetCommanderByAccountID ¶
func GetCommanderCoreByID ¶
func (*Commander) AddOwnedEquipmentTx ¶
func (*Commander) AddResource ¶
func (*Commander) AddResourceTx ¶
func (*Commander) CleanMailbox ¶
func (*Commander) Commit ¶
Commit saves the commander's data to the database (ships, items, resources, etc)
func (*Commander) ConsumeItemTx ¶
func (*Commander) ConsumeResource ¶
func (*Commander) ConsumeResourceTx ¶
func (*Commander) CreateBuild ¶
func (*Commander) DestroyShips ¶
func (*Commander) EnsureSupportRequisitionMonth ¶
func (*Commander) EquipmentBagCount ¶
func (*Commander) GetBuildRange ¶
Get a range of builds (special weird query, probably to save battery on phones)
func (*Commander) GetItemCount ¶
GetItemCount returns the amount of items the commander has, returns 0 if the item is not found
func (*Commander) GetOwnedEquipment ¶
func (c *Commander) GetOwnedEquipment(equipmentID uint32) *OwnedEquipment
func (*Commander) GetResource ¶
func (c *Commander) GetResource(resourceId uint32) (OwnedResource, error)
func (*Commander) GetResourceCount ¶
GetResourceCount returns the amount of resources the commander has, returns 0 if the resource is not found
func (*Commander) GetSecretaries ¶
func (*Commander) GiveSkinTx ¶
func (*Commander) GiveSkinWithExpiry ¶
func (*Commander) HasEnoughCube ¶
func (*Commander) HasEnoughGold ¶
func (*Commander) HasEnoughResource ¶
func (*Commander) IncrementDrawCount ¶
func (*Commander) IncrementExchangeCount ¶
Add n exchange count to the commander, n represents the number of built ships, caps at 400
func (*Commander) IncrementReserveUsage ¶
func (*Commander) Load ¶
Load loads the commander's data from the database (ships, items, resources, etc)
func (*Commander) RebuildOwnedEquipmentMap ¶
func (c *Commander) RebuildOwnedEquipmentMap()
func (*Commander) RebuildOwnedSpWeaponMap ¶
func (c *Commander) RebuildOwnedSpWeaponMap()
func (*Commander) RemoveOwnedEquipmentTx ¶
func (*Commander) RemoveOwnedSpWeaponTx ¶
func (*Commander) RemoveSecretaries ¶
RemoveSecretaries removes all secretaries from the commander
func (*Commander) RetireShips ¶
Retire a list of ships, return the amount of medals gained, and an error if any Data from : https://azurlane.koumakan.jp/wiki/Building#Retire
func (*Commander) RevokeActivePunishment ¶
func (*Commander) SendMailTx ¶
func (*Commander) SetOwnedEquipmentTx ¶
func (*Commander) SetResource ¶
func (*Commander) UpdateRoom ¶
UpdateRoom changes the commander's room id
func (*Commander) UpdateSecretaries ¶
func (c *Commander) UpdateSecretaries(updates []SecretaryUpdate) error
UpdateSecretaries changes the commander's secretaries (dirty implementation, but it works)
type CommanderAbilityGroup ¶
type CommanderAbilityGroup struct {
ID uint32 `json:"id"`
AbilityList []uint32 `json:"ability_list"`
}
func ListCommanderAbilityGroups ¶
func ListCommanderAbilityGroups() ([]CommanderAbilityGroup, error)
type CommanderAbilityTemplate ¶
type CommanderAbilityTemplate struct {
ID uint32 `json:"id"`
GroupID uint32 `json:"group_id"`
Cost uint32 `json:"cost"`
Worth uint32 `json:"worth"`
Next uint32 `json:"next"`
}
func GetCommanderAbilityTemplate ¶
func GetCommanderAbilityTemplate(abilityID uint32) (*CommanderAbilityTemplate, error)
type CommanderActivityTask ¶
type CommanderActivityTask struct {
CommanderID uint32
ActID uint32
TaskID uint32
Progress uint32
Submitted bool
}
func GetCommanderActivityTask ¶
func GetCommanderActivityTask(commanderID uint32, actID uint32, taskID uint32) (*CommanderActivityTask, error)
func ListCommanderActivityTasks ¶
func ListCommanderActivityTasks(commanderID uint32) ([]CommanderActivityTask, error)
type CommanderAppreciationState ¶
type CommanderAppreciationState struct {
CommanderID uint32
MusicNo uint32
MusicMode uint32
CartoonReadMark Int64List
CartoonCollectMark Int64List
GalleryUnlocks Int64List
GalleryFavorIds Int64List
MusicFavorIds Int64List
}
CommanderAppreciationState stores commander-scoped Appreciation bitsets. These bitsets are surfaced in SC_11003 so the client can rebuild local lists.
func GetOrCreateCommanderAppreciationState ¶
func GetOrCreateCommanderAppreciationState(commanderID uint32) (*CommanderAppreciationState, error)
type CommanderAttire ¶
type CommanderAttire struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false"`
Type uint32 `gorm:"primaryKey;autoIncrement:false"`
AttireID uint32 `gorm:"primaryKey;autoIncrement:false"`
ExpiresAt *time.Time `gorm:"type:timestamp"`
IsNew bool `gorm:"default:false;not_null"`
}
func GetCommanderAttireEntry ¶
func GetCommanderAttireEntry(commanderID uint32, attireType uint32, attireID uint32) (*CommanderAttire, error)
func ListCommanderAttires ¶
func ListCommanderAttires(commanderID uint32) ([]CommanderAttire, error)
func ListCommanderAttiresByType ¶
func ListCommanderAttiresByType(commanderID uint32, attireType uint32) ([]CommanderAttire, error)
type CommanderBox ¶
type CommanderBox struct {
CommanderID uint32
BoxID uint32
PoolID uint32
BeginTime uint32
FinishTime uint32
}
func ApplyCommanderQuickFinishTx ¶
func ApplyCommanderQuickFinishTx(ctx context.Context, tx pgx.Tx, boxes []CommanderBox, now uint32, itemCount uint32) ([]CommanderBox, error)
func EnsureCommanderBoxes ¶
func EnsureCommanderBoxes(commanderID uint32) ([]CommanderBox, error)
func GetCommanderBox ¶
func GetCommanderBox(commanderID uint32, boxID uint32) (*CommanderBox, error)
func ListCommanderBoxes ¶
func ListCommanderBoxes(commanderID uint32) ([]CommanderBox, error)
func (CommanderBox) TableName ¶
func (CommanderBox) TableName() string
type CommanderBuff ¶
type CommanderBuff struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false"`
BuffID uint32 `gorm:"primaryKey;autoIncrement:false"`
ExpiresAt time.Time `gorm:"not_null;index:idx_commander_buff_expires_at"`
}
func GetCommanderBuff ¶
func GetCommanderBuff(commanderID uint32, buffID uint32) (*CommanderBuff, error)
func ListCommanderActiveBuffs ¶
func ListCommanderActiveBuffs(commanderID uint32, now time.Time) ([]CommanderBuff, error)
func ListCommanderBuffs ¶
func ListCommanderBuffs(commanderID uint32) ([]CommanderBuff, error)
type CommanderChargeSuccessEvent ¶
func (CommanderChargeSuccessEvent) TableName ¶
func (CommanderChargeSuccessEvent) TableName() string
type CommanderColoringState ¶
type CommanderColoringState struct {
CommanderID uint32
ActivityID uint32
StartTime uint32
Cells []ColoringCellState
Awards []ColoringAwardState
CreatedAt time.Time
UpdatedAt time.Time
}
func GetCommanderColoringState ¶
func GetCommanderColoringState(commanderID uint32, activityID uint32) (*CommanderColoringState, error)
func GetOrCreateCommanderColoringState ¶
func GetOrCreateCommanderColoringState(commanderID uint32, activityID uint32, startTime uint32) (*CommanderColoringState, error)
type CommanderCommonFlag ¶
type CommanderCreateMaterialConfig ¶
type CommanderCreateMaterialConfig struct {
ID uint32 `json:"id"`
UseItem uint32 `json:"use_item"`
Number1 uint32 `json:"number_1"`
}
func GetCommanderCreateMaterialConfig ¶
func GetCommanderCreateMaterialConfig(poolID uint32) (*CommanderCreateMaterialConfig, error)
type CommanderDataTemplateConfig ¶
type CommanderDataTemplateConfig struct {
ID uint32 `json:"id"`
GroupType uint32 `json:"group_type"`
Rarity uint32 `json:"rarity"`
Exp uint32 `json:"exp"`
ExpCost uint32 `json:"exp_cost"`
}
func GetCommanderDataTemplateConfig ¶
func GetCommanderDataTemplateConfig(templateID uint32) (*CommanderDataTemplateConfig, error)
func ListCommanderDataTemplateConfigs ¶
func ListCommanderDataTemplateConfigs() ([]CommanderDataTemplateConfig, error)
type CommanderDormFloorLayout ¶
type CommanderDormFloorLayout struct {
CommanderID uint32 `gorm:"primaryKey"`
Floor uint32 `gorm:"primaryKey"`
FurniturePutList json.RawMessage `gorm:"type:json;not_null"`
}
func ListCommanderDormFloorLayouts ¶
func ListCommanderDormFloorLayouts(commanderID uint32) ([]CommanderDormFloorLayout, error)
type CommanderDormState ¶
type CommanderDormState struct {
CommanderID uint32 `gorm:"primaryKey"`
Level uint32 `gorm:"not_null;default:1"`
Food uint32 `gorm:"not_null;default:0"`
FoodMaxIncreaseCount uint32 `gorm:"not_null;default:0"`
FoodMaxIncrease uint32 `gorm:"not_null;default:0"`
FloorNum uint32 `gorm:"not_null;default:1"`
ExpPos uint32 `gorm:"not_null;default:2"`
NextTimestamp uint32 `gorm:"not_null;default:0"`
LoadExp uint32 `gorm:"not_null;default:0"`
LoadFood uint32 `gorm:"not_null;default:0"`
LoadTime uint32 `gorm:"not_null;default:0"`
UpdatedAtUnixTimestamp uint32 `gorm:"not_null;default:0"`
}
CommanderDormState stores persistent backyard/dorm state surfaced in SC_19001. Keep this minimal; deltas (SC_19009/SC_19010) are handled separately.
func GetOrCreateCommanderDormState ¶
func GetOrCreateCommanderDormState(commanderID uint32) (*CommanderDormState, error)
type CommanderDormTheme ¶
type CommanderDormTheme struct {
CommanderID uint32 `gorm:"primaryKey"`
ThemeSlotID uint32 `gorm:"primaryKey"`
Name string `gorm:"size:50;default:'';not_null"`
FurniturePutList json.RawMessage `gorm:"type:json;not_null"`
}
func GetCommanderDormTheme ¶
func GetCommanderDormTheme(commanderID uint32, slotID uint32) (*CommanderDormTheme, error)
func ListCommanderDormThemes ¶
func ListCommanderDormThemes(commanderID uint32) ([]CommanderDormTheme, error)
type CommanderFleetTechState ¶
type CommanderFleetTechState struct {
CommanderID uint32 `json:"commander_id"`
Groups []FleetTechGroupState `json:"groups"`
AttrOverrides []FleetTechAttrOverride `json:"attr_overrides"`
}
func GetCommanderFleetTechState ¶
func GetCommanderFleetTechState(commanderID uint32) (*CommanderFleetTechState, error)
func GetOrCreateCommanderFleetTechState ¶
func GetOrCreateCommanderFleetTechState(commanderID uint32) (*CommanderFleetTechState, error)
func (*CommanderFleetTechState) GetGroup ¶
func (state *CommanderFleetTechState) GetGroup(groupID uint32) (*FleetTechGroupState, bool)
func (*CommanderFleetTechState) SetAttrOverrides ¶
func (state *CommanderFleetTechState) SetAttrOverrides(overrides []FleetTechAttrOverride)
func (*CommanderFleetTechState) UpsertGroup ¶
func (state *CommanderFleetTechState) UpsertGroup(groupID uint32) *FleetTechGroupState
type CommanderFriendRelation ¶
type CommanderFriendRelation struct {
CommanderID uint32 `gorm:"primaryKey"`
FriendCommanderID uint32 `gorm:"primaryKey"`
}
func (CommanderFriendRelation) TableName ¶
func (CommanderFriendRelation) TableName() string
type CommanderFurniture ¶
type CommanderFurniture struct {
CommanderID uint32 `gorm:"not_null;primaryKey"`
FurnitureID uint32 `gorm:"not_null;primaryKey"`
Count uint32 `gorm:"not_null"`
GetTime uint32 `gorm:"not_null"`
}
func ListCommanderFurniture ¶
func ListCommanderFurniture(commanderID uint32) ([]CommanderFurniture, error)
type CommanderGameSet ¶
type CommanderGameSet struct {
RenameCooldownSeconds uint32
AbilityResetCooldownSeconds uint32
SkillResetCosts []uint32
}
func LoadCommanderGameSet ¶
func LoadCommanderGameSet() (*CommanderGameSet, error)
type CommanderHome ¶
type CommanderHomeSlot ¶
type CommanderIslandSocialState ¶
type CommanderIslandSocialState struct {
CommanderID uint32
InviteCode string
InviteCodeRefreshDay uint32
WhiteList []uint32
BlackList []uint32
InvitedCommanderIDs []uint32
GiftCount uint32
GiftTimestamp uint32
GiftVisitors []uint32
UpdatedAt time.Time
}
func GetCommanderIslandSocialState ¶
func GetCommanderIslandSocialState(commanderID uint32) (*CommanderIslandSocialState, error)
func GetOrCreateCommanderIslandSocialState ¶
func GetOrCreateCommanderIslandSocialState(commanderID uint32) (*CommanderIslandSocialState, error)
type CommanderIslandTradeInviteState ¶
type CommanderIslandTradeInviteState struct {
CommanderID uint32
InvitedCommanderIDs []uint32
UpdatedAt time.Time
}
func GetCommanderIslandTradeInviteState ¶
func GetCommanderIslandTradeInviteState(commanderID uint32) (*CommanderIslandTradeInviteState, error)
func GetOrCreateCommanderIslandTradeInviteState ¶
func GetOrCreateCommanderIslandTradeInviteState(commanderID uint32) (*CommanderIslandTradeInviteState, error)
type CommanderItem ¶
type CommanderItem struct {
CommanderID uint32 `gorm:"not_null;primaryKey"`
ItemID uint32 `gorm:"not_null;primaryKey"`
Count uint32 `gorm:"not_null"`
Commander Commander `gorm:"foreignKey:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
Item Item `gorm:"foreignKey:ItemID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
}
type CommanderLivingAreaCover ¶
type CommanderLivingAreaCover struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false"`
CoverID uint32 `gorm:"primaryKey;autoIncrement:false"`
UnlockedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
IsNew bool `gorm:"default:false;not_null"`
}
func GetCommanderLivingAreaCoverEntry ¶
func GetCommanderLivingAreaCoverEntry(commanderID uint32, coverID uint32) (*CommanderLivingAreaCover, error)
func ListCommanderLivingAreaCovers ¶
func ListCommanderLivingAreaCovers(commanderID uint32) ([]CommanderLivingAreaCover, error)
type CommanderLoveLetterState ¶
type CommanderLoveLetterState struct {
CommanderID uint32
Medals []LoveLetterMedalState
ManualLetters []LoveLetterLetterState
ConvertedItems []LoveLetterConvertedItem
RewardedIDs []uint32
LetterContents map[uint32]string
CreatedAt time.Time
UpdatedAt time.Time
}
func GetCommanderLoveLetterState ¶
func GetCommanderLoveLetterState(commanderID uint32) (*CommanderLoveLetterState, error)
func GetOrCreateCommanderLoveLetterState ¶
func GetOrCreateCommanderLoveLetterState(commanderID uint32) (*CommanderLoveLetterState, error)
type CommanderMedalDisplay ¶
type CommanderMedalDisplay struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false"`
Position uint32 `gorm:"primaryKey;autoIncrement:false"`
MedalID uint32 `gorm:"not null"`
}
CommanderMedalDisplay persists a commander's ordered medal/trophy display list. Ordering is stable via Position (0-based).
type CommanderMeow ¶
type CommanderMeow struct {
ID uint32
CommanderID uint32
TemplateID uint32
Level uint32
Exp uint32
IsLocked uint32
UsedPt uint32
CreatedAt time.Time
}
func CreateCommanderMeowTx ¶
func GetCommanderMeow ¶
func GetCommanderMeow(commanderID uint32, meowID uint32) (*CommanderMeow, error)
func ListCommanderMeows ¶
func ListCommanderMeows(commanderID uint32) ([]CommanderMeow, error)
func (CommanderMeow) TableName ¶
func (CommanderMeow) TableName() string
type CommanderMetaPtProgress ¶
type CommanderMetaPtProgress struct {
CommanderID uint32
GroupID uint32
Pt uint32
FetchList []uint32
}
func GetCommanderMetaPtProgress ¶
func GetCommanderMetaPtProgress(commanderID uint32, groupID uint32) (*CommanderMetaPtProgress, error)
func GetOrCreateCommanderMetaPtProgress ¶
func GetOrCreateCommanderMetaPtProgress(commanderID uint32, groupID uint32) (*CommanderMetaPtProgress, error)
func ListCommanderMetaPtProgress ¶
func ListCommanderMetaPtProgress(commanderID uint32) ([]CommanderMetaPtProgress, error)
func (CommanderMetaPtProgress) TableName ¶
func (CommanderMetaPtProgress) TableName() string
type CommanderMetaTacticsSkillState ¶
type CommanderMetaTacticsSkillState struct {
CommanderID uint32
ShipID uint32
SkillID uint32
SkillPos uint32
Level uint32
Exp uint32
}
func ListCommanderMetaTacticsSkillStates ¶
func ListCommanderMetaTacticsSkillStates(commanderID uint32, shipID uint32) ([]CommanderMetaTacticsSkillState, error)
type CommanderMetaTacticsState ¶
type CommanderMetaTacticsState struct {
CommanderID uint32
ShipID uint32
CurrentSkillID uint32
DailyExp uint32
DoubleExp uint32
SwitchCnt uint32
}
func GetCommanderMetaTacticsState ¶
func GetCommanderMetaTacticsState(commanderID uint32, shipID uint32) (*CommanderMetaTacticsState, error)
type CommanderMetaTacticsTaskProgress ¶
type CommanderMetaTacticsTaskProgress struct {
CommanderID uint32
ShipID uint32
SkillID uint32
TaskID uint32
FinishCnt uint32
}
func ListCommanderMetaTacticsTaskProgress ¶
func ListCommanderMetaTacticsTaskProgress(commanderID uint32, shipID uint32) ([]CommanderMetaTacticsTaskProgress, error)
type CommanderMiniGameScore ¶
type CommanderMiniGameScore struct {
CommanderID uint32
Name string
Score uint32
TimeData uint32
DisplayIcon uint32
DisplaySkin uint32
IconFrame uint32
ChatFrame uint32
IconTheme uint32
}
func ListCommanderMiniGameScores ¶
func ListCommanderMiniGameScores(gameID uint32) ([]CommanderMiniGameScore, error)
type CommanderMiscItem ¶
type CommanderMiscItem struct {
CommanderID uint32 `gorm:"not_null;primaryKey"`
ItemID uint32 `gorm:"not_null;primaryKey"`
Data uint32 `gorm:"not_null;primaryKey"`
Commander Commander `gorm:"foreignKey:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
Item Item `gorm:"foreignKey:ItemID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
}
type CommanderPacketState ¶
type CommanderPacketState struct {
OwnerCommanderID uint32
CommanderID uint32
Level uint32
Name string
IsLocked bool
UsedPt uint32
AbilityIDs []uint32
AbilityOriginIDs []uint32
PendingAbilityIDs []uint32
AbilityResetAt time.Time
RenameCooldownAt time.Time
CreatedAt time.Time
UpdatedAt time.Time
}
func GetCommanderPacketState ¶
func GetCommanderPacketState(ownerCommanderID uint32, commanderID uint32) (*CommanderPacketState, error)
func GetOrCreateCommanderPacketState ¶
func GetOrCreateCommanderPacketState(ownerCommanderID uint32, commanderID uint32) (*CommanderPacketState, error)
func (CommanderPacketState) TableName ¶
func (CommanderPacketState) TableName() string
type CommanderPrefabFleet ¶
type CommanderPrefabFleet struct {
OwnerCommanderID uint32
PrefabID uint32
Name string
RenameCooldownAt time.Time
CommanderSlots []CommanderPrefabSlot
CreatedAt time.Time
UpdatedAt time.Time
}
func GetCommanderPrefabFleet ¶
func GetCommanderPrefabFleet(ownerCommanderID uint32, prefabID uint32) (*CommanderPrefabFleet, error)
func (CommanderPrefabFleet) TableName ¶
func (CommanderPrefabFleet) TableName() string
type CommanderPrefabSlot ¶
type CommanderQuickFinishCounts ¶
func ComputeCommanderQuickFinishCounts ¶
func ComputeCommanderQuickFinishCounts(boxes []CommanderBox, now uint32, availableItems uint32) CommanderQuickFinishCounts
type CommanderShipSkill ¶
type CommanderShipSkill struct {
CommanderID uint32
ShipID uint32
SkillPos uint32
SkillID uint32
Level uint32
Exp uint32
}
func GetCommanderShipSkill ¶
func GetCommanderShipSkill(commanderID uint32, shipID uint32, skillPos uint32) (*CommanderShipSkill, error)
type CommanderShipyardBlueprint ¶
type CommanderShipyardBlueprint struct {
CommanderID uint32
BlueprintID uint32
ShipID uint32
StartTime uint32
BluePrintLevel uint32
Exp uint32
StartDuration uint32
}
func ListCommanderShipyardBlueprints ¶
func ListCommanderShipyardBlueprints(commanderID uint32) ([]CommanderShipyardBlueprint, error)
func (CommanderShipyardBlueprint) TableName ¶
func (CommanderShipyardBlueprint) TableName() string
type CommanderShipyardState ¶
type CommanderShipyardState struct {
CommanderID uint32
ColdTime uint32
DailyCatchupStrengthen uint32
DailyCatchupStrengthenUR uint32
}
func GetCommanderShipyardState ¶
func GetCommanderShipyardState(commanderID uint32) (*CommanderShipyardState, error)
func (CommanderShipyardState) TableName ¶
func (CommanderShipyardState) TableName() string
type CommanderSkillClass ¶
type CommanderSkillClass struct {
CommanderID uint32
RoomID uint32
ShipID uint32
SkillPos uint32
SkillID uint32
StartTime uint32
FinishTime uint32
Exp uint32
}
func ListCommanderSkillClasses ¶
func ListCommanderSkillClasses(commanderID uint32) ([]CommanderSkillClass, error)
type CommanderSocialProfile ¶
type CommanderSocialProfile struct {
CommanderID uint32
Name string
Level uint32
Manifesto string
LastLoginUnix uint32
DisplayIconID uint32
DisplaySkinID uint32
SelectedIconFrameID uint32
SelectedChatFrameID uint32
DisplayIconThemeID uint32
ShipCount uint32
CollectionCount uint32
CollectAttackCount uint32
PvpAttackCount uint32
PvpWinCount uint32
}
func GetCommanderSocialProfile ¶
func GetCommanderSocialProfile(commanderID uint32) (CommanderSocialProfile, error)
func GetCommanderSocialProfileByID ¶
func GetCommanderSocialProfileByID(commanderID uint32) (*CommanderSocialProfile, error)
func GetCommanderSocialProfileByName ¶
func GetCommanderSocialProfileByName(name string) (*CommanderSocialProfile, error)
func ListCommanderSocialProfilesForRecommendations ¶
func ListCommanderSocialProfilesForRecommendations(excludeCommanderID uint32, limit int) ([]CommanderSocialProfile, error)
func ListFriendProfiles ¶
func ListFriendProfiles(commanderID uint32) ([]CommanderSocialProfile, error)
type CommanderSoundStory ¶
type CommanderStoreupAwardProgress ¶
type CommanderStoreupAwardProgress struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false"`
StoreupID uint32 `gorm:"primaryKey;autoIncrement:false"`
LastAwardIndex uint32 `gorm:"not null;default:0"`
}
CommanderStoreupAwardProgress tracks which collection (storeup) award tiers a commander has claimed. LastAwardIndex is a 1-based index into storeup_data_template.award_display/level.
func GetCommanderStoreupAwardProgress ¶
func GetCommanderStoreupAwardProgress(commanderID uint32, storeupID uint32) (*CommanderStoreupAwardProgress, error)
func ListCommanderStoreupAwardProgress ¶
func ListCommanderStoreupAwardProgress(commanderID uint32) ([]CommanderStoreupAwardProgress, error)
type CommanderStory ¶
type CommanderSurvey ¶
type CommanderTB ¶
type CommanderTB struct {
CommanderID uint32 `gorm:"primary_key"`
State []byte `gorm:"not_null"`
Permanent []byte `gorm:"not_null"`
}
func GetCommanderTB ¶
func GetCommanderTB(commanderID uint32) (*CommanderTB, error)
func NewCommanderTB ¶
func NewCommanderTB(commanderID uint32, info *protobuf.TBINFO, permanent *protobuf.TBPERMANENT) (*CommanderTB, error)
func (*CommanderTB) Decode ¶
func (entry *CommanderTB) Decode() (*protobuf.TBINFO, *protobuf.TBPERMANENT, error)
func (*CommanderTB) Encode ¶
func (entry *CommanderTB) Encode(info *protobuf.TBINFO, permanent *protobuf.TBPERMANENT) error
type CommanderTask ¶
type CommanderTask struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false"`
TaskID uint32 `gorm:"primaryKey;autoIncrement:false"`
Progress uint32 `gorm:"not null;default:0"`
AcceptTime uint32 `gorm:"not null;default:0"`
SubmitTime uint32 `gorm:"not null;default:0"`
}
func GetCommanderTaskTx ¶
func ListCommanderTasks ¶
func ListCommanderTasks(commanderID uint32) ([]CommanderTask, error)
func (CommanderTask) TableName ¶
func (CommanderTask) TableName() string
type CommanderTrophyProgress ¶
type CommanderTrophyProgress struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false"`
TrophyID uint32 `gorm:"primaryKey;autoIncrement:false"`
Progress uint32 `gorm:"not null;default:0"`
Timestamp uint32 `gorm:"not null;default:0"`
}
CommanderTrophyProgress tracks a commander's trophy/medal progress and claim timestamp. Timestamp == 0 means unclaimed.
func GetCommanderTrophyProgress ¶
func GetCommanderTrophyProgress(commanderID uint32, trophyID uint32) (*CommanderTrophyProgress, error)
func ListCommanderTrophyProgress ¶
func ListCommanderTrophyProgress(commanderID uint32) ([]CommanderTrophyProgress, error)
type Compensation ¶
type Compensation struct {
ID uint32 `gorm:"primary_key"`
CommanderID uint32 `gorm:"not_null"`
Title string `gorm:"type:varchar(100);not_null"`
Text string `gorm:"type:varchar(2000);not_null"`
SendTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
ExpiresAt time.Time `gorm:"type:timestamp;not_null"`
AttachFlag bool `gorm:"not_null;default:false"`
CreatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
Attachments []CompensationAttachment `gorm:"foreignkey:CompensationID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE"`
}
func GetCompensationByCommanderAndID ¶
func GetCompensationByCommanderAndID(commanderID uint32, compensationID uint32) (*Compensation, error)
func LoadCommanderCompensations ¶
func LoadCommanderCompensations(commanderID uint32) ([]Compensation, error)
func (*Compensation) CollectAttachments ¶
func (c *Compensation) CollectAttachments(commander *Commander) ([]CompensationAttachment, error)
func (*Compensation) Create ¶
func (c *Compensation) Create() error
func (*Compensation) Delete ¶
func (c *Compensation) Delete() error
func (*Compensation) Update ¶
func (c *Compensation) Update() error
type CompensationAttachment ¶
type ComposeDataTemplateEntry ¶
type ComposeDataTemplateEntry struct {
ID uint32 `json:"id"`
EquipID uint32 `json:"equip_id"`
MaterialID uint32 `json:"material_id"`
MaterialNum uint32 `json:"material_num"`
GoldNum uint32 `json:"gold_num"`
}
func GetComposeDataTemplateEntry ¶
func GetComposeDataTemplateEntry(id uint32) (*ComposeDataTemplateEntry, error)
type ConfigEntry ¶
type ConfigEntry struct {
ID uint64 `json:"id"`
Category string `json:"category"`
Key string `json:"key"`
Data json.RawMessage `json:"data"`
}
func GetConfigEntry ¶
func GetConfigEntry(category string, key string) (*ConfigEntry, error)
func GetConfigEntryByID ¶
func GetConfigEntryByID(id uint64) (*ConfigEntry, error)
func ListConfigEntries ¶
func ListConfigEntries(category string) ([]ConfigEntry, error)
func ListConfigEntriesFiltered ¶
func ListConfigEntriesFiltered(category string, key string) ([]ConfigEntry, error)
type DeviceAuthMap ¶
type DeviceAuthMap struct {
DeviceID string `gorm:"primary_key;size:128"`
Arg2 uint32 `gorm:"not_null"`
AccountID uint32 `gorm:"not_null"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`
}
func GetDeviceAuthMapByDeviceID ¶
func GetDeviceAuthMapByDeviceID(deviceID string) (*DeviceAuthMap, error)
type Dorm3dActInfo ¶
func ApplyDorm3dTriggerEvents ¶
func ApplyDorm3dTriggerEvents(commanderID uint32, events []Dorm3dEventInfo, now uint32) ([]Dorm3dActInfo, error)
type Dorm3dApartment ¶
type Dorm3dApartment struct {
CommanderID uint32 `gorm:"primary_key" json:"commander_id"`
DailyVigorMax uint32 `gorm:"not_null;default:0" json:"daily_vigor_max"`
Gifts Dorm3dGiftList `gorm:"type:text;not_null;default:'[]'" json:"gifts"`
Ships Dorm3dShipList `gorm:"type:text;not_null;default:'[]'" json:"ships"`
GiftDaily Dorm3dGiftShopList `gorm:"type:text;not_null;default:'[]'" json:"gift_daily"`
GiftPermanent Dorm3dGiftShopList `gorm:"type:text;not_null;default:'[]'" json:"gift_permanent"`
FurnitureDaily Dorm3dGiftShopList `gorm:"type:text;not_null;default:'[]'" json:"furniture_daily"`
FurniturePermanent Dorm3dGiftShopList `gorm:"type:text;not_null;default:'[]'" json:"furniture_permanent"`
Rooms Dorm3dRoomList `gorm:"type:text;not_null;default:'[]'" json:"rooms"`
Ins Dorm3dInsList `gorm:"type:text;not_null;default:'[]'" json:"ins"`
}
func GetDorm3dApartment ¶
func GetDorm3dApartment(commanderID uint32) (*Dorm3dApartment, error)
func GetDorm3dApartmentTx ¶
func GetOrCreateDorm3dApartment ¶
func GetOrCreateDorm3dApartment(commanderID uint32) (*Dorm3dApartment, error)
func ListDorm3dApartments ¶
func ListDorm3dApartments(offset int, limit int) ([]Dorm3dApartment, int64, error)
func NewDorm3dApartment ¶
func NewDorm3dApartment(commanderID uint32) Dorm3dApartment
func (*Dorm3dApartment) AddRoom ¶
func (apartment *Dorm3dApartment) AddRoom(room Dorm3dRoom) bool
func (*Dorm3dApartment) EnsureDefaults ¶
func (apartment *Dorm3dApartment) EnsureDefaults()
func (*Dorm3dApartment) FindGift ¶
func (apartment *Dorm3dApartment) FindGift(giftID uint32) *Dorm3dGift
func (*Dorm3dApartment) FindShip ¶
func (apartment *Dorm3dApartment) FindShip(shipGroup uint32) *Dorm3dShip
func (*Dorm3dApartment) RoomByID ¶
func (apartment *Dorm3dApartment) RoomByID(roomID uint32) *Dorm3dRoom
type Dorm3dCommInfo ¶
type Dorm3dCommInfo struct {
ID uint32 `json:"id"`
Time uint32 `json:"time"`
ReadFlag uint32 `json:"read_flag"`
ReplyList []Dorm3dKeyValue `json:"reply_list"`
}
type Dorm3dEventInfo ¶
type Dorm3dFriendCircleInfo ¶
type Dorm3dFurniture ¶
type Dorm3dGift ¶
type Dorm3dGiftList ¶
type Dorm3dGiftList []Dorm3dGift
func (*Dorm3dGiftList) Scan ¶
func (list *Dorm3dGiftList) Scan(value any) error
type Dorm3dGiftShop ¶
type Dorm3dGiftShopList ¶
type Dorm3dGiftShopList []Dorm3dGiftShop
func (*Dorm3dGiftShopList) Scan ¶
func (list *Dorm3dGiftShopList) Scan(value any) error
type Dorm3dIns ¶
type Dorm3dIns struct {
ShipGroup uint32 `json:"ship_group"`
CareFlag uint32 `json:"care_flag"`
CurBack uint32 `json:"cur_back"`
CurCommId uint32 `json:"cur_comm_id"`
CommList []Dorm3dCommInfo `json:"comm_list"`
PhoneList []Dorm3dPhoneInfo `json:"phone_list"`
FriendList []Dorm3dFriendCircleInfo `json:"friend_list"`
}
type Dorm3dInsList ¶
type Dorm3dInsList []Dorm3dIns
func (*Dorm3dInsList) Scan ¶
func (list *Dorm3dInsList) Scan(value any) error
type Dorm3dKeyValue ¶
type Dorm3dPhoneInfo ¶
type Dorm3dReplyFriend ¶
type Dorm3dRoom ¶
type Dorm3dRoom struct {
ID uint32 `json:"id"`
Furnitures []Dorm3dFurniture `json:"furnitures"`
Collections []uint32 `json:"collections"`
Ships []uint32 `json:"ships"`
}
type Dorm3dRoomList ¶
type Dorm3dRoomList []Dorm3dRoom
func (*Dorm3dRoomList) Scan ¶
func (list *Dorm3dRoomList) Scan(value any) error
type Dorm3dShip ¶
type Dorm3dShip struct {
ShipGroup uint32 `json:"ship_group"`
FavorLv uint32 `json:"favor_lv"`
FavorExp uint32 `json:"favor_exp"`
RegularTrigger []uint32 `json:"regular_trigger"`
DailyFavor uint32 `json:"daily_favor"`
Dialogues []uint32 `json:"dialogues"`
Skins []uint32 `json:"skins"`
CurSkin uint32 `json:"cur_skin"`
Name string `json:"name"`
NameCd uint32 `json:"name_cd"`
VisitTime uint32 `json:"visit_time"`
HiddenInfo []Dorm3dSkinHiddenInfo `json:"hidden_info"`
}
type Dorm3dShipList ¶
type Dorm3dShipList []Dorm3dShip
func (*Dorm3dShipList) Scan ¶
func (list *Dorm3dShipList) Scan(value any) error
type Dorm3dSkinHiddenInfo ¶
type EducateShopGoodsState ¶
type EducateShopState ¶
type EducateShopState struct {
CommanderID uint32
ShopID uint32
RefreshKey uint32
Goods []EducateShopGoodsState
}
func GetEducateShopStateTx ¶
func ListEducateShopStates ¶
func ListEducateShopStates(commanderID uint32) ([]EducateShopState, error)
func (EducateShopState) TableName ¶
func (EducateShopState) TableName() string
type EquipCodeLike ¶
type EquipCodeLike struct {
ID uint64 `gorm:"primaryKey"`
CommanderID uint32 `gorm:"not_null;index;uniqueIndex:idx_equip_code_like_dedupe"`
ShipGroupID uint32 `gorm:"not_null;uniqueIndex:idx_equip_code_like_dedupe"`
LikeDay uint32 `gorm:"not_null;uniqueIndex:idx_equip_code_like_dedupe"`
CreatedAt time.Time
}
type EquipCodeReport ¶
type EquipCodeReport struct {
ID uint64 `gorm:"primaryKey"`
CommanderID uint32 `gorm:"not_null;index;uniqueIndex:idx_equip_code_report_dedupe"`
ReportDay uint32 `gorm:"not_null;uniqueIndex:idx_equip_code_report_dedupe"`
ShipGroupID uint32 `gorm:"not_null"`
ReportType uint32 `gorm:"not_null"`
CreatedAt time.Time
}
type EquipCodeShare ¶
type EquipCodeShare struct {
}
EquipCodeShare tracks per-commander sharing activity for equipment codes. It is used for enforcing daily share limits.
type EquipUpgradeData ¶
type EquipUpgradeData struct {
ID uint32
UpgradeFrom uint32
TargetID uint32
CoinConsume uint32
MaterialCost []EquipUpgradeMaterial
}
func GetEquipUpgradeDataTx ¶
func GetEquipUpgradeDataTx(upgradeID uint32) (*EquipUpgradeData, error)
type EquipUpgradeMaterial ¶
type Equipment ¶
type Equipment struct {
ID uint32 `gorm:"primary_key" json:"id"`
Base *uint32 `gorm:"type:int" json:"base"`
DestroyGold uint32 `gorm:"not_null" json:"destory_gold"`
DestroyItem json.RawMessage `gorm:"type:json" json:"destory_item"`
EquipLimit int `gorm:"not_null" json:"equip_limit"`
Group uint32 `gorm:"not_null" json:"group"`
Important uint32 `gorm:"not_null" json:"important"`
Level uint32 `gorm:"not_null" json:"level"`
Next int `gorm:"not_null" json:"next"`
Prev int `gorm:"not_null" json:"prev"`
RestoreGold uint32 `gorm:"not_null" json:"restore_gold"`
RestoreItem json.RawMessage `gorm:"type:json" json:"restore_item"`
ShipTypeForbidden json.RawMessage `gorm:"type:json" json:"ship_type_forbidden"`
TransUseGold uint32 `gorm:"not_null" json:"trans_use_gold"`
TransUseItem json.RawMessage `gorm:"type:json" json:"trans_use_item"`
Type uint32 `gorm:"not_null" json:"type"`
UpgradeFormulaID json.RawMessage `gorm:"type:json" json:"upgrade_formula_id"`
}
func GetEquipmentByID ¶
type EscortState ¶
type EscortState struct {
ID uint64 `gorm:"primary_key"`
AccountID uint32 `gorm:"not_null;index:idx_escort_account_line,unique"`
LineID uint32 `gorm:"not_null;index:idx_escort_account_line,unique"`
AwardTimestamp uint32 `gorm:"not_null;default:0"`
FlashTimestamp uint32 `gorm:"not_null;default:0"`
MapPositions json.RawMessage `gorm:"type:json"`
CreatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
UpdatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
}
type EventCollection ¶
type EventCollection struct {
CommanderID uint32 `gorm:"primaryKey"`
CollectionID uint32 `gorm:"primaryKey"`
StartTime uint32 `gorm:"not_null;default:0"`
FinishTime uint32 `gorm:"not_null;default:0"`
ShipIDs Int64List `gorm:"type:text;not_null;default:'[]'"`
}
EventCollection stores the active collection/commission event state for a commander. A row exists while the event is active (or finished-but-unclaimed).
func GetEventCollection ¶
func GetEventCollection(_ any, commanderID, collectionID uint32) (*EventCollection, error)
func GetOrCreateActiveEvent ¶
func GetOrCreateActiveEvent(_ any, commanderID uint32, collectionID uint32) (*EventCollection, error)
func ListActiveEventCollections ¶
func ListActiveEventCollections(commanderID uint32) ([]EventCollection, error)
type ExchangeCode ¶
type ExchangeCode struct {
ID uint32 `gorm:"primary_key"`
Code string `gorm:"size:64;not_null;uniqueIndex"`
Platform string `gorm:"size:32"`
Quota int `gorm:"not_null;default:-1"`
Rewards json.RawMessage `gorm:"type:json;not_null"`
CreatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
UpdatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
}
func GetExchangeCode ¶
func GetExchangeCode(codeID uint32) (*ExchangeCode, error)
func ListExchangeCodes ¶
func ListExchangeCodes(offset int, limit int) ([]ExchangeCode, int64, error)
type ExchangeCodeRedeem ¶
type ExchangeCodeRedeem struct {
ExchangeCodeID uint32 `gorm:"primaryKey"`
CommanderID uint32 `gorm:"primaryKey"`
RedeemedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
}
func ListExchangeCodeRedeems ¶
type ExerciseFleet ¶
type ExerciseFleet struct {
CommanderID uint32 `gorm:"primary_key"`
VanguardShipIDs Int64List `gorm:"column=vanguard_ship_ids;type:json;not_null"`
MainShipIDs Int64List `gorm:"column=main_ship_ids;type:json;not_null"`
}
func GetExerciseFleet ¶
func GetExerciseFleet(commanderID uint32) (*ExerciseFleet, error)
type FeastPartyRole ¶
type FeastSpecialRole ¶
type FeastState ¶
type FeastState struct {
CommanderID uint32
ActID uint32
RefreshTime uint32
PartyRoles []FeastPartyRole
SpecialRoles []FeastSpecialRole
}
func GetFeastState ¶
func GetFeastState(commanderID uint32, actID uint32) (*FeastState, error)
func GetOrCreateFeastState ¶
func GetOrCreateFeastState(commanderID uint32, actID uint32) (*FeastState, error)
type Fleet ¶
type Fleet struct {
ID uint32 `gorm:"primary_key"` // uniquely identifies the fleet
GameID uint32 `gorm:"not_null"` // uniquely identifies for each commander
CommanderID uint32 `gorm:"not_null"` // owner of the fleet
Name string `gorm:"size:32;not_null;varchar(32)"`
ShipList Int64List `gorm:"type:json;not_null"`
MeowfficerList Int64List `gorm:"type:json;not_null"`
}
func (*Fleet) AddMeowfficer ¶
func (*Fleet) RemoveMeowfficer ¶
func (*Fleet) RenameFleet ¶
type FleetTechAttrOverride ¶
type FleetTechGroupState ¶
type FriendDirectMessage ¶
type FriendDirectMessage struct {
ID uint64 `json:"id"`
SenderID uint32 `json:"sender_id"`
ReceiverID uint32 `json:"receiver_id"`
Content string `json:"content"`
CreatedAt uint32 `json:"created_at"`
}
type FriendRelationship ¶
type FriendRequest ¶
func ListFriendRequestsForTarget ¶
func ListFriendRequestsForTarget(targetID uint32) ([]FriendRequest, error)
type GameRoomScore ¶
func ListGameRoomScores ¶
func ListGameRoomScores(commanderID uint32) ([]GameRoomScore, error)
func (GameRoomScore) TableName ¶
func (GameRoomScore) TableName() string
type GameRoomState ¶
type GameRoomState struct {
CommanderID uint32
WeekStartUnix uint32
WeeklyClaimed bool
PayCoinCount uint32
FirstEnterClaimed bool
MonthKey uint32
MonthlyTicket uint32
}
func LoadGameRoomState ¶
func LoadGameRoomState(commanderID uint32, now time.Time) (*GameRoomState, error)
func (GameRoomState) TableName ¶
func (GameRoomState) TableName() string
type GlobalSkinRestriction ¶
type GlobalSkinRestriction struct {
SkinID uint32 `gorm:"primaryKey"`
Type uint32 `gorm:"not_null"`
}
GlobalSkinRestriction defines global hide/show restrictions for skins.
func GetGlobalSkinRestrictionBySkinID ¶
func GetGlobalSkinRestrictionBySkinID(skinID uint32) (*GlobalSkinRestriction, error)
func ListGlobalSkinRestrictions ¶
func ListGlobalSkinRestrictions() ([]GlobalSkinRestriction, error)
func ListGlobalSkinRestrictionsPage ¶
func ListGlobalSkinRestrictionsPage(offset int, limit int) ([]GlobalSkinRestriction, int64, error)
type GlobalSkinRestrictionWindow ¶
type GlobalSkinRestrictionWindow struct {
ID uint32 `gorm:"primaryKey"`
SkinID uint32 `gorm:"not_null"`
Type uint32 `gorm:"not_null"`
StartTime uint32 `gorm:"not_null"`
StopTime uint32 `gorm:"not_null"`
}
GlobalSkinRestrictionWindow defines time-based overrides for skin shop availability.
func GetGlobalSkinRestrictionWindowByID ¶
func GetGlobalSkinRestrictionWindowByID(id uint32) (*GlobalSkinRestrictionWindow, error)
func ListGlobalSkinRestrictionWindows ¶
func ListGlobalSkinRestrictionWindows() ([]GlobalSkinRestrictionWindow, error)
func ListGlobalSkinRestrictionWindowsPage ¶
func ListGlobalSkinRestrictionWindowsPage(offset int, limit int) ([]GlobalSkinRestrictionWindow, int64, error)
type Guild ¶
type Guild struct {
ID uint32
Policy uint32
Faction uint32
Name string
Level uint32
Announce string
Manifesto string
Exp uint32
MemberCount uint32
ChangeFactionCD uint32
KickLeaderCD uint32
Capital uint32
TechID uint32
}
func GetGuildByID ¶
type GuildAssaultFleetSlot ¶
type GuildAssaultFleetSlot struct {
GuildID uint32
CommanderID uint32
Pos uint32
ShipID uint32
LastTime uint32
}
func ListGuildAssaultFleetSlotsByCommander ¶
func ListGuildAssaultFleetSlotsByCommander(guildID uint32, commanderID uint32) ([]GuildAssaultFleetSlot, error)
func ListGuildAssaultFleetSlotsByGuild ¶
func ListGuildAssaultFleetSlotsByGuild(guildID uint32) ([]GuildAssaultFleetSlot, error)
type GuildAssaultRecommendation ¶
func ListGuildAssaultRecommendations ¶
func ListGuildAssaultRecommendations(guildID uint32) ([]GuildAssaultRecommendation, error)
type GuildBossMissionFleet ¶
type GuildBossMissionFleet struct {
GuildID uint32
OperationID uint32
FleetID uint32
Ships []GuildBossMissionShip
Commanders []GuildBossMissionCommander
}
func ListGuildBossMissionFleets ¶
func ListGuildBossMissionFleets(guildID uint32, operationID uint32) ([]GuildBossMissionFleet, error)
type GuildBossMissionShip ¶
type GuildCapitalLogEntry ¶
type GuildChatMessage ¶
type GuildChatMessage struct {
ID uint32 `gorm:"primary_key"`
GuildID uint32 `gorm:"not_null;index:idx_guild_chat_time,priority:1"`
SenderID uint32 `gorm:"not_null"`
SentAt time.Time `gorm:"not_null;default:CURRENT_TIMESTAMP;index:idx_guild_chat_time,priority:2,sort:desc"`
Content string `gorm:"not_null;type:varchar(512)"`
Sender Commander `gorm:"foreignkey:SenderID;references:CommanderID"`
}
func CreateGuildChatMessage ¶
func ListGuildChatMessages ¶
func ListGuildChatMessages(guildID uint32, limit int) ([]GuildChatMessage, error)
type GuildDirectoryEntry ¶
type GuildDirectoryEntry struct {
Guild Guild
Leader CommanderSocialProfile
TechSeat uint32
}
func ListGuildDirectoryRefresh ¶
func ListGuildDirectoryRefresh(limit uint32) ([]GuildDirectoryEntry, error)
func SearchGuildDirectoryByID ¶
func SearchGuildDirectoryByID(guildID uint32) ([]GuildDirectoryEntry, error)
func SearchGuildDirectoryByName ¶
func SearchGuildDirectoryByName(keyword string) ([]GuildDirectoryEntry, error)
type GuildJoinRequest ¶
type GuildJoinRequest struct {
GuildID uint32
Applicant CommanderSocialProfile
Content string
RequestedAt time.Time
}
func ListGuildJoinRequests ¶
func ListGuildJoinRequests(guildID uint32) ([]GuildJoinRequest, error)
type GuildMember ¶
type GuildMember struct {
GuildID uint32
CommanderID uint32
Duty uint32
Liveness uint32
PreOnlineTime uint32
JoinTime uint32
CommanderName string
CommanderLevel uint32
Manifesto string
LastLogin time.Time
DisplayIconID uint32
DisplaySkinID uint32
IconFrameID uint32
ChatFrameID uint32
IconThemeID uint32
}
func GetCommanderGuildMembership ¶
func GetCommanderGuildMembership(commanderID uint32) (*GuildMember, error)
func ListGuildMembers ¶
func ListGuildMembers(guildID uint32) ([]GuildMember, error)
type GuildMemberRankEntry ¶
type GuildOfficeState ¶
type GuildOfficeState struct {
BenefitFinishTime uint32
LastBenefitFinishTime uint32
TechCancelCnt uint32
}
func GetGuildOfficeState ¶
func GetGuildOfficeState(guildID uint32) (*GuildOfficeState, error)
type GuildOperationBossRank ¶
func ListGuildOperationBossRanks ¶
func ListGuildOperationBossRanks(guildID uint32, operationID uint32, bossID uint32) ([]GuildOperationBossRank, error)
type GuildOperationBossState ¶
type GuildOperationBossState struct {
GuildID uint32
OperationID uint32
BossID uint32
Damage uint32
HP uint32
}
func GetGuildOperationBossState ¶
func GetGuildOperationBossState(guildID uint32, operationID uint32) (*GuildOperationBossState, error)
type GuildOperationEvent ¶
type GuildOperationEvent struct {
EventTid uint32
Position uint32
StartTime uint32
CompleteTime uint32
Efficiency uint32
Completed bool
ShipInEvent json.RawMessage
AttrAccList json.RawMessage
AttrCountList json.RawMessage
EventNodes json.RawMessage
PersonShip json.RawMessage
FormationTime uint32
}
func GetGuildOperationEvent ¶
func GetGuildOperationEvent(guildID uint32, eventTid uint32) (*GuildOperationEvent, error)
type GuildOperationPerf ¶
type GuildOperationState ¶
type GuildOperationState struct {
GuildID uint32
ChapterID uint32
StartTime uint32
EndTime uint32
Events []GuildOperationEvent
Perfs []GuildOperationPerf
JoinTimes uint32
IsParticipant uint32
}
func GetGuildOperationState ¶
func GetGuildOperationState(guildID uint32) (*GuildOperationState, error)
func GetGuildOperationStateForCommander ¶
func GetGuildOperationStateForCommander(commanderID uint32) (*GuildOperationState, error)
type GuildReport ¶
type GuildReport struct {
ID uint32
GuildID uint32
EventID uint32
EventType uint32
Score uint32
Status uint32
Claimed bool
DropType uint32
DropID uint32
DropCount uint32
Nodes []GuildReportNode
}
func ClaimGuildReports ¶
func ClaimGuildReports(guildID uint32, reportIDs []uint32) ([]GuildReport, error)
func ClaimGuildReportsTx ¶
func ListGuildReportsSince ¶
func ListGuildReportsSince(guildID uint32, index uint32) ([]GuildReport, error)
type GuildReportNode ¶
type GuildReportRank ¶
func ListGuildReportRanks ¶
func ListGuildReportRanks(guildID uint32, reportID uint32) ([]GuildReportRank, error)
type GuildShopGood ¶
type GuildShopGood struct {
CommanderID uint32 `gorm:"primary_key"`
Index uint32 `gorm:"primary_key"`
GoodsID uint32 `gorm:"not_null"`
Count uint32 `gorm:"not_null"`
}
func LoadGuildShopGoods ¶
func LoadGuildShopGoods(commanderID uint32) ([]GuildShopGood, error)
type GuildShopState ¶
type GuildShopState struct {
CommanderID uint32 `gorm:"primary_key"`
RefreshCount uint32 `gorm:"not_null"`
NextRefreshTime uint32 `gorm:"not_null"`
}
func GetGuildShopState ¶
func GetGuildShopState(commanderID uint32) (*GuildShopState, error)
type GuildUserInfo ¶
type GuildUserInfo struct {
CommanderID uint32
GuildID uint32
DonateCount uint32
DonateTasks []uint32
BenefitTime uint32
WeeklyTaskFlag uint32
ExtraDonate uint32
ExtraOperation uint32
}
func GetGuildUserInfo ¶
func GetGuildUserInfo(commanderID uint32) (*GuildUserInfo, error)
type GuildWeeklyTaskState ¶
type GuildWeeklyTaskState struct {
GuildID uint32
TaskID uint32
Progress uint32
Monday0Clock uint32
UpdatedAtUnix uint32
}
func GetGuildWeeklyTaskState ¶
func GetGuildWeeklyTaskState(guildID uint32) (*GuildWeeklyTaskState, error)
type IslandAchievementState ¶
type IslandAchievementState struct {
CommanderID uint32
ProgressEntries []IslandAchievementProgressEntry
FinishList []uint32
}
func GetIslandAchievementState ¶
func GetIslandAchievementState(commanderID uint32) (*IslandAchievementState, error)
func NewIslandAchievementState ¶
func NewIslandAchievementState(commanderID uint32) *IslandAchievementState
func (*IslandAchievementState) HasFinished ¶
func (state *IslandAchievementState) HasFinished(achievementID uint32) bool
func (*IslandAchievementState) ProgressValue ¶
func (state *IslandAchievementState) ProgressValue(eventType uint32, eventArg uint32) (uint32, bool)
func (*IslandAchievementState) SetProgress ¶
func (state *IslandAchievementState) SetProgress(eventType uint32, eventArg uint32, value uint32)
func (IslandAchievementState) TableName ¶
func (IslandAchievementState) TableName() string
type IslandAgoraPlacement ¶
type IslandAgoraPlacement struct {
CommanderID uint32 `json:"commander_id"`
PlacedData []byte `json:"placed_data"`
}
func GetIslandAgoraPlacement ¶
func GetIslandAgoraPlacement(commanderID uint32) (*IslandAgoraPlacement, error)
func (IslandAgoraPlacement) TableName ¶
func (IslandAgoraPlacement) TableName() string
type IslandAgoraTheme ¶
type IslandAgoraTheme struct {
CommanderID uint32 `json:"commander_id"`
ThemeSlotID uint32 `json:"theme_slot_id"`
Name string `json:"name"`
PlacedData []byte `json:"placed_data"`
}
func ListIslandAgoraThemes ¶
func ListIslandAgoraThemes(commanderID uint32) ([]IslandAgoraTheme, error)
type IslandBookCollectEntry ¶
type IslandBookCollectEntry struct {
ID uint32 `json:"id"`
Base uint32 `json:"base"`
LvList []IslandBookCollectLevel `json:"lv_list"`
StarList []IslandBookCollectLevel `json:"star_list"`
}
type IslandBookCollectLevel ¶
type IslandBookCond ¶
type IslandBookCond struct {
CommanderID uint32 `json:"commander_id"`
Type uint32 `json:"type"`
UnlockID uint32 `json:"unlock_id"`
}
func ListIslandBookConds ¶
func ListIslandBookConds(commanderID uint32) ([]IslandBookCond, error)
func (IslandBookCond) TableName ¶
func (IslandBookCond) TableName() string
type IslandBookState ¶
type IslandBookState struct {
CommanderID uint32
BookList []uint32
BookAwards []uint32
BookCollects []IslandBookCollectEntry
}
func GetIslandBookState ¶
func GetIslandBookState(commanderID uint32) (*IslandBookState, error)
func NewIslandBookState ¶
func NewIslandBookState(commanderID uint32) *IslandBookState
func (IslandBookState) TableName ¶
func (IslandBookState) TableName() string
type IslandCapState ¶
type IslandCardLabelCount ¶
type IslandCardState ¶
type IslandCardState struct {
CommanderID uint32
Picture string
VisitWord string
SocialFlag uint32
LabelViewFlag uint32
LabelCounts []IslandCardLabelCount
AchieveDisplayIDs []uint32
VisitNum uint32
GoodNum uint32
ShipNum uint32
BookNum uint32
AchievementTotal uint32
}
func GetIslandCardState ¶
func GetIslandCardState(commanderID uint32) (*IslandCardState, error)
func NewIslandCardState ¶
func NewIslandCardState(commanderID uint32) *IslandCardState
func (IslandCardState) TableName ¶
func (IslandCardState) TableName() string
type IslandCommanderDressProfile ¶
type IslandCommanderDressProfile struct {
CommanderID uint32
IslandID uint32
CurDress []IslandCurDress
CapList []IslandCapState
}
func GetIslandCommanderDressProfile ¶
func GetIslandCommanderDressProfile(commanderID uint32) (*IslandCommanderDressProfile, error)
type IslandCommanderDressState ¶
type IslandCommanderDressState struct {
CommanderID uint32
DressID uint32
State uint32
Color uint32
ColorList []uint32
}
func GetIslandCommanderDressState ¶
func GetIslandCommanderDressState(commanderID uint32, dressID uint32) (*IslandCommanderDressState, error)
func ListIslandCommanderDressStates ¶
func ListIslandCommanderDressStates(commanderID uint32) ([]IslandCommanderDressState, error)
func (IslandCommanderDressState) TableName ¶
func (IslandCommanderDressState) TableName() string
type IslandCurDress ¶
type IslandDelegation ¶
type IslandDelegation struct {
CommanderID uint32 `gorm:"primaryKey;column:commander_id"`
BuildID uint32 `gorm:"primaryKey;column:build_id"`
AreaID uint32 `gorm:"primaryKey;column:area_id"`
ShipID uint32 `gorm:"column:ship_id"`
HasRole bool `gorm:"column:has_role"`
RewardReady bool `gorm:"column:reward_ready"`
FormulaID uint32 `gorm:"column:formula_id"`
MaxTimes uint32 `gorm:"column:max_times"`
MainNum uint32 `gorm:"column:main_num"`
OtherNum uint32 `gorm:"column:other_num"`
ExtraMainNum uint32 `gorm:"column:extra_main_num"`
ExtraOtherNum uint32 `gorm:"column:extra_other_num"`
GetTimes uint32 `gorm:"column:get_times"`
StartTime uint32 `gorm:"column:start_time"`
CostTimeList []uint32
SpeedTime uint32 `gorm:"column:speed_time"`
TimesExtra []uint32
RecoverTime uint32 `gorm:"column:recover_time"`
AddExp uint32 `gorm:"column:add_exp"`
ReturnNum uint32 `gorm:"column:return_num"`
PTAward uint32 `gorm:"column:pt_award"`
}
func GetIslandDelegation ¶
func GetIslandDelegation(commanderID uint32, buildID uint32, areaID uint32) (*IslandDelegation, error)
func (IslandDelegation) TableName ¶
func (IslandDelegation) TableName() string
type IslandFishWeightState ¶
type IslandFishingState ¶
type IslandFishingState struct {
CommanderID uint32
BaitID uint32
FishRod uint32
FishWeights []IslandFishWeightState
}
func GetIslandFishingState ¶
func GetIslandFishingState(commanderID uint32) (*IslandFishingState, error)
func (IslandFishingState) TableName ¶
func (IslandFishingState) TableName() string
type IslandFollower ¶
type IslandFollower struct {
CommanderID uint32 `gorm:"primaryKey;column:commander_id"`
ShipID uint32 `gorm:"primaryKey;column:ship_id"`
OrderIdx uint32 `gorm:"column:order_idx"`
}
func ListIslandFollowers ¶
func ListIslandFollowers(commanderID uint32) ([]IslandFollower, error)
func (IslandFollower) TableName ¶
func (IslandFollower) TableName() string
type IslandHandPlant ¶
type IslandHandPlant struct {
CommanderID uint32 `gorm:"primaryKey;column:commander_id"`
BuildID uint32 `gorm:"column:build_id"`
SlotID uint32 `gorm:"primaryKey;column:slot_id"`
State uint32 `gorm:"column:state"`
FormulaID uint32 `gorm:"column:formula_id"`
StartTime uint32 `gorm:"column:start_time"`
EndTime uint32 `gorm:"column:end_time"`
}
func ListIslandHandPlantsByBuild ¶
func ListIslandHandPlantsByBuild(commanderID uint32, buildID uint32) ([]IslandHandPlant, error)
func (IslandHandPlant) TableName ¶
func (IslandHandPlant) TableName() string
type IslandInventory ¶
type IslandInventory struct {
CommanderID uint32 `gorm:"primaryKey;column:commander_id"`
ItemID uint32 `gorm:"primaryKey;column:item_id"`
Count uint32 `gorm:"column:count"`
}
func GetIslandInventoryItem ¶
func GetIslandInventoryItem(commanderID uint32, itemID uint32) (*IslandInventory, error)
func ListIslandInventoryItems ¶
func ListIslandInventoryItems(commanderID uint32) ([]IslandInventory, error)
func (IslandInventory) TableName ¶
func (IslandInventory) TableName() string
type IslandManageTrade ¶
type IslandManageTrade struct {
CommanderID uint32 `gorm:"primaryKey;column:commander_id"`
TradeID uint32 `gorm:"primaryKey;column:trade_id"`
TradeData []byte `gorm:"column:trade_data"`
PresellData []byte `gorm:"column:presell_data"`
TotalSales uint32 `gorm:"column:total_sales"`
}
func (IslandManageTrade) TableName ¶
func (IslandManageTrade) TableName() string
type IslandNPCFeedbackState ¶
type IslandNPCFeedbackState struct {
CommanderID uint32
DayStartUnix uint32
ClaimedNPCIDs []uint32
}
func GetIslandNPCFeedbackState ¶
func GetIslandNPCFeedbackState(commanderID uint32) (*IslandNPCFeedbackState, error)
type IslandNodeState ¶
type IslandNodeState struct {
ID uint32 `json:"id"`
EventID uint32 `json:"event_id"`
IsNew uint32 `json:"is_new"`
}
func GetOrCreateIslandNodeState ¶
func GetOrCreateIslandNodeState(commanderID uint32, actID uint32) ([]IslandNodeState, error)
type IslandOrderState ¶
type IslandOrderState struct {
CommanderID uint32
Favor uint32
DailySelect uint32
DailySlotNum uint32
TimeSlotNum uint32
UrgencyFinishCount uint32
ShipRefresh uint32
}
func GetIslandOrderState ¶
func GetIslandOrderState(commanderID uint32) (*IslandOrderState, error)
type IslandOverflowInventory ¶
type IslandOverflowInventory struct {
CommanderID uint32 `gorm:"primaryKey;column:commander_id"`
ItemID uint32 `gorm:"primaryKey;column:item_id"`
Count uint32 `gorm:"column:count"`
}
func (IslandOverflowInventory) TableName ¶
func (IslandOverflowInventory) TableName() string
type IslandRoleDressState ¶
type IslandRoleDressState struct {
CommanderID uint32
DressID uint32
Num uint32
Read uint32
Time uint32
UpdatedAt time.Time
}
func GetIslandRoleDressState ¶
func GetIslandRoleDressState(commanderID uint32, dressID uint32) (*IslandRoleDressState, error)
func ListIslandRoleDressStates ¶
func ListIslandRoleDressStates(commanderID uint32) ([]IslandRoleDressState, error)
type IslandSeason ¶
type IslandSeason struct {
CommanderID uint32 `gorm:"primaryKey;column:commander_id"`
PT uint32 `gorm:"column:pt"`
}
func GetIslandSeason ¶
func GetIslandSeason(commanderID uint32) (*IslandSeason, error)
func (IslandSeason) TableName ¶
func (IslandSeason) TableName() string
type IslandShip ¶
type IslandShip struct {
CommanderID uint32 `gorm:"primaryKey;column:commander_id"`
ShipID uint32 `gorm:"primaryKey;column:ship_id"`
Level uint32 `gorm:"column:level"`
Exp uint32 `gorm:"column:exp"`
BreakLv uint32 `gorm:"column:break_lv"`
SkillLv uint32 `gorm:"column:skill_lv"`
Power uint32 `gorm:"column:power"`
RecoverTime uint32 `gorm:"column:recover_time"`
UpLimitState uint32 `gorm:"column:up_limit_state"`
CurSkinID uint32 `gorm:"column:cur_skin_id"`
ExtraAttrs []IslandShipAttr
Buffs []IslandShipBuff
CanFollow bool `gorm:"column:can_follow"`
}
func GetIslandShip ¶
func GetIslandShip(commanderID uint32, shipID uint32) (*IslandShip, error)
func ListIslandShips ¶
func ListIslandShips(commanderID uint32) ([]IslandShip, error)
func (IslandShip) TableName ¶
func (IslandShip) TableName() string
type IslandShipAttr ¶
type IslandShipBuff ¶
type IslandShipDressState ¶
func ListIslandShipDressStates ¶
func ListIslandShipDressStates(commanderID uint32) ([]IslandShipDressState, error)
type IslandShipOrderAppoint ¶
type IslandShipOrderCost ¶
type IslandShipOrderSlot ¶
type IslandShipOrderSlot struct {
CommanderID uint32
SlotID uint32
ShipSlotID uint32
State uint32
LoadTime uint32
GetTime uint32
EndTime uint32
FinishNum uint32
AutoTime uint32
CostList []IslandShipOrderCost
}
func (IslandShipOrderSlot) TableName ¶
func (IslandShipOrderSlot) TableName() string
type IslandShipOrderState ¶
type IslandShipOrderState struct {
CommanderID uint32
RefreshAt uint32
AppointList []IslandShipOrderAppoint
}
func (IslandShipOrderState) TableName ¶
func (IslandShipOrderState) TableName() string
type IslandShipSkinState ¶
type IslandShipSkinState struct {
CommanderID uint32
ShipID uint32
SkinID uint32
ColorID uint32
ColorList []uint32
}
func GetIslandShipSkinState ¶
func GetIslandShipSkinState(commanderID uint32, shipID uint32, skinID uint32) (*IslandShipSkinState, error)
func ListIslandShipSkinStates ¶
func ListIslandShipSkinStates(commanderID uint32) ([]IslandShipSkinState, error)
type IslandShopGoodsState ¶
type IslandShopState ¶
type IslandShopState struct {
CommanderID uint32
ShopID uint32
ExistTime uint32
RefreshTime uint32
RefreshCount uint32
Goods []IslandShopGoodsState
}
func GetIslandShopState ¶
func GetIslandShopState(commanderID uint32, shopID uint32) (*IslandShopState, error)
func ListIslandShopStates ¶
func ListIslandShopStates(commanderID uint32) ([]IslandShopState, error)
func (IslandShopState) TableName ¶
func (IslandShopState) TableName() string
type IslandSignInState ¶
type IslandSignInState struct {
CommanderID uint32
DayStartUnix uint32
SignedIn bool
ExternalClaimCount uint32
ClaimedSlots []string
}
func GetIslandSignInState ¶
func GetIslandSignInState(commanderID uint32) (*IslandSignInState, error)
func (IslandSignInState) TableName ¶
func (IslandSignInState) TableName() string
type IslandSlotCollectState ¶
type IslandSnapshot ¶
type IslandSnapshot struct {
CommanderID uint32
Name string
Level uint32
Exp uint32
StorageLevel uint32
Prosperity uint32
AgoraLevel uint32
MapID uint32
PositionX float32
PositionY float32
PositionZ float32
RotationX float32
RotationY float32
RotationZ float32
OpenFlag uint32
InviteCode string
DailyTimestamp uint32
FollowShips []uint32
}
func GetIslandSnapshot ¶
func GetIslandSnapshot(commanderID uint32) (*IslandSnapshot, error)
func (IslandSnapshot) TableName ¶
func (IslandSnapshot) TableName() string
type IslandSpeedupTarget ¶
type IslandSpeedupTarget struct {
CommanderID uint32 `gorm:"primaryKey;column:commander_id"`
TargetType uint32 `gorm:"primaryKey;column:target_type"`
TargetID uint32 `gorm:"primaryKey;column:target_id"`
EndTime uint32 `gorm:"column:end_time"`
}
func (IslandSpeedupTarget) TableName ¶
func (IslandSpeedupTarget) TableName() string
type IslandSpeedupTicket ¶
type IslandSpeedupTicket struct {
CommanderID uint32 `gorm:"primaryKey;column:commander_id"`
SpeedID uint32 `gorm:"primaryKey;column:speed_id"`
EndTime uint32 `gorm:"primaryKey;column:end_time"`
Count uint32 `gorm:"column:count"`
}
func ListIslandSpeedupTickets ¶
func ListIslandSpeedupTickets(commanderID uint32) ([]IslandSpeedupTicket, error)
func (IslandSpeedupTicket) TableName ¶
func (IslandSpeedupTicket) TableName() string
type IslandSpeedupTicketKey ¶
type IslandTaskEntry ¶
type IslandTaskEntry struct {
TaskID uint32 `json:"task_id"`
Timestamp uint32 `json:"timestamp"`
ProcessList []IslandTaskTargetProcess `json:"process_list,omitempty"`
}
type IslandTaskProgress ¶
type IslandTaskProgress struct {
CommanderID uint32
WeekStartUnix uint32
LastRefreshDayUnix uint32
WeekDailyTaskNum uint32
TraceTaskID uint32
TraceDailyTaskID uint32
ActiveTasks []IslandTaskEntry
FinishedTaskIDs []uint32
FutureTaskWindows []IslandTaskEntry
RandomTaskWindows []IslandTaskEntry
}
func LoadIslandTaskProgress ¶
func LoadIslandTaskProgress(commanderID uint32, now time.Time) (*IslandTaskProgress, error)
func (IslandTaskProgress) TableName ¶
func (IslandTaskProgress) TableName() string
type IslandTaskTargetProcess ¶
type IslandTechnologyState ¶
type IslandTechnologyState struct {
CommanderID uint32
UnlockedTechIDs []uint32
AbilityIDs []uint32
FinishCounts map[uint32]uint32
}
func GetIslandTechnologyState ¶
func GetIslandTechnologyState(commanderID uint32) (*IslandTechnologyState, error)
func NewIslandTechnologyState ¶
func NewIslandTechnologyState(commanderID uint32) *IslandTechnologyState
func (IslandTechnologyState) TableName ¶
func (IslandTechnologyState) TableName() string
type IslandTreasureSellState ¶
type IslandTreasureState ¶
type IslandTreasureState struct {
CommanderID uint32
WeekBuyNum uint32
SellList []IslandTreasureSellState
PriceList []IslandTreasurePriceState
}
func GetIslandTreasureState ¶
func GetIslandTreasureState(commanderID uint32) (*IslandTreasureState, error)
func NewIslandTreasureState ¶
func NewIslandTreasureState(commanderID uint32) *IslandTreasureState
func (*IslandTreasureState) AddSellCount ¶
func (s *IslandTreasureState) AddSellCount(islandID uint32, delta uint32)
func (*IslandTreasureState) SellCount ¶
func (s *IslandTreasureState) SellCount(islandID uint32) uint32
func (IslandTreasureState) TableName ¶
func (IslandTreasureState) TableName() string
func (*IslandTreasureState) UpsertPrice ¶
func (s *IslandTreasureState) UpsertPrice(timestamp uint32, price uint32)
type IslandWildGatherSignState ¶
type IslandWildGatherSignState struct {
IslandID uint32
GatherID uint32
SignerCommanderID uint32
Mark uint32
UpdatedAt time.Time
}
func ListIslandWildGatherSignStates ¶
func ListIslandWildGatherSignStates(islandID uint32, gatherID uint32) ([]IslandWildGatherSignState, error)
type Item ¶
type Item struct {
ID uint32 `gorm:"primary_key" json:"id"`
Name string `gorm:"size:256;not_null" json:"name"`
Rarity int `gorm:"not_null" json:"rarity"`
ShopID int `gorm:"not_null;default:-2" json:"shop_id,omitempty"`
Type int `gorm:"not_null" json:"type"`
VirtualType int `gorm:"not_null" json:"virtual_type"`
}
func GetItemByID ¶
func ListAllItems ¶
type ItemDataStatisticsConfig ¶
type ItemDataStatisticsConfig struct {
ID uint32 `json:"id"`
Type uint32 `json:"type"`
UsageArg json.RawMessage `json:"usage_arg"`
}
func GetItemDataStatisticsConfig ¶
func GetItemDataStatisticsConfig(itemID uint32) (*ItemDataStatisticsConfig, error)
type ItemListResult ¶
func ListItems ¶
func ListItems(_ any, params ItemQueryParams) (ItemListResult, error)
type ItemQueryParams ¶
type JuustagramChatGroup ¶
type JuustagramChatGroup struct {
ID uint32 `gorm:"primary_key"`
CommanderID uint32 `gorm:"not_null;index:idx_juus_chat_group_commander,unique"`
GroupRecordID uint32 `gorm:"not_null;index"`
ChatGroupID uint32 `gorm:"not_null;index:idx_juus_chat_group_commander,unique"`
OpTime uint32 `gorm:"not_null;default:0"`
ReadFlag uint32 `gorm:"not_null;default:0"`
ReplyList []JuustagramReply `gorm:"foreignKey:ChatGroupRecordID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
}
func AddJuustagramChatReply ¶
func GetJuustagramChatGroup ¶
func GetJuustagramChatGroup(commanderID uint32, chatGroupID uint32) (*JuustagramChatGroup, error)
type JuustagramGroup ¶
type JuustagramGroup struct {
ID uint32 `gorm:"primary_key"`
CommanderID uint32 `gorm:"not_null;index:idx_juus_group_commander,unique"`
GroupID uint32 `gorm:"not_null;index:idx_juus_group_commander,unique"`
SkinID uint32 `gorm:"not_null;default:0"`
Favorite uint32 `gorm:"not_null;default:0"`
CurChatGroup uint32 `gorm:"not_null;default:0"`
ChatGroups []JuustagramChatGroup `gorm:"foreignKey:GroupRecordID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
}
func CreateJuustagramGroup ¶
func CreateJuustagramGroup(commanderID uint32, groupID uint32, chatGroupID uint32) (*JuustagramGroup, error)
func EnsureJuustagramGroupExists ¶
func EnsureJuustagramGroupExists(commanderID uint32, groupID uint32, chatGroupID uint32) (*JuustagramGroup, error)
func GetJuustagramGroup ¶
func GetJuustagramGroup(commanderID uint32, groupID uint32) (*JuustagramGroup, error)
func GetJuustagramGroupByRecordID ¶
func GetJuustagramGroupByRecordID(commanderID uint32, groupRecordID uint32) (*JuustagramGroup, error)
func GetJuustagramGroups ¶
func GetJuustagramGroups(commanderID uint32) ([]JuustagramGroup, error)
func ListJuustagramGroups ¶
type JuustagramLanguage ¶
type JuustagramLanguage struct {
Key string `gorm:"primary_key" json:"key"`
Value string `gorm:"not_null" json:"value"`
}
func ListJuustagramLanguageByPrefix ¶
func ListJuustagramLanguageByPrefix(prefix string) ([]JuustagramLanguage, error)
type JuustagramMessageState ¶
type JuustagramMessageState struct {
ID uint32 `gorm:"primary_key" json:"id"`
CommanderID uint32 `gorm:"not_null;index:idx_juus_message_state,unique" json:"commander_id"`
MessageID uint32 `gorm:"not_null;index:idx_juus_message_state,unique" json:"message_id"`
IsRead uint32 `gorm:"not_null;default:0" json:"is_read"`
IsGood uint32 `gorm:"not_null;default:0" json:"is_good"`
GoodCount uint32 `gorm:"not_null;default:0" json:"good"`
UpdatedAt uint32 `gorm:"not_null;default:0" json:"updated_at"`
}
func GetJuustagramMessageState ¶
func GetJuustagramMessageState(commanderID uint32, messageID uint32) (*JuustagramMessageState, error)
func GetOrCreateJuustagramMessageState ¶
func GetOrCreateJuustagramMessageState(commanderID uint32, messageID uint32, now uint32) (*JuustagramMessageState, error)
func ListJuustagramMessageStatesByCommander ¶
func ListJuustagramMessageStatesByCommander(commanderID uint32) ([]JuustagramMessageState, error)
type JuustagramNpcTemplate ¶
type JuustagramNpcTemplate struct {
ID uint32 `gorm:"primary_key" json:"id"`
ShipGroup uint32 `gorm:"not_null;index" json:"ship_group"`
MessagePersist string `gorm:"not_null" json:"message_persist"`
NpcReplyPersist JuustagramReplyList `gorm:"type:text;not_null;default:'[]'" json:"npc_reply_persist"`
TimePersist JuustagramTimeConfig `gorm:"type:text;not_null;default:'[]'" json:"time_persist"`
}
func GetJuustagramNpcTemplate ¶
func GetJuustagramNpcTemplate(id uint32) (*JuustagramNpcTemplate, error)
func ListJuustagramNpcTemplates ¶
func ListJuustagramNpcTemplates(offset int, limit int) ([]JuustagramNpcTemplate, int64, error)
func ListJuustagramOpReplies ¶
func ListJuustagramOpReplies(messageID uint32) ([]JuustagramNpcTemplate, error)
type JuustagramPlayerDiscuss ¶
type JuustagramPlayerDiscuss struct {
ID uint32 `gorm:"primary_key" json:"id"`
CommanderID uint32 `gorm:"not_null;index:idx_juus_discuss_state,unique" json:"commander_id"`
MessageID uint32 `gorm:"not_null;index:idx_juus_discuss_state,unique" json:"message_id"`
DiscussID uint32 `gorm:"not_null;index:idx_juus_discuss_state,unique" json:"discuss_id"`
OptionIndex uint32 `gorm:"not_null" json:"option_index"`
NpcReplyID uint32 `gorm:"not_null;default:0" json:"npc_reply_id"`
CommentTime uint32 `gorm:"not_null;default:0" json:"comment_time"`
}
func GetJuustagramPlayerDiscuss ¶
func GetJuustagramPlayerDiscuss(commanderID uint32, messageID uint32, discussID uint32) (*JuustagramPlayerDiscuss, error)
func ListJuustagramPlayerDiscuss ¶
func ListJuustagramPlayerDiscuss(commanderID uint32, messageID uint32) ([]JuustagramPlayerDiscuss, error)
type JuustagramReply ¶
type JuustagramReplyList ¶
type JuustagramReplyList []uint32
func (*JuustagramReplyList) Scan ¶
func (list *JuustagramReplyList) Scan(value any) error
func (*JuustagramReplyList) UnmarshalJSON ¶
func (list *JuustagramReplyList) UnmarshalJSON(data []byte) error
type JuustagramShipGroupTemplate ¶
type JuustagramShipGroupTemplate struct {
ShipGroup uint32 `gorm:"primary_key" json:"ship_group"`
Name string `gorm:"not_null" json:"name"`
Background string `gorm:"not_null" json:"background"`
Sculpture string `gorm:"not_null" json:"sculpture"`
SculptureII string `gorm:"not_null" json:"sculpture_ii"`
Nationality uint32 `gorm:"not_null" json:"nationality"`
Type uint32 `gorm:"not_null" json:"type"`
}
func GetJuustagramShipGroupTemplate ¶
func GetJuustagramShipGroupTemplate(shipGroup uint32) (*JuustagramShipGroupTemplate, error)
func ListJuustagramShipGroupTemplates ¶
func ListJuustagramShipGroupTemplates(offset int, limit int) ([]JuustagramShipGroupTemplate, int64, error)
type JuustagramTemplate ¶
type JuustagramTemplate struct {
ID uint32 `gorm:"primary_key" json:"id"`
GroupID uint32 `gorm:"not_null;index" json:"group_id"`
ShipGroup uint32 `gorm:"not_null;index" json:"ship_group"`
Name string `gorm:"not_null" json:"name"`
Sculpture string `gorm:"not_null" json:"sculpture"`
PicturePersist string `gorm:"not_null" json:"picture_persist"`
MessagePersist string `gorm:"not_null" json:"message_persist"`
IsActive uint32 `gorm:"not_null;default:0" json:"is_active"`
NpcDiscussPersist JuustagramUint32List `gorm:"type:text;not_null;default:'[]'" json:"npc_discuss_persist"`
Time JuustagramTimeConfig `gorm:"type:text;not_null;default:'[]'" json:"time"`
TimePersist JuustagramTimeConfig `gorm:"type:text;not_null;default:'[]'" json:"time_persist"`
}
func GetJuustagramTemplate ¶
func GetJuustagramTemplate(id uint32) (*JuustagramTemplate, error)
func ListJuustagramTemplates ¶
func ListJuustagramTemplates(offset int, limit int) ([]JuustagramTemplate, int64, error)
type JuustagramTimeConfig ¶
type JuustagramTimeConfig [][]int
func (*JuustagramTimeConfig) Scan ¶
func (config *JuustagramTimeConfig) Scan(value any) error
type JuustagramUint32List ¶
type JuustagramUint32List []uint32
func (*JuustagramUint32List) Scan ¶
func (list *JuustagramUint32List) Scan(value any) error
type LegacyEducateState ¶
type LegacyEducateState struct {
CommanderID uint32 `json:"commander_id"`
CallName string `json:"call_name"`
TargetID uint32 `json:"target_id"`
FavorLv uint32 `json:"favor_lv"`
FavorExp uint32 `json:"favor_exp"`
HadAdjustment bool `json:"had_adjustment"`
Attrs map[uint32]uint32 `json:"attrs"`
TaskProgress map[uint32]uint32 `json:"task_progress"`
OptionRecords map[uint32]uint32 `json:"option_records"`
Resources map[uint32]int32 `json:"resources"`
Endings []uint32 `json:"endings"`
Qualifieds []uint32 `json:"qualifieds"`
}
func GetOrCreateLegacyEducateState ¶
func GetOrCreateLegacyEducateState(commanderID uint32) (*LegacyEducateState, error)
type Like ¶
type Like struct {
GroupID uint32 `gorm:"primary_key;index:idx_likes_group_id_liker_id"`
LikerID uint32 `gorm:"not_null;primary_key;index:idx_likes_group_id_liker_id"`
CreatedAt time.Time
Liker Commander `gorm:"foreignkey:LikerID;references:CommanderID"`
}
func ListLikesByCommander ¶
type LimitChallengeState ¶
type LimitChallengeState struct {
CommanderID uint32
MonthBucket uint32
BestTimes map[uint32]uint32
Awarded map[uint32]bool
PassIDs []uint32
}
func LoadLimitChallengeState ¶
func LoadLimitChallengeState(commanderID uint32, now time.Time) (*LimitChallengeState, error)
func (LimitChallengeState) TableName ¶
func (LimitChallengeState) TableName() string
type LocalAccount ¶
type LocalAccount struct {
Arg2 uint32 `gorm:"primary_key;not_null;uniqueIndex"`
Account string `gorm:"size:128;not_null;uniqueIndex"`
Password string `gorm:"size:256;not_null"`
MailBox string `gorm:"size:256;not_null"`
CreatedAt time.Time `gorm:"autoCreateTime"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`
}
func GetLocalAccountByAccount ¶
func GetLocalAccountByAccount(account string) (*LocalAccount, error)
type LoveLetterConvertedItem ¶
type LoveLetterLetterState ¶
type LoveLetterMedalState ¶
type Mail ¶
type Mail struct {
ID uint32 `gorm:"primary_key"`
ReceiverID uint32 `gorm:"not_null"`
Read bool `gorm:"not_null;default:false"`
Date time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
Title string `gorm:"type:varchar(40);not_null"`
Body string `gorm:"type:varchar(2000);not_null"`
AttachmentsCollected bool `gorm:"not_null;default:false"`
IsImportant bool `gorm:"not_null;default:false"`
CustomSender *string `gorm:"type:varchar(30)"`
IsArchived bool `gorm:"not_null;default:false"`
CreatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
Attachments []MailAttachment `gorm:"foreignkey:MailID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE"`
Commander Commander `gorm:"foreignkey:ReceiverID;references:CommanderID"`
}
func GetMailByReceiverAndID ¶
func (*Mail) CollectAttachments ¶
func (m *Mail) CollectAttachments(commander *Commander) ([]MailAttachment, error)
CollectAttachments returns the attachments and marks the mail as collected.
func (*Mail) SetArchived ¶
TODO: Check whether the Commander has enough space to archive the mail
func (*Mail) SetImportant ¶
type MailAttachment ¶
type MailAttachment struct {
ID uint32 `gorm:"primary_key"`
MailID uint32 `gorm:"not_null"`
Type uint32 `gorm:"not_null"`
ItemID uint32 `gorm:"not_null"`
Quantity uint32 `gorm:"not_null"`
}
TODO: Unused yet
type MedalShopGood ¶
type MedalShopGood struct {
CommanderID uint32 `gorm:"primary_key"`
Index uint32 `gorm:"primary_key"`
GoodsID uint32 `gorm:"not_null"`
Count uint32 `gorm:"not_null"`
}
func LoadMedalShopGoods ¶
func LoadMedalShopGoods(commanderID uint32) ([]MedalShopGood, error)
type MedalShopState ¶
type MedalShopState struct {
CommanderID uint32 `gorm:"primary_key"`
NextRefreshTime uint32 `gorm:"not_null"`
}
func GetMedalShopState ¶
func GetMedalShopState(commanderID uint32) (*MedalShopState, error)
type Message ¶
type Message struct {
ID uint32 `gorm:"primary_key"`
SenderID uint32 `gorm:"not_null"`
RoomID uint32 `gorm:"not_null"`
SentAt time.Time `gorm:"not_null;default:CURRENT_TIMESTAMP;index:idx_sent_at,sort:desc"`
Content string `gorm:"not_null;type:varchar(512)"`
Sender Commander `gorm:"foreignkey:SenderID;references:CommanderID"`
}
func GetRoomHistory ¶
Returns the last 50 messages from a room
func SendMessage ¶
Inserts a message in the database
type MetaTacticsSkillSlot ¶
func GetMetaTacticsSkillSlotsByShipTemplate ¶
func GetMetaTacticsSkillSlotsByShipTemplate(shipTemplateID uint32) ([]MetaTacticsSkillSlot, error)
type MiniGameConfig ¶
func GetMiniGameConfig ¶
func GetMiniGameConfig(gameID uint32) (*MiniGameConfig, error)
type MiniGameDataState ¶
type MiniGameDataState struct {
CommanderID uint32 `json:"commander_id"`
GameID uint32 `json:"game_id"`
Datas []uint32 `json:"datas"`
KVLists []MiniGameKVListState `json:"kv_lists"`
}
func GetOrCreateMiniGameDataState ¶
func GetOrCreateMiniGameDataState(commanderID uint32, gameID uint32) (*MiniGameDataState, error)
type MiniGameHubConfig ¶
type MiniGameHubConfig struct {
ID uint32 `json:"id"`
ActID uint32 `json:"act_id"`
RebornTimes uint32 `json:"reborn_times"`
RewardNeed uint32 `json:"reward_need"`
RewardTarget uint32 `json:"reward_target"`
RewardDisplay []uint32 `json:"reward_display"`
}
func GetMiniGameHubConfig ¶
func GetMiniGameHubConfig(hubID uint32) (*MiniGameHubConfig, error)
type MiniGameHubState ¶
type MiniGameHubState struct {
CommanderID uint32 `json:"commander_id"`
HubID uint32 `json:"hub_id"`
AvailableCnt uint32 `json:"available_cnt"`
UsedCnt uint32 `json:"used_cnt"`
Ultimate uint32 `json:"ultimate"`
MaxScores map[uint32]MiniGameScoreEntry `json:"max_scores"`
}
func GetOrCreateMiniGameHubState ¶
func GetOrCreateMiniGameHubState(commanderID uint32, config *MiniGameHubConfig) (*MiniGameHubState, error)
type MiniGameKVListState ¶
type MiniGameKVListState struct {
Key uint32 `json:"key"`
Values []MiniGameKVState `json:"values"`
}
type MiniGameKVState ¶
type MiniGameScoreEntry ¶
type MiniGameShopGood ¶
type MiniGameShopGood struct {
CommanderID uint32 `gorm:"primary_key"`
GoodsID uint32 `gorm:"primary_key"`
Count uint32 `gorm:"not_null"`
}
func LoadMiniGameShopGoods ¶
func LoadMiniGameShopGoods(commanderID uint32) ([]MiniGameShopGood, error)
type MiniGameShopState ¶
type MiniGameShopState struct {
CommanderID uint32 `gorm:"primary_key"`
NextRefreshTime uint32 `gorm:"not_null"`
}
func GetMiniGameShopState ¶
func GetMiniGameShopState(commanderID uint32) (*MiniGameShopState, error)
type MiniGameTelemetryState ¶
type MiniGameTelemetryState struct {
CommanderID uint32 `json:"commander_id"`
GameTimes map[uint32]uint32 `json:"game_times"`
}
func GetOrCreateMiniGameTelemetryState ¶
func GetOrCreateMiniGameTelemetryState(commanderID uint32) (*MiniGameTelemetryState, error)
type MonthShopPurchase ¶
type MonthShopPurchase struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false"`
GoodsID uint32 `gorm:"primaryKey;autoIncrement:false"`
Month uint32 `gorm:"primaryKey;autoIncrement:false"`
BuyCount uint32 `gorm:"not_null"`
UpdatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
}
type NavalAcademyRuntime ¶
type NavalAcademyRuntime struct {
}
func LoadNavalAcademyRuntime ¶
func LoadNavalAcademyRuntime(commanderID uint32) (*NavalAcademyRuntime, error)
func LoadOrCreateNavalAcademyRuntime ¶
func LoadOrCreateNavalAcademyRuntime(commanderID uint32) (*NavalAcademyRuntime, error)
type NewServerShopGoodsState ¶
type NewServerShopState ¶
type NewServerShopState struct {
CommanderID uint32
ActivityID uint32
Goods []NewServerShopGoodsState
}
func GetNewServerShopState ¶
func GetNewServerShopState(commanderID uint32, activityID uint32) (*NewServerShopState, error)
func GetNewServerShopStateTx ¶
func (NewServerShopState) TableName ¶
func (NewServerShopState) TableName() string
type Notice ¶
type Notice struct {
ID int `gorm:"primary_key"`
Version string `gorm:"default:'1';not_null"`
BtnTitle string `gorm:"type:varchar(48);not_null"`
Title string `gorm:"type:varchar(48);not_null"`
TitleImage string `gorm:"type:text;not_null"`
TimeDesc string `gorm:"type:varchar(10);not_null"`
Content string `gorm:"type:text;not_null"`
TagType int `gorm:"not_null;default:1"`
Icon int `gorm:"not_null;default:1"`
Track string `gorm:"type:varchar(10);not_null"`
}
func ListActiveNotices ¶
type NoticeListResult ¶
func ListNotices ¶
func ListNotices(params NoticeQueryParams) (NoticeListResult, error)
type NoticeQueryParams ¶
type OwnedEquipment ¶
type OwnedEquipment struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false" json:"commander_id"`
EquipmentID uint32 `gorm:"primaryKey;autoIncrement:false" json:"equipment_id"`
Count uint32 `gorm:"not_null" json:"count"`
Equipment Equipment `gorm:"foreignKey:EquipmentID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
}
type OwnedResource ¶
type OwnedResource struct {
CommanderID uint32 `gorm:"primaryKey"`
ResourceID uint32 `gorm:"primaryKey"`
Amount uint32 `gorm:"not_null;default:0"`
Commander Commander `gorm:"foreignKey:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
Resource Resource `gorm:"foreignKey:ResourceID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
}
type OwnedShip ¶
type OwnedShip struct {
OwnerID uint32 `gorm:"type:int;not_null"`
ShipID uint32 `gorm:"not_null"`
ID uint32 `gorm:"primary_key"`
Level uint32 `gorm:"default:1;not_null"`
Exp uint32 `gorm:"default:0;not_null"`
SurplusExp uint32 `gorm:"default:0;not_null"`
MaxLevel uint32 `gorm:"default:50;not_null"`
Intimacy uint32 `gorm:"default:5000;not_null"`
IsLocked bool `gorm:"default:false;not_null"`
Propose bool `gorm:"default:false;not_null"`
CommonFlag bool `gorm:"default:false;not_null"`
BlueprintFlag bool `gorm:"default:false;not_null"`
Proficiency bool `gorm:"default:false;not_null"`
ActivityNPC uint32 `gorm:"default:0;not_null"`
CustomName string `gorm:"size:30;default:'';not_null"`
ChangeNameTimestamp time.Time `gorm:"type:timestamp;default:'1970-01-01 01:00:00';not_null"`
CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
Energy uint32 `gorm:"default:150;not_null"`
// Ship state fields used for dorm/backyard and other contexts.
// Maps to protobuf.SHIPSTATE.
State uint32 `gorm:"default:0;not_null"`
StateInfo1 uint32 `gorm:"default:0;not_null"`
StateInfo2 uint32 `gorm:"default:0;not_null"`
StateInfo3 uint32 `gorm:"default:0;not_null"`
StateInfo4 uint32 `gorm:"default:0;not_null"`
SkinID uint32 `gorm:"default:0;not_null"`
IsSecretary bool `gorm:"default:false;not_null"`
SecretaryPosition *uint32 `gorm:"default:999;not_null"`
SecretaryPhantomID uint32 `gorm:"default:0;not_null"`
DeletedAt *time.Time `gorm:"index"`
Ship Ship `gorm:"foreignKey:ShipID;references:TemplateID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
Commander Commander `gorm:"foreignKey:OwnerID;references:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
Equipments []OwnedShipEquipment `gorm:"foreignKey:ShipID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
Transforms []OwnedShipTransform `gorm:"foreignKey:ShipID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
Strengths []OwnedShipStrength `gorm:"foreignKey:ShipID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"`
}
func (*OwnedShip) ProposeShip ¶
func (*OwnedShip) RenameShip ¶
func (*OwnedShip) SetFavorite ¶
type OwnedShipEquipment ¶
type OwnedShipEquipment struct {
OwnerID uint32 `gorm:"primaryKey;autoIncrement:false" json:"owner_id"`
ShipID uint32 `gorm:"primaryKey;autoIncrement:false" json:"ship_id"`
Pos uint32 `gorm:"primaryKey;autoIncrement:false" json:"pos"`
EquipID uint32 `gorm:"not_null" json:"equip_id"`
SkinID uint32 `gorm:"not_null" json:"skin_id"`
Equipment Equipment `gorm:"foreignKey:EquipID;references:ID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
}
func GetOwnedShipEquipment ¶
func GetOwnedShipEquipment(ownerID uint32, shipID uint32, pos uint32) (*OwnedShipEquipment, error)
func ListOwnedShipEquipment ¶
func ListOwnedShipEquipment(ownerID uint32, shipID uint32) ([]OwnedShipEquipment, error)
type OwnedShipShadowSkin ¶
type OwnedShipStrength ¶
type OwnedShipStrength struct {
OwnerID uint32 `gorm:"primaryKey;autoIncrement:false"`
ShipID uint32 `gorm:"primaryKey;autoIncrement:false"`
StrengthID uint32 `gorm:"primaryKey;autoIncrement:false"`
Exp uint32 `gorm:"not_null"`
}
func ListOwnedShipStrengths ¶
func ListOwnedShipStrengths(ownerID uint32, shipID uint32) ([]OwnedShipStrength, error)
type OwnedShipTransform ¶
type OwnedShipTransform struct {
OwnerID uint32 `gorm:"primaryKey;autoIncrement:false"`
ShipID uint32 `gorm:"primaryKey;autoIncrement:false"`
TransformID uint32 `gorm:"primaryKey;autoIncrement:false"`
Level uint32 `gorm:"not_null"`
}
func ListOwnedShipTransforms ¶
func ListOwnedShipTransforms(ownerID uint32, shipID uint32) ([]OwnedShipTransform, error)
type OwnedSpWeapon ¶
type OwnedSpWeapon struct {
OwnerID uint32 `gorm:"type:int;not_null;index"`
ID uint32 `gorm:"primary_key"`
TemplateID uint32 `gorm:"not_null"`
Attr1 uint32 `gorm:"column:attr_1;default:0;not_null"`
Attr2 uint32 `gorm:"column:attr_2;default:0;not_null"`
AttrTemp1 uint32 `gorm:"column:attr_temp_1;default:0;not_null"`
AttrTemp2 uint32 `gorm:"column:attr_temp_2;default:0;not_null"`
Effect uint32 `gorm:"default:0;not_null"`
Pt uint32 `gorm:"default:0;not_null"`
// EquippedShipID is the owned ship id this spweapon is equipped to, or 0.
EquippedShipID uint32 `gorm:"default:0;not_null"`
}
OwnedSpWeapon represents a special weapon (spweapon) owned by a commander.
The client refers to spweapons by a per-instance uid; we persist that uid as the primary key ID.
func CreateOwnedSpWeapon ¶
func CreateOwnedSpWeapon(ownerID uint32, templateID uint32) (*OwnedSpWeapon, error)
func GetOwnedSpWeapon ¶
func GetOwnedSpWeapon(ownerID uint32, spweaponID uint32) (*OwnedSpWeapon, error)
func ListOwnedSpWeapons ¶
func ListOwnedSpWeapons(ownerID uint32) ([]OwnedSpWeapon, error)
func (OwnedSpWeapon) TableName ¶
func (OwnedSpWeapon) TableName() string
type PendingFriendRequest ¶
type PendingFriendRequest struct {
Requester CommanderSocialProfile
Content string
CreatedAt time.Time
}
func ListIncomingFriendRequests ¶
func ListIncomingFriendRequests(targetID uint32) ([]PendingFriendRequest, error)
type Permission ¶
type Permission struct {
ID string `gorm:"primary_key;size:36"`
Key string `gorm:"size:128;not_null;uniqueIndex"`
Description string `gorm:"size:255;not_null"`
CreatedAt time.Time `gorm:"autoCreateTime"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`
}
func ListPermissions ¶
func ListPermissions() ([]Permission, error)
type PlayerBanStatus ¶
func GetBanStatus ¶
func GetBanStatus(commanderID uint32) (PlayerBanStatus, error)
type PlayerInform ¶
type PlayerInform struct {
ID uint64 `json:"id"`
ReporterID uint32 `json:"reporter_id"`
TargetID uint32 `json:"target_id"`
Info string `json:"info"`
Content string `json:"content"`
CreatedAt uint32 `json:"created_at"`
}
func CreatePlayerInform ¶
type PlayerListResult ¶
func ListCommanders ¶
func ListCommanders(params PlayerQueryParams) (PlayerListResult, error)
func SearchCommanders ¶
func SearchCommanders(params PlayerQueryParams) (PlayerListResult, error)
type PlayerQueryParams ¶
type PlayerSummaryStats ¶
type PlayerSummaryStats struct {
RegisterDate uint32
ChapterID uint32
MarryNumber uint32
MedalNumber uint32
FurnitureNumber uint32
FurnitureWorth uint32
CharacterID uint32
FirstLadyID uint32
FirstLadyName string
FirstLadyTime uint32
FirstOnline uint32
WorldMaxTask uint32
CollectNum uint32
Combat uint32
ShipNumTotal uint32
ShipNum120 uint32
ShipNum125 uint32
Love200Num uint32
SkinNum uint32
SkinShipNum uint32
}
func GetPlayerSummaryStats ¶
func GetPlayerSummaryStats(commanderID uint32) (*PlayerSummaryStats, error)
type Punishment ¶
type Punishment struct {
ID uint32 `gorm:"primary_key"`
PunishedID uint32 `gorm:"not_null"`
LiftTimestamp *time.Time `gorm:"type:timestamp"`
IsPermanent bool `gorm:"default:false;not_null"`
Punished Commander `gorm:"foreignKey:PunishedID;references:CommanderID;constraint:OnUpdate:CASCADE,OnDelete:SET NULL;"`
}
func ActivePunishment ¶
func ActivePunishment(commanderID uint32) (*Punishment, error)
func GetPunishmentByCommanderAndID ¶
func GetPunishmentByCommanderAndID(commanderID uint32, punishmentID uint32) (*Punishment, error)
func ListPermanentPunishmentsByCommanderIDs ¶
func ListPermanentPunishmentsByCommanderIDs(commanderIDs []uint32) ([]Punishment, error)
func ListPunishmentsByCommanderID ¶
func ListPunishmentsByCommanderID(commanderID uint32) ([]Punishment, error)
func (*Punishment) Create ¶
func (p *Punishment) Create() error
Inserts or updates a punishment in the database (based on the primary key)
func (*Punishment) Delete ¶
func (p *Punishment) Delete() error
Deletes a punishment from the database
func (*Punishment) Retrieve ¶
func (p *Punishment) Retrieve(greedy bool) error
Gets a punishment from the database by its primary key If greedy is true, it will also load the relations
func (*Punishment) Update ¶
func (p *Punishment) Update() error
Updates a punishment in the database
type RandomFlagShip ¶
type RandomFlagShip struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false"`
ShipID uint32 `gorm:"primaryKey;autoIncrement:false"`
PhantomID uint32 `gorm:"primaryKey;autoIncrement:false"`
Enabled bool `gorm:"default:true;not_null"`
}
func ListRandomFlagShips ¶
func ListRandomFlagShips(commanderID uint32, shipID *uint32) ([]RandomFlagShip, error)
type RandomFlagShipUpdate ¶
type Rarity ¶
func GetRarityByID ¶
type RefluxState ¶
type RefluxState struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false"`
Active uint32 `gorm:"not_null;default:0"`
ReturnLv uint32 `gorm:"not_null;default:0"`
ReturnTime uint32 `gorm:"not_null;default:0"`
ShipNumber uint32 `gorm:"not_null;default:0"`
LastOfflineTime uint32 `gorm:"not_null;default:0"`
Pt uint32 `gorm:"not_null;default:0"`
SignCnt uint32 `gorm:"not_null;default:0"`
SignLastTime uint32 `gorm:"not_null;default:0"`
PtStage uint32 `gorm:"not_null;default:0"`
CreatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
UpdatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
}
func GetOrCreateRefluxState ¶
func GetOrCreateRefluxState(commanderID uint32) (*RefluxState, error)
type RemasterProgress ¶
type RemasterProgress struct {
ID uint64 `gorm:"primaryKey"`
CommanderID uint32 `gorm:"not_null;index;uniqueIndex:idx_remaster_progress"`
ChapterID uint32 `gorm:"not_null;index;uniqueIndex:idx_remaster_progress"`
Pos uint32 `gorm:"not_null;uniqueIndex:idx_remaster_progress"`
Count uint32 `gorm:"not_null;default:0"`
Received bool `gorm:"not_null;default:false"`
CreatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
UpdatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
}
func GetRemasterProgress ¶
func GetRemasterProgress(commanderID uint32, chapterID uint32, pos uint32) (*RemasterProgress, error)
func ListRemasterProgress ¶
func ListRemasterProgress(commanderID uint32) ([]RemasterProgress, error)
type RemasterState ¶
type RemasterState struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false"`
TicketCount uint32 `gorm:"not_null;default:0"`
ActiveChapterID uint32 `gorm:"not_null;default:0"`
DailyCount uint32 `gorm:"not_null;default:0"`
LastDailyResetAt time.Time `gorm:"type:timestamp;default:'1970-01-01 00:00:00';not_null"`
CreatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
UpdatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
}
func GetOrCreateRemasterState ¶
func GetOrCreateRemasterState(commanderID uint32) (*RemasterState, error)
type RequisitionShip ¶
type RequisitionShip struct {
ShipID uint32 `gorm:"primary_key" json:"ship_id"`
}
type Resource ¶
type Resource struct {
ID uint32 `gorm:"primary_key" json:"id"`
ItemID uint32 `json:"itemid"`
Name string `gorm:"type:varchar(128);not_null" json:"name"`
// Resource.ItemID is not guaranteed to refer to a row in items.
// Keep the association for query convenience, but don't enforce it as a DB FK.
Item Item `gorm:"foreignKey:ItemID;references:ID;constraint:-"`
}
func GetResourceByID ¶
func ListAllResources ¶
type ResourceListResult ¶
func ListResources ¶
func ListResources(_ any, params ResourceQueryParams) (ResourceListResult, error)
type ResourceQueryParams ¶
type Role ¶
type Role struct {
ID string `gorm:"primary_key;size:36"`
Name string `gorm:"size:64;not_null;uniqueIndex"`
Description string `gorm:"size:255;not_null"`
CreatedAt time.Time `gorm:"autoCreateTime"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`
UpdatedBy *string `gorm:"size:36"`
}
func GetRoleByName ¶
type RolePermission ¶
type RolePermission struct {
RoleID string `gorm:"primaryKey;size:36"`
PermissionID string `gorm:"primaryKey;size:36"`
CanReadSelf bool `gorm:"default:false;not_null"`
CanReadAny bool `gorm:"default:false;not_null"`
CanWriteSelf bool `gorm:"default:false;not_null"`
CanWriteAny bool `gorm:"default:false;not_null"`
UpdatedAt time.Time `gorm:"autoUpdateTime"`
}
type RolePolicyEntry ¶
type RolePolicyEntry struct {
Key string
Capability authz.Capability
}
func LoadRolePolicyByName ¶
func LoadRolePolicyByName(roleName string) ([]RolePolicyEntry, error)
type SecondaryPasswordState ¶
type SecondaryPasswordState struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false"`
PasswordHash string `gorm:"type:text;not_null;default:''"`
Notice string `gorm:"type:text;not_null;default:''"`
SystemList Int64List `gorm:"type:text;not_null;default:'[]'"`
State uint32 `gorm:"not_null;default:0"`
FailCount uint32 `gorm:"not_null;default:0"`
FailCd uint32 `gorm:"not_null;default:0"`
}
func GetOrCreateSecondaryPasswordState ¶
func GetOrCreateSecondaryPasswordState(commanderID uint32) (*SecondaryPasswordState, error)
type SecretaryUpdate ¶
type Session ¶
type Session struct {
ID string `gorm:"primary_key;size:36"`
AccountID string `gorm:"size:36;not_null;index"`
CreatedAt time.Time `gorm:"autoCreateTime"`
LastSeenAt time.Time `gorm:"type:timestamp;not_null"`
ExpiresAt time.Time `gorm:"type:timestamp;not_null"`
IPAddress string `gorm:"size:64"`
UserAgent string `gorm:"size:255"`
RevokedAt *time.Time `gorm:"type:timestamp"`
CSRFToken string `gorm:"size:64;not_null"`
CSRFExpiresAt time.Time `gorm:"type:timestamp;not_null"`
}
type Ship ¶
type Ship struct {
TemplateID uint32 `gorm:"primary_key" json:"id"`
Name string `gorm:"size:32;not_null" json:"name"`
EnglishName string `gorm:"size:64;not_null" json:"english_name"`
RarityID uint32 `gorm:"not_null" json:"rarity"`
Star uint32 `gorm:"not_null" json:"star"`
Type uint32 `gorm:"not_null" json:"type"`
Nationality uint32 `gorm:"not_null" json:"nationality"`
BuildTime uint32 `gorm:"not_null" json:"-"`
PoolID *uint32
}
func GetRandomPoolShip ¶
Returns a random ship from a pool, based on Azur Lane's rates 7% Super Rare (gold color) 12% Elite (purple color) 51% Rare (blue color) 30% Common (gray color) Azur Lane has sometime some boosted rates for some ships, but we don't care about that for now
func ListShipsPage ¶
func ListShipsPage(params ShipQueryParams) ([]Ship, int64, error)
type ShipBreakoutConfig ¶
type ShipBreakoutConfig struct {
ID uint32 `json:"id"`
BreakoutID uint32 `json:"breakout_id"`
PreID uint32 `json:"pre_id"`
Level uint32 `json:"level"`
UseGold uint32 `json:"use_gold"`
UseItem [][]uint32 `json:"use_item"`
UseChar uint32 `json:"use_char"`
UseCharNum uint32 `json:"use_char_num"`
WeaponIDs []uint32 `json:"weapon_ids"`
BreakoutView string `json:"breakout_view"`
}
func GetShipBreakoutConfig ¶
func GetShipBreakoutConfig(templateID uint32) (*ShipBreakoutConfig, error)
func GetShipBreakoutConfigTx ¶
func GetShipBreakoutConfigTx(_ any, templateID uint32) (*ShipBreakoutConfig, error)
type ShipDataBlueprintConfig ¶
type ShipDataBlueprintConfig struct {
ID uint32 `json:"id"`
BlueprintVersion uint32 `json:"blueprint_version"`
UnlockTaskOpenCondition []uint32 `json:"unlock_task_open_condition"`
UnlockTask [][]uint32 `json:"unlock_task"`
StrengthenEffect []uint32 `json:"strengthen_effect"`
FateStrengthen []uint32 `json:"fate_strengthen"`
StrengthenItem uint32 `json:"strengthen_item"`
GainItemID []uint32 `json:"gain_item_id"`
IsPursuing uint32 `json:"is_pursuing"`
Price uint32 `json:"price"`
}
func GetShipDataBlueprintConfig ¶
func GetShipDataBlueprintConfig(id uint32) (*ShipDataBlueprintConfig, error)
func (*ShipDataBlueprintConfig) ShipTemplateID ¶
func (c *ShipDataBlueprintConfig) ShipTemplateID() uint32
type ShipDataStatisticsConfig ¶
func GetShipDataStatisticsConfig ¶
func GetShipDataStatisticsConfig(templateID uint32) (*ShipDataStatisticsConfig, error)
func GetShipDataStatisticsConfigTx ¶
func GetShipDataStatisticsConfigTx(_ any, templateID uint32) (*ShipDataStatisticsConfig, error)
type ShipDataTemplateMetaConfig ¶
type ShipDataTemplateMetaConfig struct {
ID uint32 `json:"id"`
BuffListDisplay []uint32 `json:"buff_list_display"`
}
func GetShipDataTemplateMetaConfig ¶
func GetShipDataTemplateMetaConfig(templateID uint32) (*ShipDataTemplateMetaConfig, error)
type ShipEquipConfig ¶
type ShipEquipConfig struct {
Equip1 []uint32 `json:"equip_1"`
Equip2 []uint32 `json:"equip_2"`
Equip3 []uint32 `json:"equip_3"`
Equip4 []uint32 `json:"equip_4"`
Equip5 []uint32 `json:"equip_5"`
EquipID1 uint32 `json:"equip_id_1"`
EquipID2 uint32 `json:"equip_id_2"`
EquipID3 uint32 `json:"equip_id_3"`
}
func GetShipEquipConfig ¶
func GetShipEquipConfig(templateID uint32) (*ShipEquipConfig, error)
func GetShipEquipConfigTx ¶
func GetShipEquipConfigTx(_ any, templateID uint32) (*ShipEquipConfig, error)
func (*ShipEquipConfig) DefaultEquipID ¶
func (c *ShipEquipConfig) DefaultEquipID(pos uint32) uint32
func (*ShipEquipConfig) SlotCount ¶
func (c *ShipEquipConfig) SlotCount() uint32
func (*ShipEquipConfig) SlotTypes ¶
func (c *ShipEquipConfig) SlotTypes(pos uint32) []uint32
type ShipListResult ¶
func ListShips ¶
func ListShips(_ any, params ShipQueryParams) (ShipListResult, error)
type ShipMetaBreakoutConfig ¶
type ShipMetaBreakoutConfig struct {
ID uint32 `json:"id"`
BreakoutID uint32 `json:"breakout_id"`
Gold uint32 `json:"gold"`
Item1 uint32 `json:"item1"`
Item1Num uint32 `json:"item1_num"`
Item2 uint32 `json:"item2"`
Item2Num uint32 `json:"item2_num"`
Level uint32 `json:"level"`
Repair uint32 `json:"repair"`
}
func GetShipMetaBreakoutConfig ¶
func GetShipMetaBreakoutConfig(templateID uint32) (*ShipMetaBreakoutConfig, error)
type ShipMetaRepairConfig ¶
type ShipMetaRepairConfig struct {
ID uint32 `json:"id"`
ItemID uint32 `json:"item_id"`
ItemNum uint32 `json:"item_num"`
RepairExp uint32 `json:"repair_exp"`
}
func GetShipMetaRepairConfig ¶
func GetShipMetaRepairConfig(repairID uint32) (*ShipMetaRepairConfig, error)
type ShipMetaSkillTaskConfig ¶
type ShipMetaSkillTaskConfig struct {
ID uint32 `json:"id"`
Level uint32 `json:"level"`
NeedExp uint32 `json:"need_exp"`
SkillID uint32 `json:"skill_ID"`
SkillLevelupTask [][]uint32 `json:"skill_levelup_task"`
SkillUnlock [][]uint32 `json:"skill_unlock"`
}
func GetShipMetaSkillTaskConfig ¶
func GetShipMetaSkillTaskConfig(skillID uint32, level uint32) (*ShipMetaSkillTaskConfig, error)
func GetShipMetaSkillTaskConfigByID ¶
func GetShipMetaSkillTaskConfigByID(id uint32) (*ShipMetaSkillTaskConfig, error)
func ListShipMetaSkillTaskConfigsBySkill ¶
func ListShipMetaSkillTaskConfigsBySkill(skillID uint32) ([]ShipMetaSkillTaskConfig, error)
type ShipQueryParams ¶
type ShipStrengthenBlueprintConfig ¶
type ShipStrengthenBlueprintConfig struct {
ID uint32 `json:"id"`
LV uint32 `json:"lv"`
NeedExp uint32 `json:"need_exp"`
NeedLV uint32 `json:"need_lv"`
}
func GetShipStrengthenBlueprintConfig ¶
func GetShipStrengthenBlueprintConfig(id uint32) (*ShipStrengthenBlueprintConfig, error)
type ShipStrengthenConfig ¶
type ShipStrengthenConfig struct {
ID uint32 `json:"id"`
AttrExp []uint32 `json:"attr_exp"`
Durability []uint32 `json:"durability"`
LevelExp []uint32 `json:"level_exp"`
}
func GetShipStrengthenConfig ¶
func GetShipStrengthenConfig(templateID uint32) (*ShipStrengthenConfig, error)
func GetShipStrengthenConfigTx ¶
func GetShipStrengthenConfigTx(_ any, templateID uint32) (*ShipStrengthenConfig, error)
type ShipStrengthenMetaConfig ¶
type ShipStrengthenMetaConfig struct {
ID uint32 `json:"id"`
ShipID uint32 `json:"ship_id"`
Type uint32 `json:"type"`
RepairCannon []uint32 `json:"repair_cannon"`
RepairTorpedo []uint32 `json:"repair_torpedo"`
RepairAir []uint32 `json:"repair_air"`
RepairReload []uint32 `json:"repair_reload"`
RepairTotalExp uint32 `json:"repair_total_exp"`
}
func GetShipStrengthenMetaConfig ¶
func GetShipStrengthenMetaConfig(metaID uint32) (*ShipStrengthenMetaConfig, error)
type ShipTemplateConfig ¶
type ShipTemplateConfig struct {
ID uint32 `json:"id"`
StrengthenID uint32 `json:"strengthen_id"`
GroupType uint32 `json:"group_type"`
MaxLevel uint32 `json:"max_level"`
}
func GetShipTemplateConfig ¶
func GetShipTemplateConfig(templateID uint32) (*ShipTemplateConfig, error)
func GetShipTemplateConfigTx ¶
func GetShipTemplateConfigTx(_ any, templateID uint32) (*ShipTemplateConfig, error)
type ShipType ¶
func GetShipTypeByID ¶
type ShipyardTaskTemplateConfig ¶
type ShipyardTaskTemplateConfig struct {
ID uint32 `json:"id"`
TargetNum uint32 `json:"target_num"`
}
func GetShipyardTaskTemplateConfig ¶
func GetShipyardTaskTemplateConfig(taskID uint32) (*ShipyardTaskTemplateConfig, error)
type ShopOffer ¶
type ShopOffer struct {
ID uint32 `gorm:"primary_key" json:"id"`
Effects Int64List `gorm:"type:json;not_null" json:"-"`
EffectArgs json.RawMessage `gorm:"type:json" json:"effect_args"`
Number int `gorm:"not_null" json:"num"`
ResourceNumber int `gorm:"not_null" json:"resource_num"`
ResourceID uint32 `gorm:"not_null" json:"resource_type"`
Type uint32 `gorm:"not_null" json:"type"`
Genre string `gorm:"not_null" json:"genre"`
Discount int `gorm:"not_null" json:"discount"`
Resource Resource `gorm:"foreignkey:ResourceID;references:ID"`
}
func GetShopOffer ¶
func ListShopOffersByGenre ¶
func ListShopOffersByIDs ¶
type ShopOfferListResult ¶
func ListShopOffers ¶
func ListShopOffers(params ShopOfferQueryParams) (ShopOfferListResult, error)
type ShopOfferQueryParams ¶
type ShoppingStreetGood ¶
type ShoppingStreetGood struct {
CommanderID uint32 `gorm:"primary_key"`
GoodsID uint32 `gorm:"primary_key"`
Discount uint32 `gorm:"not_null"`
BuyCount uint32 `gorm:"not_null"`
}
func GetShoppingStreetGood ¶
func GetShoppingStreetGood(commanderID uint32, goodsID uint32) (*ShoppingStreetGood, error)
func LoadShoppingStreetGoods ¶
func LoadShoppingStreetGoods(commanderID uint32) ([]ShoppingStreetGood, error)
type ShoppingStreetState ¶
type ShoppingStreetState struct {
CommanderID uint32 `gorm:"primary_key"`
Level uint32 `gorm:"not_null"`
NextFlashTime uint32 `gorm:"not_null"`
LevelUpTime uint32 `gorm:"not_null"`
FlashCount uint32 `gorm:"not_null"`
}
func GetShoppingStreetState ¶
func GetShoppingStreetState(commanderID uint32) (*ShoppingStreetState, error)
type Skill ¶
type Skill struct {
ID uint32 `gorm:"primary_key" json:"id"`
Name string `gorm:"size:128;not_null" json:"name"`
Desc string `gorm:"type:text" json:"desc"`
CD uint32 `gorm:"not_null" json:"cd"`
Painting json.RawMessage `gorm:"type:json" json:"painting"`
Picture string `gorm:"size:64" json:"picture"`
AniEffect json.RawMessage `gorm:"type:json" json:"aniEffect"`
UIEffect string `gorm:"type:text" json:"uiEffect"`
EffectList json.RawMessage `gorm:"type:json" json:"effect_list"`
}
func GetSkillByID ¶
type SkillDataTemplateConfig ¶
func GetSkillDataTemplateConfig ¶
func GetSkillDataTemplateConfig(skillID uint32) (*SkillDataTemplateConfig, error)
type Skin ¶
type Skin struct {
ID uint32 `gorm:"primary_key" json:"id"`
Name string `gorm:"size:128;not_null" json:"name"`
ShipGroup int `gorm:"not_null" json:"ship_group"`
Desc string `gorm:"type:text" json:"desc"`
BG string `gorm:"size:128" json:"bg"`
BGSp string `gorm:"size:128" json:"bg_sp"`
BGM string `gorm:"size:128" json:"bgm"`
Painting string `gorm:"size:64" json:"painting"`
Prefab string `gorm:"size:64" json:"prefab"`
ChangeSkin json.RawMessage `gorm:"type:json" json:"change_skin"`
ShowSkin string `gorm:"size:64" json:"show_skin"`
SkeletonSkin string `gorm:"size:64" json:"skeleton_default_skin"`
ShipL2DID json.RawMessage `gorm:"type:json" json:"ship_l2d_id"`
L2DAnimations json.RawMessage `gorm:"type:json" json:"l2d_animations"`
L2DDragRate json.RawMessage `gorm:"type:json" json:"l2d_drag_rate"`
L2DParaRange json.RawMessage `gorm:"type:json" json:"l2d_para_range"`
L2DSE json.RawMessage `gorm:"type:json" json:"l2d_se"`
L2DVoiceCalib json.RawMessage `gorm:"type:json" json:"l2d_voice_calibrate"`
PartScale string `gorm:"size:64" json:"part_scale"`
MainUIFX string `gorm:"size:128" json:"main_UI_FX"`
SpineOffset json.RawMessage `gorm:"type:json" json:"spine_offset"`
SpineProfile json.RawMessage `gorm:"type:json" json:"spine_offset_profile"`
Tag json.RawMessage `gorm:"type:json" json:"tag"`
Time json.RawMessage `gorm:"type:json" json:"time"`
GetShowing json.RawMessage `gorm:"type:json" json:"get_showing"`
PurchaseOffset json.RawMessage `gorm:"type:json" json:"purchase_offset"`
ShopOffset json.RawMessage `gorm:"type:json" json:"shop_offset"`
RarityBG string `gorm:"size:128" json:"rarity_bg"`
SpecialEffects json.RawMessage `gorm:"type:json" json:"special_effects"`
GroupIndex *int `gorm:"type:int" json:"group_index"`
Gyro *int `gorm:"type:int" json:"gyro"`
HandID *int `gorm:"type:int" json:"hand_id"`
Illustrator *int `gorm:"type:int" json:"illustrator"`
Illustrator2 *int `gorm:"type:int" json:"illustrator2"`
VoiceActor *int `gorm:"type:int" json:"voice_actor"`
VoiceActor2 *int `gorm:"type:int" json:"voice_actor_2"`
DoubleChar *int `gorm:"type:int" json:"double_char"`
LipSmoothing *int `gorm:"type:int" json:"lip_smoothing"`
LipSyncGain *int `gorm:"type:int" json:"lip_sync_gain"`
L2DIgnoreDrag *int `gorm:"type:int" json:"l2d_ignore_drag"`
SkinType *int `gorm:"type:int" json:"skin_type"`
ShopID *int `gorm:"type:int" json:"shop_id"`
ShopTypeID *int `gorm:"type:int" json:"shop_type_id"`
ShopDynamicHX *int `gorm:"type:int" json:"shop_dynamic_hx"`
SpineAction json.RawMessage `gorm:"type:json" json:"spine_action_offset"`
SpineUseLive2D *int `gorm:"type:int" json:"spine_use_live2d"`
Live2DOffset json.RawMessage `gorm:"type:json" json:"live2d_offset"`
Live2DProfile json.RawMessage `gorm:"type:json" json:"live2d_offset_profile"`
FXContainer json.RawMessage `gorm:"type:json" json:"fx_container"`
BoundBone json.RawMessage `gorm:"type:json" json:"bound_bone"`
Smoke json.RawMessage `gorm:"type:json" json:"smoke"`
}
func GetSkinByID ¶
type SkinListResult ¶
func ListSkins ¶
func ListSkins(_ any, params SkinQueryParams) (SkinListResult, error)
func ListSkinsByShipGroup ¶
func ListSkinsByShipGroup(_ any, shipGroup uint32, params SkinQueryParams) (SkinListResult, error)
type SkinQueryParams ¶
type SpWeaponDataStatisticsConfig ¶
type SpWeaponDataStatisticsConfig struct {
ID uint32 `json:"id"`
UpgradeID uint32 `json:"upgrade_id"`
Value1Random uint32 `json:"value_1_random"`
Value2Random uint32 `json:"value_2_random"`
}
func GetSpWeaponDataStatisticsConfigTx ¶
func GetSpWeaponDataStatisticsConfigTx(templateID uint32) (*SpWeaponDataStatisticsConfig, error)
type SpWeaponResetMaterial ¶
type SpWeaponUpgradeConfig ¶
type SpWeaponUpgradeConfig struct {
ID uint32
ResetUseItem []SpWeaponResetMaterial
}
func GetSpWeaponUpgradeConfigTx ¶
func GetSpWeaponUpgradeConfigTx(upgradeID uint32) (*SpWeaponUpgradeConfig, error)
type StringList ¶
type StringList []string
func (*StringList) Scan ¶
func (list *StringList) Scan(value any) error
type SubmarineExpeditionState ¶
type SubmarineExpeditionState struct {
CommanderID uint32 `gorm:"primary_key"`
LastRefreshTime uint32 `gorm:"not_null"`
WeeklyRefreshCount uint32 `gorm:"not_null"`
ActiveChapterID uint32 `gorm:"not_null"`
OverallProgress uint32 `gorm:"not_null"`
}
func GetSubmarineState ¶
func GetSubmarineState(commanderID uint32) (*SubmarineExpeditionState, error)
type SupportRarityWeight ¶
type SupportRequisitionConfig ¶
type SupportRequisitionConfig struct {
Cost uint32
RarityWeights []SupportRarityWeight
MonthlyCap uint32
}
func LoadSupportRequisitionConfig ¶
func LoadSupportRequisitionConfig() (SupportRequisitionConfig, error)
type SurveyState ¶
type SurveyState struct {
CommanderID uint32 `gorm:"primaryKey;autoIncrement:false"`
SurveyID uint32 `gorm:"not_null;default:0"`
CompletedAt time.Time `gorm:"type:timestamp;default:'1970-01-01 00:00:00';not_null"`
CreatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
UpdatedAt time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP;not_null"`
}
func GetSurveyState ¶
func GetSurveyState(commanderID uint32) (*SurveyState, error)
type TechnologyDataTemplate ¶
type TechnologyDataTemplate struct {
ID uint32 `json:"id"`
Type uint32 `json:"type"`
Time uint32 `json:"time"`
Condition uint32 `json:"condition"`
BlueprintVersion uint32 `json:"blueprint_version"`
Consume [][]uint32 `json:"consume"`
DropClient [][]uint32 `json:"drop_client"`
}
func GetTechnologyTemplate ¶
func GetTechnologyTemplate(techID uint32) (*TechnologyDataTemplate, error)
type TechnologyProjectState ¶
type TechnologyQueueState ¶
type TechnologyRefreshPoolState ¶
type TechnologyRefreshPoolState struct {
ID uint32 `json:"id"`
Target uint32 `json:"target"`
Technologies []TechnologyProjectState `json:"technologies"`
}
func BuildTechnologyRefreshPools ¶
func BuildTechnologyRefreshPools(seed uint32) ([]TechnologyRefreshPoolState, error)
type TechnologyResearchState ¶
type TechnologyResearchState struct {
CommanderID uint32
RefreshFlag uint32
RefreshDay uint32
CatchupVersion uint32
CatchupTarget uint32
RefreshPools []TechnologyRefreshPoolState
Queue []TechnologyQueueState
CreatedAt time.Time
UpdatedAt time.Time
}
func GetOrCreateTechnologyResearchState ¶
func GetOrCreateTechnologyResearchState(commanderID uint32) (*TechnologyResearchState, error)
func GetTechnologyResearchState ¶
func GetTechnologyResearchState(commanderID uint32) (*TechnologyResearchState, error)
func (TechnologyResearchState) TableName ¶
func (TechnologyResearchState) TableName() string
type TechnologyShadowUnlockConfig ¶
type TechnologyShadowUnlockConfig struct {
ID uint32 `json:"id"`
Type uint32 `json:"type"`
TargetNum uint32 `json:"target_num"`
}
func GetTechnologyShadowUnlockConfig ¶
func GetTechnologyShadowUnlockConfig(id uint32) (*TechnologyShadowUnlockConfig, error)
func GetTechnologyShadowUnlockConfigTx ¶
func GetTechnologyShadowUnlockConfigTx(_ any, id uint32) (*TechnologyShadowUnlockConfig, error)
type TransformDataTemplate ¶
type TransformDataTemplate struct {
ID uint32 `json:"id"`
LevelLimit uint32 `json:"level_limit"`
StarLimit uint32 `json:"star_limit"`
MaxLevel uint32 `json:"max_level"`
UseGold uint32 `json:"use_gold"`
UseShip uint32 `json:"use_ship"`
UseItem [][][]uint32 `json:"use_item"`
ShipID [][]uint32 `json:"ship_id"`
EditTrans []uint32 `json:"edit_trans"`
SkinID uint32 `json:"skin_id"`
SkillID uint32 `json:"skill_id"`
ConditionID []uint32 `json:"condition_id"`
}
func GetTransformDataTemplate ¶
func GetTransformDataTemplate(id uint32) (*TransformDataTemplate, error)
func (*TransformDataTemplate) UseItemsForLevel ¶
func (t *TransformDataTemplate) UseItemsForLevel(level uint32) [][]uint32
type UserRegistrationChallenge ¶
type UserRegistrationChallenge struct {
ID string `gorm:"primary_key;size:36"`
CommanderID uint32 `gorm:"not_null;index"`
Pin string `gorm:"size:6;not_null;index"`
PasswordHash string `gorm:"not_null"`
PasswordAlgo string `gorm:"size:32;not_null"`
Status string `gorm:"size:16;not_null;index"`
ExpiresAt time.Time `gorm:"type:timestamp;not_null"`
ConsumedAt *time.Time `gorm:"type:timestamp"`
CreatedAt time.Time `gorm:"autoCreateTime"`
}
func GetUserRegistrationChallenge ¶
func GetUserRegistrationChallenge(id string) (*UserRegistrationChallenge, error)
type Weapon ¶
type Weapon struct {
ID uint32 `gorm:"primary_key" json:"id"`
ActionIndex string `gorm:"size:32;not_null" json:"action_index"`
AimType int `gorm:"not_null" json:"aim_type"`
Angle int `gorm:"not_null" json:"angle"`
AttackAttribute int `gorm:"not_null" json:"attack_attribute"`
AttackAttributeRatio int `gorm:"not_null" json:"attack_attribute_ratio"`
AutoAftercast json.RawMessage `gorm:"type:json" json:"auto_aftercast"`
AxisAngle int `gorm:"not_null" json:"axis_angle"`
BarrageID json.RawMessage `gorm:"type:json" json:"barrage_ID"`
BulletID json.RawMessage `gorm:"type:json" json:"bullet_ID"`
ChargeParam json.RawMessage `gorm:"type:json" json:"charge_param"`
Corrected int `gorm:"not_null" json:"corrected"`
Damage int `gorm:"not_null" json:"damage"`
EffectMove int `gorm:"not_null" json:"effect_move"`
Expose int `gorm:"not_null" json:"expose"`
FireFX string `gorm:"size:64" json:"fire_fx"`
FireFXLoopType int `gorm:"not_null" json:"fire_fx_loop_type"`
FireSFX string `gorm:"size:64" json:"fire_sfx"`
InitialOverHeat int `gorm:"not_null" json:"initial_over_heat"`
MinRange int `gorm:"not_null" json:"min_range"`
OxyType json.RawMessage `gorm:"type:json" json:"oxy_type"`
PrecastParam json.RawMessage `gorm:"type:json" json:"precast_param"`
Queue int `gorm:"not_null" json:"queue"`
Range int `gorm:"not_null" json:"range"`
RecoverTime json.RawMessage `gorm:"type:json" json:"recover_time"`
ReloadMax int `gorm:"not_null" json:"reload_max"`
SearchCondition json.RawMessage `gorm:"type:json" json:"search_condition"`
SearchType int `gorm:"not_null" json:"search_type"`
ShakeScreen int `gorm:"not_null" json:"shakescreen"`
SpawnBound json.RawMessage `gorm:"type:json" json:"spawn_bound"`
Suppress int `gorm:"not_null" json:"suppress"`
TorpedoAmmo int `gorm:"not_null" json:"torpedo_ammo"`
Type int `gorm:"not_null" json:"type"`
}
func GetWeaponByID ¶
type WebAuthnCredential ¶
type WebAuthnCredential struct {
ID string `gorm:"primary_key;size:36"`
UserID string `gorm:"size:36;not_null;index"`
CredentialID string `gorm:"not_null;uniqueIndex"`
PublicKey []byte `gorm:"not_null"`
SignCount uint32 `gorm:"not_null"`
Transports StringList `gorm:"type:json"`
AAGUID string `gorm:"size:64"`
AttestationFmt string `gorm:"size:64"`
ResidentKey bool `gorm:"default:false;not_null"`
BackupEligible *bool `gorm:""`
BackupState *bool `gorm:""`
CreatedAt time.Time `gorm:"autoCreateTime"`
LastUsedAt *time.Time `gorm:"type:timestamp"`
Label *string `gorm:"size:128"`
RPID string `gorm:"size:255;not_null"`
}
func ListWebAuthnCredentialsByUserID ¶
func ListWebAuthnCredentialsByUserID(userID string) ([]WebAuthnCredential, error)
type WeeklyTaskEntry ¶
type WeeklyTaskProgress ¶
type WeeklyTaskProgress struct {
CommanderID uint32
WeekStartUnix uint32
Pt uint32
RewardLv uint32
Tasks []WeeklyTaskEntry
}
func LoadWeeklyTaskProgress ¶
func LoadWeeklyTaskProgress(commanderID uint32, now time.Time) (*WeeklyTaskProgress, error)
func (WeeklyTaskProgress) TableName ¶
func (WeeklyTaskProgress) TableName() string
type WorldBossBossState ¶
type WorldBossBossState struct {
ID uint32 `json:"id"`
TemplateID uint32 `json:"template_id"`
Lv uint32 `json:"lv"`
Hp uint32 `json:"hp"`
Owner uint32 `json:"owner"`
LastTime uint32 `json:"last_time"`
KillTime uint32 `json:"kill_time"`
FightCount uint32 `json:"fight_count"`
RankCount uint32 `json:"rank_count"`
}
type WorldBossRankEntry ¶
type WorldBossState ¶
type WorldBossState struct {
CommanderID uint32 `json:"commander_id"`
FightCount uint32 `json:"fight_count"`
FightCountUpdateTime uint32 `json:"fight_count_update_time"`
SelfBoss *WorldBossBossState `json:"self_boss,omitempty"`
SummonPt uint32 `json:"summon_pt"`
SummonPtOld uint32 `json:"summon_pt_old"`
SummonPtDailyAcc uint32 `json:"summon_pt_daily_acc"`
SummonPtOldDailyAcc uint32 `json:"summon_pt_old_daily_acc"`
SummonFree uint32 `json:"summon_free"`
AutoFightFinishTime uint32 `json:"auto_fight_finish_time"`
DefaultBossID uint32 `json:"default_boss_id"`
AutoFightMaxDamage uint32 `json:"auto_fight_max_damage"`
GuildSupport uint32 `json:"guild_support"`
FriendSupport uint32 `json:"friend_support"`
WorldSupport uint32 `json:"world_support"`
SelfBossLv uint32 `json:"self_boss_lv"`
NextBossID uint32 `json:"next_boss_id"`
Rankings map[string][]WorldBossRankEntry `json:"rankings"`
RewardClaimed map[string]bool `json:"reward_claimed"`
AutoBattleStartTime uint32 `json:"auto_battle_start_time"`
AutoBattleBossID uint32 `json:"auto_battle_boss_id"`
}
func GetCommanderWorldBossState ¶
func GetCommanderWorldBossState(commanderID uint32) (*WorldBossState, error)
func GetOrCreateCommanderWorldBossState ¶
func GetOrCreateCommanderWorldBossState(commanderID uint32) (*WorldBossState, error)
func ListWorldBossStates ¶
func ListWorldBossStates() ([]*WorldBossState, error)
func (*WorldBossState) GetRankings ¶
func (state *WorldBossState) GetRankings(bossID uint32) []WorldBossRankEntry
func (*WorldBossState) IsRewardClaimed ¶
func (state *WorldBossState) IsRewardClaimed(bossID uint32) bool
func (*WorldBossState) SetRankings ¶
func (state *WorldBossState) SetRankings(bossID uint32, values []WorldBossRankEntry)
func (*WorldBossState) SetRewardClaimed ¶
func (state *WorldBossState) SetRewardClaimed(bossID uint32, claimed bool)
type WorldRuntime ¶
type WorldRuntime struct {
CommanderID uint32 `json:"commander_id"`
Camp uint32 `json:"camp"`
MapID uint32 `json:"map_id"`
EnterMapID uint32 `json:"enter_map_id"`
ActionPower uint32 `json:"action_power"`
ActionPowerExtra uint32 `json:"action_power_extra"`
ActionPowerFetchCount uint32 `json:"action_power_fetch_count"`
LastRecoverTimestamp uint32 `json:"last_recover_timestamp"`
LastChangeGroupTimestamp uint32 `json:"last_change_group_timestamp"`
Progress uint32 `json:"progress"`
TaskFinishCount uint32 `json:"task_finish_count"`
StaminaExchangeTimes uint32 `json:"stamina_exchange_times"`
Round uint32 `json:"round"`
WeekStartUnix uint32 `json:"week_start_unix,omitempty"`
MonthKey uint32 `json:"month_key,omitempty"`
SairenChapter []uint32 `json:"sairen_chapter,omitempty"`
MapTemplateByRandomID map[string]uint32 `json:"map_template_by_random_id,omitempty"`
FleetShipIDs []uint32 `json:"fleet_ship_ids,omitempty"`
CommanderIDs []uint32 `json:"commander_ids,omitempty"`
ResetAvailableAtTimestamp uint32 `json:"reset_available_at_timestamp"`
}
func LoadOrCreateWorldRuntime ¶
func LoadOrCreateWorldRuntime(commanderID uint32) (*WorldRuntime, error)
func LoadWorldRuntime ¶
func LoadWorldRuntime(commanderID uint32) (*WorldRuntime, error)
func (*WorldRuntime) MapTemplate ¶
func (runtime *WorldRuntime) MapTemplate(randomID uint32) uint32
func (*WorldRuntime) SetMapTemplate ¶
func (runtime *WorldRuntime) SetMapTemplate(randomID uint32, templateID uint32)
type YostarusMap ¶
type YostarusMap struct {
Arg2 uint32 `gorm:"primary_key"`
AccountID uint32 `gorm:"not_null;uniqueIndex;auto_increment"`
}
Implementation of dumb auth When logging-in, the client sends a packet with the field arg2, which seems to be unique and tied to an account id.
func GetYostarusMapByArg2 ¶
func GetYostarusMapByArg2(arg2 uint32) (*YostarusMap, error)
Source Files
¶
- account.go
- account_auth_queries.go
- account_queries.go
- activity_fleet.go
- activity_permanent_state.go
- activity_store_state.go
- adapters.go
- arena_shop.go
- atelier_state.go
- audit_log.go
- audit_log_sqlc.go
- auth_challenge.go
- auth_identity_maps_sqlc.go
- authz_models.go
- authz_store.go
- authz_store_sqlc.go
- backyard_theme_templates.go
- battle_session.go
- buff.go
- build.go
- build_queue.go
- challenge_state.go
- chapter_drop.go
- chapter_progress.go
- chapter_state.go
- chat.go
- city_rebuild_state.go
- coloring_state.go
- commander.go
- commander_activity_task.go
- commander_appreciation.go
- commander_attire.go
- commander_buff.go
- commander_charge_success_event.go
- commander_child_display.go
- commander_common_flag.go
- commander_dorm_floor_layout.go
- commander_dorm_state.go
- commander_dorm_theme.go
- commander_exists.go
- commander_friend_relation.go
- commander_furniture.go
- commander_home.go
- commander_livingarea_cover.go
- commander_medal_display.go
- commander_meow.go
- commander_meta_pt_progress.go
- commander_meta_tactics_state.go
- commander_packet_state.go
- commander_random_flag_ship.go
- commander_random_ship_mode.go
- commander_soundstory.go
- commander_storeup_award_progress.go
- commander_story.go
- commander_survey.go
- commander_tasks.go
- commander_tb.go
- commander_trophy_progress.go
- compensation.go
- compose_data_template.go
- config_entry.go
- debug.go
- device_auth_map.go
- dorm3d.go
- educate_shop_state.go
- equip_code_like.go
- equip_code_report.go
- equip_code_share.go
- equip_upgrade_data.go
- equipment.go
- escort_state.go
- event_collection.go
- exchange_code.go
- exchange_code_queries.go
- exercise_fleet.go
- feast_state.go
- fleet.go
- fleet_tech_state.go
- friend_blacklist.go
- friend_profiles.go
- friend_social.go
- game_data.go
- game_data_basic_queries.go
- game_data_extended_queries.go
- game_room_state.go
- guild_assault_fleet.go
- guild_chat.go
- guild_core.go
- guild_event_operation.go
- guild_office.go
- guild_operation_boss_state.go
- guild_request.go
- guild_shop.go
- init.go
- int64_list.go
- inventory_sqlc.go
- island_achievement_state.go
- island_agora_placement.go
- island_agora_theme.go
- island_book_state.go
- island_card_state.go
- island_collect_state.go
- island_commander_dress_profile.go
- island_commander_dress_state.go
- island_delegation.go
- island_fishing_state.go
- island_follower.go
- island_hand_plant.go
- island_inventory.go
- island_manage_trade.go
- island_npc_feedback_state.go
- island_order_reward_state.go
- island_overflow_inventory.go
- island_role_dress_state.go
- island_season.go
- island_ship.go
- island_ship_dress_state.go
- island_ship_invite.go
- island_ship_order.go
- island_ship_skin_state.go
- island_shop_state.go
- island_signin_state.go
- island_snapshot.go
- island_social_state.go
- island_speedup_target.go
- island_speedup_ticket.go
- island_task_progress.go
- island_technology_state.go
- island_trade_invite_state.go
- island_treasure_state.go
- island_wild_gather_sign_state.go
- item.go
- item_queries.go
- juustagram.go
- juustagram_activity.go
- juustagram_chat.go
- legacy_educate_state.go
- likes.go
- likes_queries.go
- limit_challenge_state.go
- local_account.go
- local_account_sql.go
- love_letter_state.go
- mail.go
- mail_counts.go
- medal_shop.go
- meta_character_config.go
- meta_character_tactics_config.go
- minigame_runtime.go
- minigame_shop.go
- month_shop_purchase.go
- morale.go
- naval_academy_runtime.go
- new_server_shop_state.go
- notice.go
- owned_equipment.go
- owned_items.go
- owned_items_queries.go
- owned_ship.go
- owned_ship_equipment.go
- owned_ship_island.go
- owned_ship_meta_repair.go
- owned_ship_shadow_skin.go
- owned_ship_strength.go
- owned_ship_transform.go
- owned_skin_queries.go
- owned_spweapon.go
- pagination.go
- player_summary.go
- players.go
- players_sqlc.go
- punishment.go
- random_flag_ship.go
- rarity.go
- reflux_state.go
- remaster_progress.go
- remaster_service.go
- remaster_state.go
- requisition_ship.go
- resource.go
- resource_queries.go
- secondary_password.go
- secretary.go
- session.go
- ship.go
- ship_breakout_config.go
- ship_data_statistics_config.go
- ship_equipment_config.go
- ship_strengthen_config.go
- ship_template_config.go
- shipyard_blueprint_config.go
- shipyard_blueprint_state.go
- shop.go
- shop_notice.go
- shop_notice_queries.go
- shop_state_sqlc.go
- shopping_street.go
- skill.go
- skin.go
- skin_restriction.go
- social_misc.go
- spweapon_data_statistics_config.go
- spweapon_upgrade_config.go
- sqlc_helpers.go
- string_list.go
- submarine_expedition.go
- support_requisition.go
- survey_state.go
- table_name.go
- tactical_class.go
- technology_research_state.go
- technology_shadow_unlock_config.go
- transform_data_template.go
- tx.go
- user_registration.go
- user_registration_challenge.go
- weapon.go
- webauthn_credential.go
- weekly_task_progress.go
- world_boss_state.go
- world_runtime.go
- yostarus.go