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) }
Click to show internal directories.
Click to hide internal directories.