Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
Types ¶
type AccessesRepository ¶
type AccessesRepository interface { SaveAllianceAndCorpRole(allianceId, corporationId int64, role *model.Role) error SaveAllianceRole(allianceId int64, role *model.Role) error SaveCorporationRole(corporationId int64, role *model.Role) error SaveCharacterRole(characterId int64, role *model.Role) error SaveAllianceCharacterLeadershipRole(allianceId, characterId int64, role *model.Role) error SaveCorporationCharacterLeadershipRole(corporationId, characterId int64, role *model.Role) error DeleteAllianceAndCorpRole(allianceId, corporationId int64, role *model.Role) (int64, error) DeleteAllianceRole(allianceId int64, role *model.Role) (int64, error) DeleteCorporationRole(corporationId int64, role *model.Role) (int64, error) DeleteCharacterRole(characterId int64, role *model.Role) (int64, error) DeleteAllianceCharacterLeadershipRole(allianceId, characterId int64, role *model.Role) (int64, error) DeleteCorporationCharacterLeadershipRole(corporationId, characterId int64, role *model.Role) (int64, error) FindByChatId(chatId string) ([]string, error) }
var AccessRepo AccessesRepository
type AllianceRepository ¶
type AllianceRepository interface { Save(alliance *model.Alliance) error FindByAllianceId(allianceId int64) *model.Alliance FindAll() []*model.Alliance Delete(allianceId int64) error }
var AllianceRepo AllianceRepository
type AuthenticationCodeRepository ¶
type AuthenticationCodeRepository interface {
Save(character *model.Character, authCode string) error
}
var AuthenticationCodeRepo AuthenticationCodeRepository
type CharacterRepository ¶
type CharacterRepository interface { Save(character *model.Character) error FindByCharacterId(characterId int64) *model.Character FindByAutenticationCode(authCode string) *model.Character FindAll() []*model.Character Delete(characterId int64) error }
var CharacterRepo CharacterRepository
type CorporationRepository ¶
type CorporationRepository interface { Save(corporation *model.Corporation) error FindByCorporationId(corporationId int64) *model.Corporation FindAll() []*model.Corporation Delete(corporationId int64) error }
var CorporationRepo CorporationRepository
Click to show internal directories.
Click to hide internal directories.