Documentation ¶
Index ¶
- type RoomRepository
- func (db *RoomRepository) AddRoomMessageFetchConfig(characterId int, config *model.RoomMessageFetchConfig) (configId int, err error)
- func (db *RoomRepository) BanCharacterFromRoom(userId, targetId, roomId int) error
- func (db *RoomRepository) CancelBanCharacterFromRoom(userId, targetId, roomId int) error
- func (db *RoomRepository) CancelInviteCharacterToRoom(userId, targetId, roomId int) error
- func (db *RoomRepository) CreateRole(characterId, roomId int, roleName string, role *model.RoomRolePermission) (roleId int, err error)
- func (db *RoomRepository) CreateRoom(characterId int, room *model.Room) (roomId int, err error)
- func (db *RoomRepository) DeleteRole(characterId, roleId int) error
- func (db *RoomRepository) DeleteRoom(characterId, roomId int) error
- func (db *RoomRepository) DeleteRoomMessageFetchConfig(characterId, configId int) error
- func (r *RoomRepository) ExecTx(f func(tx *sqlx.Tx) error) error
- func (db *RoomRepository) GrantRoomRole(userId, targetId, roleId int) error
- func (db *RoomRepository) InviteCharacterToRoom(userId, targetId, roomId int) error
- func (db *RoomRepository) JoinToRoom(targetId, roomId int) (room *model.RoomOverview, targetName string, newMemberWebhooks []string, ...)
- func (db *RoomRepository) NotificateRoomMessage(messageId int) (dto *model.RoomNotificationRelatedData, err error)
- func (db *RoomRepository) PostRoomMessage(characterId int, message *model.RoomPostMessage, uploadPath string) (messageId int, err error)
- func (db *RoomRepository) RenameRoomMessageFetchConfig(characterId, configId int, name string) error
- func (db *RoomRepository) RetrieveChildrenCreatableRooms(characterId int) (rooms *[]model.RoomOverview, err error)
- func (db *RoomRepository) RetrieveInvitedRooms(characterId int) (rooms *[]model.RoomListItem, err error)
- func (db *RoomRepository) RetrieveMemberRooms(characterId int) (rooms *[]model.RoomListItem, err error)
- func (db *RoomRepository) RetrieveOwnedRooms(characterId int) (rooms *[]model.RoomListItem, err error)
- func (db *RoomRepository) RetrieveRoomBanStates(roomId int) (states *[]model.RoomBanState, err error)
- func (db *RoomRepository) RetrieveRoomDetailData(characterId int, roomId int) (room *model.RoomDetailData, err error)
- func (db *RoomRepository) RetrieveRoomGeneralSettings(roomId int) (room *model.Room, masterCharacter int, err error)
- func (db *RoomRepository) RetrieveRoomInviteStates(roomId int) (states *[]model.RoomInviteState, err error)
- func (db *RoomRepository) RetrieveRoomInviteSuggestions(characterId int, searchText string, roomId int) (suggestions *model.CharacterSuggestionsData, err error)
- func (db *RoomRepository) RetrieveRoomMembers(userId, roomId int) (members *[]model.RomeMemberWithRoles, err error)
- func (db *RoomRepository) RetrieveRoomMessageFetchConfig(characterId int) (configs *[]model.RoomMessageFetchConfigWithId, err error)
- func (db *RoomRepository) RetrieveRoomMessages(characterId int, options *model.RoomMessageRetrieveSettings) (messages *[]model.RoomMessage, isContinueFollowing, isContinuePrevious *bool, ...)
- func (db *RoomRepository) RetrieveRoomOwnPermissions(characterId int, roomId int) (permissions *model.RoomMemberPermission, roleType string, banned bool, ...)
- func (db *RoomRepository) RetrieveRoomRelations(roomId int) (room *model.RoomRelations, err error)
- func (db *RoomRepository) RetrieveRoomRoleSettings(roomId int) (roles []model.RoomRole, master int, err error)
- func (db *RoomRepository) RetrieveRoomSubscribeStates(characterId, roomId int) (states *model.RoomSubscribeStates, err error)
- func (db *RoomRepository) RetrieveRoomTitle(roomId int) (title string, err error)
- func (db *RoomRepository) RevokeRoomRole(userId, targetId, role int) error
- func (db *RoomRepository) SearchRooms(characterId int, options *model.RoomSearchOptions) (rooms []model.RoomListItem, isContinue bool, err error)
- func (db *RoomRepository) SubscribeRoomMessage(characterId, roomId int) error
- func (db *RoomRepository) SubscribeRoomNewMember(characterId, roomId int) error
- func (db *RoomRepository) UnsubscribeRoomMessage(characterId, roomId int) error
- func (db *RoomRepository) UnsubscribeRoomNewMember(characterId, roomId int) error
- func (db *RoomRepository) UpdateRolePermissions(characterId, roleId int, roleName string, role *model.RoomRolePermission) error
- func (db *RoomRepository) UpdateRolePriorities(characterId, roomId int, priorities *[]model.RoomRolePriority) error
- func (db *RoomRepository) UpdateRoomMessageFetchConfigOrders(characterId int, orders *[]model.RoomMessageFetchConfigOrder) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoomRepository ¶
func NewRoomRepository ¶
func NewRoomRepository(db *sqlx.DB) *RoomRepository
func (*RoomRepository) AddRoomMessageFetchConfig ¶
func (db *RoomRepository) AddRoomMessageFetchConfig(characterId int, config *model.RoomMessageFetchConfig) (configId int, err error)
func (*RoomRepository) BanCharacterFromRoom ¶
func (db *RoomRepository) BanCharacterFromRoom(userId, targetId, roomId int) error
func (*RoomRepository) CancelBanCharacterFromRoom ¶
func (db *RoomRepository) CancelBanCharacterFromRoom(userId, targetId, roomId int) error
func (*RoomRepository) CancelInviteCharacterToRoom ¶
func (db *RoomRepository) CancelInviteCharacterToRoom(userId, targetId, roomId int) error
func (*RoomRepository) CreateRole ¶
func (db *RoomRepository) CreateRole(characterId, roomId int, roleName string, role *model.RoomRolePermission) (roleId int, err error)
func (*RoomRepository) CreateRoom ¶
func (*RoomRepository) DeleteRole ¶
func (db *RoomRepository) DeleteRole(characterId, roleId int) error
func (*RoomRepository) DeleteRoom ¶
func (db *RoomRepository) DeleteRoom(characterId, roomId int) error
func (*RoomRepository) DeleteRoomMessageFetchConfig ¶
func (db *RoomRepository) DeleteRoomMessageFetchConfig(characterId, configId int) error
func (*RoomRepository) GrantRoomRole ¶
func (db *RoomRepository) GrantRoomRole(userId, targetId, roleId int) error
func (*RoomRepository) InviteCharacterToRoom ¶
func (db *RoomRepository) InviteCharacterToRoom(userId, targetId, roomId int) error
func (*RoomRepository) JoinToRoom ¶
func (db *RoomRepository) JoinToRoom(targetId, roomId int) (room *model.RoomOverview, targetName string, newMemberWebhooks []string, err error)
func (*RoomRepository) NotificateRoomMessage ¶
func (db *RoomRepository) NotificateRoomMessage(messageId int) (dto *model.RoomNotificationRelatedData, err error)
func (*RoomRepository) PostRoomMessage ¶
func (db *RoomRepository) PostRoomMessage(characterId int, message *model.RoomPostMessage, uploadPath string) (messageId int, err error)
func (*RoomRepository) RenameRoomMessageFetchConfig ¶
func (db *RoomRepository) RenameRoomMessageFetchConfig(characterId, configId int, name string) error
func (*RoomRepository) RetrieveChildrenCreatableRooms ¶
func (db *RoomRepository) RetrieveChildrenCreatableRooms(characterId int) (rooms *[]model.RoomOverview, err error)
func (*RoomRepository) RetrieveInvitedRooms ¶
func (db *RoomRepository) RetrieveInvitedRooms(characterId int) (rooms *[]model.RoomListItem, err error)
func (*RoomRepository) RetrieveMemberRooms ¶
func (db *RoomRepository) RetrieveMemberRooms(characterId int) (rooms *[]model.RoomListItem, err error)
func (*RoomRepository) RetrieveOwnedRooms ¶
func (db *RoomRepository) RetrieveOwnedRooms(characterId int) (rooms *[]model.RoomListItem, err error)
func (*RoomRepository) RetrieveRoomBanStates ¶
func (db *RoomRepository) RetrieveRoomBanStates(roomId int) (states *[]model.RoomBanState, err error)
func (*RoomRepository) RetrieveRoomDetailData ¶
func (db *RoomRepository) RetrieveRoomDetailData(characterId int, roomId int) (room *model.RoomDetailData, err error)
func (*RoomRepository) RetrieveRoomGeneralSettings ¶
func (*RoomRepository) RetrieveRoomInviteStates ¶
func (db *RoomRepository) RetrieveRoomInviteStates(roomId int) (states *[]model.RoomInviteState, err error)
func (*RoomRepository) RetrieveRoomInviteSuggestions ¶
func (db *RoomRepository) RetrieveRoomInviteSuggestions(characterId int, searchText string, roomId int) (suggestions *model.CharacterSuggestionsData, err error)
func (*RoomRepository) RetrieveRoomMembers ¶
func (db *RoomRepository) RetrieveRoomMembers(userId, roomId int) (members *[]model.RomeMemberWithRoles, err error)
func (*RoomRepository) RetrieveRoomMessageFetchConfig ¶
func (db *RoomRepository) RetrieveRoomMessageFetchConfig(characterId int) (configs *[]model.RoomMessageFetchConfigWithId, err error)
func (*RoomRepository) RetrieveRoomMessages ¶
func (db *RoomRepository) RetrieveRoomMessages(characterId int, options *model.RoomMessageRetrieveSettings) (messages *[]model.RoomMessage, isContinueFollowing, isContinuePrevious *bool, err error)
func (*RoomRepository) RetrieveRoomOwnPermissions ¶
func (db *RoomRepository) RetrieveRoomOwnPermissions(characterId int, roomId int) (permissions *model.RoomMemberPermission, roleType string, banned bool, err error)
func (*RoomRepository) RetrieveRoomRelations ¶
func (db *RoomRepository) RetrieveRoomRelations(roomId int) (room *model.RoomRelations, err error)
func (*RoomRepository) RetrieveRoomRoleSettings ¶
func (*RoomRepository) RetrieveRoomSubscribeStates ¶
func (db *RoomRepository) RetrieveRoomSubscribeStates(characterId, roomId int) (states *model.RoomSubscribeStates, err error)
func (*RoomRepository) RetrieveRoomTitle ¶
func (db *RoomRepository) RetrieveRoomTitle(roomId int) (title string, err error)
func (*RoomRepository) RevokeRoomRole ¶
func (db *RoomRepository) RevokeRoomRole(userId, targetId, role int) error
func (*RoomRepository) SearchRooms ¶
func (db *RoomRepository) SearchRooms(characterId int, options *model.RoomSearchOptions) (rooms []model.RoomListItem, isContinue bool, err error)
func (*RoomRepository) SubscribeRoomMessage ¶
func (db *RoomRepository) SubscribeRoomMessage(characterId, roomId int) error
func (*RoomRepository) SubscribeRoomNewMember ¶
func (db *RoomRepository) SubscribeRoomNewMember(characterId, roomId int) error
func (*RoomRepository) UnsubscribeRoomMessage ¶
func (db *RoomRepository) UnsubscribeRoomMessage(characterId, roomId int) error
func (*RoomRepository) UnsubscribeRoomNewMember ¶
func (db *RoomRepository) UnsubscribeRoomNewMember(characterId, roomId int) error
func (*RoomRepository) UpdateRolePermissions ¶
func (db *RoomRepository) UpdateRolePermissions(characterId, roleId int, roleName string, role *model.RoomRolePermission) error
func (*RoomRepository) UpdateRolePriorities ¶
func (db *RoomRepository) UpdateRolePriorities(characterId, roomId int, priorities *[]model.RoomRolePriority) error
func (*RoomRepository) UpdateRoomMessageFetchConfigOrders ¶
func (db *RoomRepository) UpdateRoomMessageFetchConfigOrders(characterId int, orders *[]model.RoomMessageFetchConfigOrder) error
Source Files ¶
- add_room_message_fetch_config.go
- ban_character_from_room.go
- cancel_ban_character_from_room.go
- cancel_invite_character_to_room.go
- create_role.go
- create_room.go
- delete_role.go
- delete_room.go
- delete_room_message_fetch_config.go
- grant_room_role.go
- invite_character_to_room.go
- join_to_room.go
- notificate_room_message.go
- post_room_message.go
- rename_room_message_fetch_config.go
- retrieve_children_creatable_rooms.go
- retrieve_invited_rooms.go
- retrieve_member_rooms.go
- retrieve_owned_rooms.go
- retrieve_room_ban_states.go
- retrieve_room_detail_data.go
- retrieve_room_general_settings.go
- retrieve_room_invite_states.go
- retrieve_room_invite_suggestions.go
- retrieve_room_members.go
- retrieve_room_message_fetch_configs.go
- retrieve_room_messages.go
- retrieve_room_own_permissions.go
- retrieve_room_relations.go
- retrieve_room_role_settings.go
- retrieve_room_subscribe_states.go
- retrieve_room_title.go
- revoke_room_role.go
- room.go
- search_rooms.go
- subscribe_room_message.go
- subscribe_room_new_member.go
- unsubscribe_room_message.go
- unsubscribe_room_new_member.go
- update_role_permissions.go
- update_role_priorities.go
- update_room_message_fetch_config_orders.go
- util.go
Click to show internal directories.
Click to hide internal directories.