17 lines
533 B
Go
Executable File
17 lines
533 B
Go
Executable File
package category
|
|
|
|
import (
|
|
"bankline/internal/listing"
|
|
"context"
|
|
)
|
|
|
|
type Repository interface {
|
|
GetAllData(ctx context.Context, params listing.Params) (DataCategoryDTO, error)
|
|
GetData(ctx context.Context, id int) (CategoryDTO, error)
|
|
|
|
AddData(ctx context.Context, dto AddCategoryDTO) (CategoryIdDTO, error)
|
|
UpdateData(ctx context.Context, dto UpdateCategoryDTO, id int) (CategoryIdDTO, error)
|
|
UpdateStatusData(ctx context.Context, status string, id int) (CategoryDTO, error)
|
|
DeleteData(ctx context.Context, uuid int) error
|
|
}
|