Documentation
¶
Index ¶
- type CharacterRepository
- func (db *CharacterRepository) AddCharacterToList(userId, targetId, listId int) error
- func (db *CharacterRepository) Adomonish(targetId int, data *model.AdomonishData) error
- func (db *CharacterRepository) Ban(targetId int, data *model.BanData) error
- func (db *CharacterRepository) Block(userId, targetId int) error
- func (db *CharacterRepository) CheckUsernameExists(username string) (exists bool, err error)
- func (db *CharacterRepository) CreateAdministrator(id int, hashedPassword, name, nickname, username, notificationToken string) error
- func (db *CharacterRepository) CreateCharacter(name, nickname, username, password, notificationToken string) (id int, err error)
- func (db *CharacterRepository) CreateDummyCharacters(number int, name, nickname, summary, profile, password string, ...) error
- func (db *CharacterRepository) CreateLayerGroup(characterId, groupId int, name string) (id int, err error)
- func (db *CharacterRepository) CreateLayeringGroup(characterId int, name string) (id int, err error)
- func (db *CharacterRepository) CreateList(characterId int, name string) (listId int, err error)
- func (db *CharacterRepository) CreateProcessSchema(characterId, groupId int, process *model.CharacterIconProcessSchema) (id int, err error)
- func (db *CharacterRepository) DeleteCharacter(characterId int) error
- func (db *CharacterRepository) DeleteLayerGroup(characterId, groupId int) error
- func (db *CharacterRepository) DeleteLayerItems(characterId int, itemIds *[]int) error
- func (db *CharacterRepository) DeleteLayeringGroup(characterId int, groupId int) error
- func (db *CharacterRepository) DeleteList(userId, listId int) error
- func (db *CharacterRepository) DeleteProcessSchema(characterId, processId int) error
- func (db *CharacterRepository) DeleteUploadedImages(characterId int, imageIds *[]int, uploadDir string) error
- func (db *CharacterRepository) ExchangeEmailToId(email string) (id int, err error)
- func (db *CharacterRepository) ExchangeNotificationTokenToId(token string) (id int, err error)
- func (db *CharacterRepository) ExchangeUsernameToId(username string) (id int, err error)
- func (db *CharacterRepository) ExecTx(f func(tx *sqlx.Tx) error) error
- func (db *CharacterRepository) Follow(userId, targetId int) (userName string, webhook string, err error)
- func (db *CharacterRepository) Mute(userId, targetId int) error
- func (db *CharacterRepository) RegisterGoogleData(characterId int, googleId string) error
- func (db *CharacterRepository) RegisterTwitterData(characterId int, twitterId string) error
- func (db *CharacterRepository) RemoveCharacterFromList(userId, targetId, listId int) error
- func (db *CharacterRepository) RenameList(listId int, newName string) error
- func (db *CharacterRepository) RetrieveBlockList(id int) (list *[]model.GeneralCharacterListItem, err error)
- func (db *CharacterRepository) RetrieveCharacterIcons(id int) (icons *[]model.Icon, err error)
- func (db *CharacterRepository) RetrieveCharacterList(id *int, start, end int) (list *[]model.AllCharacterListItem, maxId int, err error)
- func (db *CharacterRepository) RetrieveCharacterNickname(characterId int) (nickname string, err error)
- func (db *CharacterRepository) RetrieveCharacterProfileImages(id int) (images *[]model.ProfileImage, err error)
- func (db *CharacterRepository) RetrieveCharacterSuggestions(id int, searchText string, excludeOwn bool) (suggestions *model.CharacterSuggestionsData, err error)
- func (db *CharacterRepository) RetrieveConfirmCode(id int) (code, email string, err error)
- func (db *CharacterRepository) RetrieveCredentials(id int) (password, notificationToken string, isAdministrator bool, err error)
- func (db *CharacterRepository) RetrieveCredentialsByGoogle(googleId string) (characterId int, notificationToken string, err error)
- func (db *CharacterRepository) RetrieveCredentialsByTwitter(twitterId string) (characterId int, notificationToken string, err error)
- func (db *CharacterRepository) RetrieveEmailRegistratedCharacters(targetCharacters *[]int) (characters *[]model.CharacterEmailRegistratedData, err error)
- func (db *CharacterRepository) RetrieveFollowList(userId, targetId int) (list *[]model.GeneralCharacterListItem, err error)
- func (db *CharacterRepository) RetrieveFollowerList(userId, targetId int) (list *[]model.GeneralCharacterListItem, err error)
- func (db *CharacterRepository) RetrieveHomeData(userId int) (home *model.HomeData, err error)
- func (db *CharacterRepository) RetrieveInitialData(id int) (existsUnreadNotification, existsUnreadMail bool, err error)
- func (db *CharacterRepository) RetrieveLayeringGroup(characterId, groupId int) (layeringGroup *model.CharacterIconLayeringGroup, err error)
- func (db *CharacterRepository) RetrieveLayeringGroupOverviews(characterId int) (overviews *[]model.CharacterIconLayeringGroupOverview, err error)
- func (db *CharacterRepository) RetrieveList(listId int) (listName string, characters []model.CharacterOverview, err error)
- func (db *CharacterRepository) RetrieveListOwner(listId int) (characterId int, err error)
- func (db *CharacterRepository) RetrieveListSuggestions(characterId int, searchText string, listId int) (suggestions *model.CharacterSuggestionsData, err error)
- func (db *CharacterRepository) RetrieveLists(id int) (lists *[]model.ListOverview, err error)
- func (db *CharacterRepository) RetrieveMuteList(id int) (list *[]model.GeneralCharacterListItem, err error)
- func (db *CharacterRepository) RetrieveNotifications(id, start, number int) (notifications []model.Notification, isContinue bool, err error)
- func (db *CharacterRepository) RetrieveOtherSettings(characterId int) (settings *model.CharacterOtherSettingsState, err error)
- func (db *CharacterRepository) RetrievePassword(id int) (password string, err error)
- func (db *CharacterRepository) RetrieveProfile(userId *int, targetId int) (*model.Profile, error)
- func (db *CharacterRepository) RetrieveProfileEditData(id int) (data *model.ProfileEditData, err error)
- func (db *CharacterRepository) RetrieveProhibitionRelatedData(targetId int) (data *[]model.ProhibitionRelatedData, err error)
- func (db *CharacterRepository) RetrieveRelatedFollowerList(userId, targetId int) (list *[]model.GeneralCharacterListItem, err error)
- func (db *CharacterRepository) RetrieveUploadedImages(id int) (images *[]model.UploadedImage, err error)
- func (db *CharacterRepository) SaveUploadImageData(id int, images []*bytes.Buffer, imageType service.ImageTypeId, ...) (*[]string, error)
- func (db *CharacterRepository) SetConfirmCode(id int, email, code string, expireMinutes int) error
- func (db *CharacterRepository) SetPasswordResetCode(id int, email, code string, expireMinutes int) error
- func (db *CharacterRepository) Unban(targetId int, data *model.UnbanData) error
- func (db *CharacterRepository) Unblock(userId, targetId int) error
- func (db *CharacterRepository) UndeleteCharacter(id int) error
- func (db *CharacterRepository) Unfollow(userId, targetId int) error
- func (db *CharacterRepository) UnlinkGoogle(characterId int) error
- func (db *CharacterRepository) UnlinkTwitter(characterId int) error
- func (db *CharacterRepository) Unmute(userId, targetId int) error
- func (db *CharacterRepository) UnregisterEmail(characterId int) error
- func (db *CharacterRepository) UpdateEmail(id int, email string) error
- func (db *CharacterRepository) UpdateIcons(id int, icons *[]model.Icon, insertOnly bool) error
- func (db *CharacterRepository) UpdateLayerGroupName(characterId, groupId int, name string) error
- func (db *CharacterRepository) UpdateLayerGroupOrders(characterId, groupId int, orders *[]model.CharacterIconLayerGroupOrder) error
- func (db *CharacterRepository) UpdateLayerItems(characterId, groupId int, items *[]model.CharacterIconLayerItemEditData) (result *[]model.CharacterIconLayerItem, err error)
- func (db *CharacterRepository) UpdateLayeringGroupName(characterId, groupId int, name string) error
- func (db *CharacterRepository) UpdateNotificationChecked(characterId int) error
- func (db *CharacterRepository) UpdateOtherSettings(characterId int, settings *model.CharacterOtherSettings) error
- func (db *CharacterRepository) UpdatePassword(id int, password string) error
- func (db *CharacterRepository) UpdatePasswordByResetCode(id int, code, password string) error
- func (db *CharacterRepository) UpdateProfile(id int, profile *model.ProfileEditData) error
- func (db *CharacterRepository) UpdateProfileImages(id int, images *[]model.ProfileImage) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CharacterRepository ¶
func NewCharacterRepository ¶
func NewCharacterRepository(db *sqlx.DB) *CharacterRepository
func (*CharacterRepository) AddCharacterToList ¶
func (db *CharacterRepository) AddCharacterToList(userId, targetId, listId int) error
func (*CharacterRepository) Adomonish ¶
func (db *CharacterRepository) Adomonish(targetId int, data *model.AdomonishData) error
func (*CharacterRepository) Ban ¶
func (db *CharacterRepository) Ban(targetId int, data *model.BanData) error
func (*CharacterRepository) Block ¶
func (db *CharacterRepository) Block(userId, targetId int) error
func (*CharacterRepository) CheckUsernameExists ¶
func (db *CharacterRepository) CheckUsernameExists(username string) (exists bool, err error)
func (*CharacterRepository) CreateAdministrator ¶
func (db *CharacterRepository) CreateAdministrator(id int, hashedPassword, name, nickname, username, notificationToken string) error
func (*CharacterRepository) CreateCharacter ¶
func (db *CharacterRepository) CreateCharacter(name, nickname, username, password, notificationToken string) (id int, err error)
func (*CharacterRepository) CreateDummyCharacters ¶
func (db *CharacterRepository) CreateDummyCharacters(number int, name, nickname, summary, profile, password string, notificationTokenGenerator func() string) error
func (*CharacterRepository) CreateLayerGroup ¶
func (db *CharacterRepository) CreateLayerGroup(characterId, groupId int, name string) (id int, err error)
func (*CharacterRepository) CreateLayeringGroup ¶
func (db *CharacterRepository) CreateLayeringGroup(characterId int, name string) (id int, err error)
func (*CharacterRepository) CreateList ¶
func (db *CharacterRepository) CreateList(characterId int, name string) (listId int, err error)
func (*CharacterRepository) CreateProcessSchema ¶
func (db *CharacterRepository) CreateProcessSchema(characterId, groupId int, process *model.CharacterIconProcessSchema) (id int, err error)
func (*CharacterRepository) DeleteCharacter ¶
func (db *CharacterRepository) DeleteCharacter(characterId int) error
func (*CharacterRepository) DeleteLayerGroup ¶
func (db *CharacterRepository) DeleteLayerGroup(characterId, groupId int) error
func (*CharacterRepository) DeleteLayerItems ¶
func (db *CharacterRepository) DeleteLayerItems(characterId int, itemIds *[]int) error
func (*CharacterRepository) DeleteLayeringGroup ¶
func (db *CharacterRepository) DeleteLayeringGroup(characterId int, groupId int) error
func (*CharacterRepository) DeleteList ¶
func (db *CharacterRepository) DeleteList(userId, listId int) error
func (*CharacterRepository) DeleteProcessSchema ¶
func (db *CharacterRepository) DeleteProcessSchema(characterId, processId int) error
func (*CharacterRepository) DeleteUploadedImages ¶
func (db *CharacterRepository) DeleteUploadedImages(characterId int, imageIds *[]int, uploadDir string) error
TODO: 明らかに肥大化しすぎなのでdomainとinterface/storageに適切に分割する
func (*CharacterRepository) ExchangeEmailToId ¶
func (db *CharacterRepository) ExchangeEmailToId(email string) (id int, err error)
func (*CharacterRepository) ExchangeNotificationTokenToId ¶
func (db *CharacterRepository) ExchangeNotificationTokenToId(token string) (id int, err error)
func (*CharacterRepository) ExchangeUsernameToId ¶
func (db *CharacterRepository) ExchangeUsernameToId(username string) (id int, err error)
func (*CharacterRepository) ExecTx ¶
func (db *CharacterRepository) ExecTx(f func(tx *sqlx.Tx) error) error
func (*CharacterRepository) Follow ¶
func (db *CharacterRepository) Follow(userId, targetId int) (userName string, webhook string, err error)
func (*CharacterRepository) Mute ¶
func (db *CharacterRepository) Mute(userId, targetId int) error
func (*CharacterRepository) RegisterGoogleData ¶
func (db *CharacterRepository) RegisterGoogleData(characterId int, googleId string) error
func (*CharacterRepository) RegisterTwitterData ¶
func (db *CharacterRepository) RegisterTwitterData(characterId int, twitterId string) error
func (*CharacterRepository) RemoveCharacterFromList ¶
func (db *CharacterRepository) RemoveCharacterFromList(userId, targetId, listId int) error
func (*CharacterRepository) RenameList ¶
func (db *CharacterRepository) RenameList(listId int, newName string) error
func (*CharacterRepository) RetrieveBlockList ¶
func (db *CharacterRepository) RetrieveBlockList(id int) (list *[]model.GeneralCharacterListItem, err error)
func (*CharacterRepository) RetrieveCharacterIcons ¶
func (db *CharacterRepository) RetrieveCharacterIcons(id int) (icons *[]model.Icon, err error)
func (*CharacterRepository) RetrieveCharacterList ¶
func (db *CharacterRepository) RetrieveCharacterList(id *int, start, end int) (list *[]model.AllCharacterListItem, maxId int, err error)
func (*CharacterRepository) RetrieveCharacterNickname ¶
func (db *CharacterRepository) RetrieveCharacterNickname(characterId int) (nickname string, err error)
func (*CharacterRepository) RetrieveCharacterProfileImages ¶
func (db *CharacterRepository) RetrieveCharacterProfileImages(id int) (images *[]model.ProfileImage, err error)
func (*CharacterRepository) RetrieveCharacterSuggestions ¶
func (db *CharacterRepository) RetrieveCharacterSuggestions(id int, searchText string, excludeOwn bool) (suggestions *model.CharacterSuggestionsData, err error)
func (*CharacterRepository) RetrieveConfirmCode ¶
func (db *CharacterRepository) RetrieveConfirmCode(id int) (code, email string, err error)
func (*CharacterRepository) RetrieveCredentials ¶
func (db *CharacterRepository) RetrieveCredentials(id int) (password, notificationToken string, isAdministrator bool, err error)
func (*CharacterRepository) RetrieveCredentialsByGoogle ¶
func (db *CharacterRepository) RetrieveCredentialsByGoogle(googleId string) (characterId int, notificationToken string, err error)
func (*CharacterRepository) RetrieveCredentialsByTwitter ¶
func (db *CharacterRepository) RetrieveCredentialsByTwitter(twitterId string) (characterId int, notificationToken string, err error)
func (*CharacterRepository) RetrieveEmailRegistratedCharacters ¶
func (db *CharacterRepository) RetrieveEmailRegistratedCharacters(targetCharacters *[]int) (characters *[]model.CharacterEmailRegistratedData, err error)
func (*CharacterRepository) RetrieveFollowList ¶
func (db *CharacterRepository) RetrieveFollowList(userId, targetId int) (list *[]model.GeneralCharacterListItem, err error)
func (*CharacterRepository) RetrieveFollowerList ¶
func (db *CharacterRepository) RetrieveFollowerList(userId, targetId int) (list *[]model.GeneralCharacterListItem, err error)
func (*CharacterRepository) RetrieveHomeData ¶
func (db *CharacterRepository) RetrieveHomeData(userId int) (home *model.HomeData, err error)
func (*CharacterRepository) RetrieveInitialData ¶
func (db *CharacterRepository) RetrieveInitialData(id int) (existsUnreadNotification, existsUnreadMail bool, err error)
func (*CharacterRepository) RetrieveLayeringGroup ¶
func (db *CharacterRepository) RetrieveLayeringGroup(characterId, groupId int) (layeringGroup *model.CharacterIconLayeringGroup, err error)
func (*CharacterRepository) RetrieveLayeringGroupOverviews ¶
func (db *CharacterRepository) RetrieveLayeringGroupOverviews(characterId int) (overviews *[]model.CharacterIconLayeringGroupOverview, err error)
func (*CharacterRepository) RetrieveList ¶
func (db *CharacterRepository) RetrieveList(listId int) (listName string, characters []model.CharacterOverview, err error)
func (*CharacterRepository) RetrieveListOwner ¶
func (db *CharacterRepository) RetrieveListOwner(listId int) (characterId int, err error)
func (*CharacterRepository) RetrieveListSuggestions ¶
func (db *CharacterRepository) RetrieveListSuggestions(characterId int, searchText string, listId int) (suggestions *model.CharacterSuggestionsData, err error)
func (*CharacterRepository) RetrieveLists ¶
func (db *CharacterRepository) RetrieveLists(id int) (lists *[]model.ListOverview, err error)
func (*CharacterRepository) RetrieveMuteList ¶
func (db *CharacterRepository) RetrieveMuteList(id int) (list *[]model.GeneralCharacterListItem, err error)
func (*CharacterRepository) RetrieveNotifications ¶
func (db *CharacterRepository) RetrieveNotifications(id, start, number int) (notifications []model.Notification, isContinue bool, err error)
func (*CharacterRepository) RetrieveOtherSettings ¶
func (db *CharacterRepository) RetrieveOtherSettings(characterId int) (settings *model.CharacterOtherSettingsState, err error)
func (*CharacterRepository) RetrievePassword ¶
func (db *CharacterRepository) RetrievePassword(id int) (password string, err error)
func (*CharacterRepository) RetrieveProfile ¶
func (*CharacterRepository) RetrieveProfileEditData ¶
func (db *CharacterRepository) RetrieveProfileEditData(id int) (data *model.ProfileEditData, err error)
func (*CharacterRepository) RetrieveProhibitionRelatedData ¶
func (db *CharacterRepository) RetrieveProhibitionRelatedData(targetId int) (data *[]model.ProhibitionRelatedData, err error)
func (*CharacterRepository) RetrieveRelatedFollowerList ¶
func (db *CharacterRepository) RetrieveRelatedFollowerList(userId, targetId int) (list *[]model.GeneralCharacterListItem, err error)
func (*CharacterRepository) RetrieveUploadedImages ¶
func (db *CharacterRepository) RetrieveUploadedImages(id int) (images *[]model.UploadedImage, err error)
func (*CharacterRepository) SaveUploadImageData ¶
func (db *CharacterRepository) SaveUploadImageData(id int, images []*bytes.Buffer, imageType service.ImageTypeId, uploadDir string) (*[]string, error)
TODO: 明らかに責任範囲外を担当しているのでdomainとinterface/storageに適切に分割する
func (*CharacterRepository) SetConfirmCode ¶
func (db *CharacterRepository) SetConfirmCode(id int, email, code string, expireMinutes int) error
func (*CharacterRepository) SetPasswordResetCode ¶
func (db *CharacterRepository) SetPasswordResetCode(id int, email, code string, expireMinutes int) error
func (*CharacterRepository) Unban ¶
func (db *CharacterRepository) Unban(targetId int, data *model.UnbanData) error
func (*CharacterRepository) Unblock ¶
func (db *CharacterRepository) Unblock(userId, targetId int) error
func (*CharacterRepository) UndeleteCharacter ¶
func (db *CharacterRepository) UndeleteCharacter(id int) error
func (*CharacterRepository) Unfollow ¶
func (db *CharacterRepository) Unfollow(userId, targetId int) error
func (*CharacterRepository) UnlinkGoogle ¶
func (db *CharacterRepository) UnlinkGoogle(characterId int) error
func (*CharacterRepository) UnlinkTwitter ¶
func (db *CharacterRepository) UnlinkTwitter(characterId int) error
func (*CharacterRepository) Unmute ¶
func (db *CharacterRepository) Unmute(userId, targetId int) error
func (*CharacterRepository) UnregisterEmail ¶
func (db *CharacterRepository) UnregisterEmail(characterId int) error
func (*CharacterRepository) UpdateEmail ¶
func (db *CharacterRepository) UpdateEmail(id int, email string) error
func (*CharacterRepository) UpdateIcons ¶
func (*CharacterRepository) UpdateLayerGroupName ¶
func (db *CharacterRepository) UpdateLayerGroupName(characterId, groupId int, name string) error
func (*CharacterRepository) UpdateLayerGroupOrders ¶
func (db *CharacterRepository) UpdateLayerGroupOrders(characterId, groupId int, orders *[]model.CharacterIconLayerGroupOrder) error
func (*CharacterRepository) UpdateLayerItems ¶
func (db *CharacterRepository) UpdateLayerItems(characterId, groupId int, items *[]model.CharacterIconLayerItemEditData) (result *[]model.CharacterIconLayerItem, err error)
func (*CharacterRepository) UpdateLayeringGroupName ¶
func (db *CharacterRepository) UpdateLayeringGroupName(characterId, groupId int, name string) error
func (*CharacterRepository) UpdateNotificationChecked ¶
func (db *CharacterRepository) UpdateNotificationChecked(characterId int) error
func (*CharacterRepository) UpdateOtherSettings ¶
func (db *CharacterRepository) UpdateOtherSettings(characterId int, settings *model.CharacterOtherSettings) error
func (*CharacterRepository) UpdatePassword ¶
func (db *CharacterRepository) UpdatePassword(id int, password string) error
func (*CharacterRepository) UpdatePasswordByResetCode ¶
func (db *CharacterRepository) UpdatePasswordByResetCode(id int, code, password string) error
func (*CharacterRepository) UpdateProfile ¶
func (db *CharacterRepository) UpdateProfile(id int, profile *model.ProfileEditData) error
func (*CharacterRepository) UpdateProfileImages ¶
func (db *CharacterRepository) UpdateProfileImages(id int, images *[]model.ProfileImage) error
Source Files
¶
- add_character_to_list.go
- adomonish.go
- ban.go
- block.go
- character.go
- check_username_exists.go
- create_administrator.go
- create_character.go
- create_dummy_characters.go
- create_layer_group.go
- create_layering_group.go
- create_list.go
- create_process_schema.go
- delete_character.go
- delete_layer_group.go
- delete_layer_items.go
- delete_layering_group.go
- delete_list.go
- delete_process_schema.go
- delete_uploaded_images.go
- exchange_email_to_id.go
- exchange_notification_token_to_id.go
- exchange_username_to_id.go
- follow.go
- mute.go
- register_google_data.go
- register_twitter_data.go
- remove_character_from_list.go
- rename_list.go
- retrieve_block_list.go
- retrieve_character_icons.go
- retrieve_character_list.go
- retrieve_character_nickname.go
- retrieve_character_profile_images.go
- retrieve_character_suggestions.go
- retrieve_configm_code.go
- retrieve_credentials.go
- retrieve_credentials_by_google.go
- retrieve_credentials_by_twitter.go
- retrieve_email_registrated_characters.go
- retrieve_follow_list.go
- retrieve_follower_list.go
- retrieve_home_data.go
- retrieve_initial_data.go
- retrieve_layering_group.go
- retrieve_layering_group_overviews.go
- retrieve_list.go
- retrieve_list_owner.go
- retrieve_list_suggestions.go
- retrieve_lists.go
- retrieve_mute_list.go
- retrieve_notifications.go
- retrieve_other_settings.go
- retrieve_password.go
- retrieve_profile.go
- retrieve_profile_edit_data.go
- retrieve_prohibition_related_data.go
- retrieve_related_follower_list.go
- retrieve_uploaded_images.go
- save_upload_image_data.go
- set_confirm_code.go
- set_password_reset_code.go
- unban.go
- unblock.go
- undelete_character.go
- unfollow.go
- unlink_google.go
- unlink_twitter.go
- unmute.go
- unregister_email.go
- update_email.go
- update_icons.go
- update_layer_group_name.go
- update_layer_group_orders.go
- update_layer_items.go
- update_layering_group_name.go
- update_notification_checked.go
- update_other_settings.go
- update_password.go
- update_password_by_reset_code.go
- update_profile.go
- update_profile_images.go
Click to show internal directories.
Click to hide internal directories.