Web users may only CRUD their own records, operators stay in assigned branches, and admin/manager/superadmin keep full access. Co-authored-by: Cursor <cursoragent@cursor.com>
12 lines
457 B
Go
12 lines
457 B
Go
package cardrekwizit
|
|
|
|
import "context"
|
|
|
|
type Repository interface {
|
|
List(ctx context.Context, filter ListFilter) (ListCardRekwizitOrderDTO, error)
|
|
GetByID(ctx context.Context, id int64) (CardRekwizitOrderDTO, error)
|
|
Create(ctx context.Context, dto CreateCardRekwizitOrderDTO) (CardRekwizitOrderDTO, error)
|
|
Update(ctx context.Context, id int64, dto UpdateCardRekwizitOrderDTO) (CardRekwizitOrderDTO, error)
|
|
Delete(ctx context.Context, id int64) error
|
|
}
|