contract

package
v0.0.0-...-945c817 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	Create(contract *model.Contract) error
	Edit(contract *model.Contract) error
	List(int64, string) ([]model.Contract, error)
	Find(int64) (*model.Contract, error)
	ChangeStatus(contractID int64, newStatus string) error
	ChangeStatusWorkAsReady(conractID int64) error
	GetClosedContracts(id int64) ([]model.PublicContractVersion, error)
}

type Usecase

type Usecase interface {
	CreateContract(user *model.User, responseId int64, input *model.ContractInput) error
	SetAsDone(user *model.User, contractId int64) error
	ReviewContract(user *model.User, contractId int64, review *model.ReviewInput) error
	ReviewList(user *model.User) ([]model.Review, error)
	ContractList(user *model.User) ([]model.ContractOutput, error)
	Find(user *model.User, id int64) (*model.ContractOutput, error)
	ChangeStatus(user *model.User, id int64, status string) error
	TickWorkAsReady(user *model.User, id int64) error
	GetClosedContracts(id int64) ([]model.PublicContractVersion, error)
}

Directories

Path Synopsis
delivery

Jump to

Keyboard shortcuts

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