Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Idea ¶
type Idea interface { GetByID(ideaID int) (*models.Idea, error) GetByNumber(number int) (*models.Idea, error) GetCommentsByIdea(number int) ([]*models.Comment, error) GetAll() ([]*models.Idea, error) Add(title, description string, userID int) (*models.Idea, error) AddComment(number int, content string, userID int) (int, error) AddSupporter(number, userID int) error RemoveSupporter(number, userID int) error SetResponse(number int, text string, userID, status int) error SupportedBy(userID int) ([]int, error) }
Idea contains read and write operations for ideas
Click to show internal directories.
Click to hide internal directories.