usecases

package
v0.0.0-...-e380594 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachmentUseCase

type AttachmentUseCase interface {
	CreateAttachment(file *multipart.FileHeader, cid, uid uint) (attachment *models.Attachment, err error)
	GetAttachment(atid, uid uint) (attachment *models.Attachment, err error)
	DeleteAttachment(atid, uid uint) (err error)
}

type BoardUseCase

type BoardUseCase interface {
	GetUserBoards(uid uint) (*[]models.Team, error)
	CreateBoard(board *models.Board) (bid uint, err error)
	GetBoard(uid, bid uint) (board *models.Board, err error)
	UpdateBoard(uid uint, board *models.Board) (err error)
	DeleteBoard(uid, bid uint) (err error)
	ToggleUser(uid, bid, toggledUserID uint) (board *models.Board, err error)
	UpdateAccessPath(uid, bid uint) (newAccessLink string, err error)
	AddUserViaLink(uid uint, accessPath string) (board *models.Board, err error)
}

type CardListUseCase

type CardListUseCase interface {
	CreateCardList(cardList *models.CardList) (clid uint, err error)
	GetCardList(uid, clid uint) (cardList *models.CardList, err error)
	UpdateCardList(uid uint, cardList *models.CardList) (err error)
	DeleteCardList(uid, clid uint) (err error)
}

type CardUseCase

type CardUseCase interface {
	CreateCard(card *models.Card) (cid uint, err error)
	GetCard(uid, cid uint) (card *models.Card, err error)
	UpdateCard(uid uint, card *models.Card) (err error)
	DeleteCard(uid, cid uint) (err error)
	ToggleUser(uid, cid, toggledUserID uint) (card *models.Card, err error)
	ToggleTag(uid, cid, toggledTagID uint) (card *models.Card, err error)
	UpdateAccessPath(uid, cid uint) (newAccessLink string, err error)
	AddUserViaLink(uid uint, accessPath string) (card *models.Card, err error)
}

type CheckListItemUseCase

type CheckListItemUseCase interface {
	CreateCheckListItem(checkListItem *models.CheckListItem) (chliid uint, err error)
	GetCheckListItem(uid, chliid uint) (checkListItem *models.CheckListItem, err error)
	UpdateCheckListItem(uid uint, checkListItem *models.CheckListItem) (err error)
	DeleteCheckListItem(uid, chliid uint) (err error)
}

type CheckListUseCase

type CheckListUseCase interface {
	CreateCheckList(checkList *models.CheckList) (chlid uint, err error)
	GetCheckList(uid, chlid uint) (checkList *models.CheckList, err error)
	UpdateCheckList(uid uint, checkList *models.CheckList) (err error)
	DeleteCheckList(uid, chlid uint) (err error)
}

type CommentUseCase

type CommentUseCase interface {
	CreateComment(comment *models.Comment) (finalComment *models.Comment, err error)
	GetComment(uid, cmid uint) (comment *models.Comment, err error)
	UpdateComment(uid uint, comment *models.Comment) (err error)
	DeleteComment(uid, cmid uint) (err error)
}

type SessionUseCase

type SessionUseCase interface {
	Create(user *models.User) (sid string, err error)
	Get(sid string) (string, error)
	GetUID(sid string) (uint, error)
	Delete(sid string) error
}

type TagUseCase

type TagUseCase interface {
	CreateTag(tag *models.Tag) (tgid uint, err error)
	GetTag(uid, tgid uint) (tag *models.Tag, err error)
	UpdateTag(uid uint, tag *models.Tag) (err error)
	DeleteTag(uid, tgid uint) (err error)
}

type TeamUseCase

type TeamUseCase interface {
	CreateTeam(uid uint, team *models.Team) (tid uint, err error)
	GetTeam(uid, tid uint) (team *models.Team, err error)
	UpdateTeam(uid uint, team *models.Team) (err error)
	DeleteTeam(uid, tid uint) (err error)
	ToggleUser(uid, tid, toggledUserID uint) (team *models.Team, err error)
}

type UserSearchUseCase

type UserSearchUseCase interface {
	FindForCard(uid, cid uint, text string) (users *[]models.UserSearchInfo, err error)
	FindForTeam(uid, tid uint, text string) (users *[]models.UserSearchInfo, err error)
	FindForBoard(uid, bid uint, text string) (users *[]models.UserSearchInfo, err error)
}

type UserUseCase

type UserUseCase interface {
	Create(user *models.User) (sid string, err error)
	Get(uid uint, login string) (user *models.User, err error)
	Update(user *models.User) (err error)
	UpdateAvatar(user *models.User, avatar *multipart.FileHeader) (err error)
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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