room

package
v0.0.0-...-31a4683 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoomRepository

type RoomRepository struct {
	*sqlx.DB
}

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 (db *RoomRepository) CreateRoom(characterId int, room *model.Room) (roomId int, err error)

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) ExecTx

func (r *RoomRepository) ExecTx(f func(tx *sqlx.Tx) error) 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 (db *RoomRepository) RetrieveRoomGeneralSettings(roomId int) (room *model.Room, masterCharacter int, err error)

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 (db *RoomRepository) RetrieveRoomRoleSettings(roomId int) (roles []model.RoomRole, master int, err error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL