12 lines
407 B
Go
12 lines
407 B
Go
package loanorders
|
|
|
|
import "context"
|
|
|
|
type Repository interface {
|
|
List(ctx context.Context, filter ListFilter) (ListLoanOrderDTO, error)
|
|
GetByID(ctx context.Context, id int64) (LoanOrderDTO, error)
|
|
Create(ctx context.Context, dto CreateLoanOrderDTO) (LoanOrderDTO, error)
|
|
Update(ctx context.Context, id int64, dto UpdateLoanOrderDTO) (LoanOrderDTO, error)
|
|
Delete(ctx context.Context, id int64) error
|
|
}
|