repositories

package
v0.0.0-...-a1eeba1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCardAttachmentRequest

type AddCardAttachmentRequest struct {
	AttachmentID uint64
	CardID       uint64
	BoardID      uint64
}

type AddCardCommentRequest

type AddCardCommentRequest struct {
	Comment models.Comment
	CardID  uint64
	BoardID uint64
	UserID  uint64
}

type AddCardLabelRequest

type AddCardLabelRequest struct {
	LabelID uint64
	CardID  uint64
	BoardID uint64
}

type AddCardMembersRequest

type AddCardMembersRequest struct {
	UserIDs []uint64
	CardID  uint64
	BoardID uint64
}

type ArchiveCardRequest

type ArchiveCardRequest struct {
	CardID  uint64
	BoardID uint64
}

type CardRepository

type CardRepository interface {
	CreateCard(req *CreateCardRequest) (*CreateCardResponse, error)
	GetCardByID(req *GetCardByIDRequest) (*GetCardByIDResponse, error)
	GetCardsByList(req *GetCardsByListRequest) (*GetCardsByListResponse, error)
	GetCardsByBoard(req *GetCardsByBoardRequest) (*GetCardsByBoardResponse, error)
	MoveCardPosition(req *MoveCardPositionRequest) error
	UpdateCardName(req *UpdateCardNameRequest) error
	UpdateCardDescription(req *UpdateCardDescriptionRequest) error
	AddCardLabel(req *AddCardLabelRequest) error
	RemoveCardLabel(req *RemoveCardLabelRequest) error
	SetCardDates(req *SetCardDatesRequest) error
	ToggleCardCompleted(req *ToggleCardCompletedRequest) error
	AddCardAttachment(req *AddCardAttachmentRequest) error
	RemoveCardAttachment(req *RemoveCardAttachmentRequest) error
	AddCardComment(req *AddCardCommentRequest) error
	RemoveCardComment(req *RemoveCardCommentRequest) error
	AddCardMembers(req *AddCardMembersRequest) error
	RemoveCardMembers(req *RemoveCardMembersRequest) error
	ArchiveCard(req *ArchiveCardRequest) error
	RestoreCard(req *RestoreCardRequest) error
	DeleteCard(req *DeleteCardRequest) error
}

type CreateCardRequest

type CreateCardRequest struct {
	Card *models.Card
}

type CreateCardResponse

type CreateCardResponse struct {
	Card *models.Card
}

type DeleteCardRequest

type DeleteCardRequest struct {
	CardID  uint64
	BoardID uint64
}

type GetCardByIDRequest

type GetCardByIDRequest struct {
	CardID uint64
}

type GetCardByIDResponse

type GetCardByIDResponse struct {
	Card *internal_models.CardDTO
}

type GetCardsByBoardRequest

type GetCardsByBoardRequest struct {
	BoardID uint64
}

type GetCardsByBoardResponse

type GetCardsByBoardResponse struct {
	Cards []*internal_models.CardMetaDTO
}

type GetCardsByListRequest

type GetCardsByListRequest struct {
	ListID uint64
}

type GetCardsByListResponse

type GetCardsByListResponse struct {
	Cards []*internal_models.CardMetaDTO
}

type GormCardRepository

type GormCardRepository struct {
	// contains filtered or unexported fields
}

func NewCardRepository

func NewCardRepository(db *gorm.DB) *GormCardRepository

func (*GormCardRepository) AddCardAttachment

func (r *GormCardRepository) AddCardAttachment(req *AddCardAttachmentRequest) error

func (*GormCardRepository) AddCardComment

func (r *GormCardRepository) AddCardComment(req *AddCardCommentRequest) error

func (*GormCardRepository) AddCardLabel

func (r *GormCardRepository) AddCardLabel(req *AddCardLabelRequest) error

func (*GormCardRepository) AddCardMembers

func (r *GormCardRepository) AddCardMembers(req *AddCardMembersRequest) error

func (*GormCardRepository) ArchiveCard

func (r *GormCardRepository) ArchiveCard(req *ArchiveCardRequest) error

func (*GormCardRepository) CreateCard

func (*GormCardRepository) DeleteCard

func (r *GormCardRepository) DeleteCard(req *DeleteCardRequest) error

func (*GormCardRepository) GetCardByID

func (*GormCardRepository) GetCardsByBoard

func (*GormCardRepository) GetCardsByList

func (*GormCardRepository) MoveCardPosition

func (r *GormCardRepository) MoveCardPosition(req *MoveCardPositionRequest) error

func (*GormCardRepository) RemoveCardAttachment

func (r *GormCardRepository) RemoveCardAttachment(req *RemoveCardAttachmentRequest) error

func (*GormCardRepository) RemoveCardComment

func (r *GormCardRepository) RemoveCardComment(req *RemoveCardCommentRequest) error

func (*GormCardRepository) RemoveCardLabel

func (r *GormCardRepository) RemoveCardLabel(req *RemoveCardLabelRequest) error

func (*GormCardRepository) RemoveCardMembers

func (r *GormCardRepository) RemoveCardMembers(req *RemoveCardMembersRequest) error

func (*GormCardRepository) RestoreCard

func (r *GormCardRepository) RestoreCard(req *RestoreCardRequest) error

func (*GormCardRepository) SetCardDates

func (r *GormCardRepository) SetCardDates(req *SetCardDatesRequest) error

func (*GormCardRepository) ToggleCardCompleted

func (r *GormCardRepository) ToggleCardCompleted(req *ToggleCardCompletedRequest) error

func (*GormCardRepository) UpdateCardDescription

func (r *GormCardRepository) UpdateCardDescription(req *UpdateCardDescriptionRequest) error

func (*GormCardRepository) UpdateCardName

func (r *GormCardRepository) UpdateCardName(req *UpdateCardNameRequest) error

type MoveCardPositionRequest

type MoveCardPositionRequest struct {
	CardID    uint64
	Position  int64
	BoardID   uint64
	OldListID uint64
	NewListID uint64
}

type RemoveCardAttachmentRequest

type RemoveCardAttachmentRequest struct {
	AttachmentID uint64
	CardID       uint64
	BoardID      uint64
}

type RemoveCardCommentRequest

type RemoveCardCommentRequest struct {
	CommentID uint64
	CardID    uint64
	BoardID   uint64
	UserID    uint64
}

type RemoveCardLabelRequest

type RemoveCardLabelRequest struct {
	LabelID uint64
	CardID  uint64
	BoardID uint64
}

type RemoveCardMembersRequest

type RemoveCardMembersRequest struct {
	UserIDs []uint64
	CardID  uint64
	BoardID uint64
}

type RestoreCardRequest

type RestoreCardRequest struct {
	CardID  uint64
	BoardID uint64
}

type SetCardDatesRequest

type SetCardDatesRequest struct {
	StartDate *time.Time
	DueDate   *time.Time
	CardID    uint64
	BoardID   uint64
}

type ToggleCardCompletedRequest

type ToggleCardCompletedRequest struct {
	CardID  uint64
	BoardID uint64
}

type UpdateCardDescriptionRequest

type UpdateCardDescriptionRequest struct {
	CardID      uint64
	Description string
	BoardID     uint64
}

type UpdateCardNameRequest

type UpdateCardNameRequest struct {
	CardID  uint64
	Name    string
	BoardID uint64
}

Jump to

Keyboard shortcuts

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