domain

package
v0.0.0-...-2847b59 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 0 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Issue

type Issue struct {
	Id          int64  `db:"issue_id"`
	Title       string `db:"issue_title"`
	Description string `db:"issue_description"`
	ProjectId   int64  `db:"issue_projectId"`
	OwnerId     int64  `db:"issue_ownerId"`
}

Issue represents a Project task

type IssueRepository

type IssueRepository interface {
	GetById(id int64) (*Issue, error)
	All(*ListOptions) (*ListResponse, error)
	Create(issue *Issue) error
	Delete(id int64) error
}

type IssueService

type IssueService interface {
	Issue(id int64) (*Issue, error)
	Issues(*ListOptions) (*ListResponse, error)
	Create(issue *Issue) error
	Delete(id int64) error
}

type ListOptions

type ListOptions struct {
	Limit  int
	Offset int
}

ListOptions specifies the optional parameters to various List methods that support pagination.

type ListResponse

type ListResponse struct {
	Page    int               `json:"page"`
	PerPage int               `json:"per_page"`
	Pages   int               `json:"pages"`
	Total   int               `json:"total"`
	Links   map[string]string `json:"links"`
	// contains filtered or unexported fields
}

ListResponse

Jump to

Keyboard shortcuts

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