forked from ebhomengo/niki
22 lines
552 B
Go
22 lines
552 B
Go
|
package reqkindboxservice
|
||
|
|
||
|
import "git.gocasts.ir/ebhomengo/niki/entity"
|
||
|
|
||
|
type Repository interface {
|
||
|
AddReqKindBox(reqKindBox entity.ReqKindBox) (entity.ReqKindBox, error)
|
||
|
EditReqKindBox(reqKindBoxID uint, reqKindBox entity.ReqKindBox) (entity.ReqKindBox, error)
|
||
|
DeleteReqKindBox(reqKindBoxID uint) error
|
||
|
GetAllReqKindBox() ([]entity.ReqKindBox, error)
|
||
|
GetReqKindBoxByID(reqKindBoxID uint) (entity.ReqKindBox, error)
|
||
|
}
|
||
|
|
||
|
type Service struct {
|
||
|
repo Repository
|
||
|
}
|
||
|
|
||
|
func New(repository Repository) Service {
|
||
|
return Service{
|
||
|
repo: repository,
|
||
|
}
|
||
|
}
|