15 lines
441 B
Go
Executable File
15 lines
441 B
Go
Executable File
package banner
|
|
|
|
import (
|
|
"bankline/internal/listing"
|
|
"context"
|
|
)
|
|
|
|
type Repository interface {
|
|
GetAllData(ctx context.Context, params listing.Params) (DataBannerDTO, error)
|
|
GetOneData(ctx context.Context, id int) (GetBannerDTO, error)
|
|
AddData(ctx context.Context, dto AddBannerDTO) (GetBannerDTO, error)
|
|
UpdateData(ctx context.Context, dto UpdateBannerDTO, id int) (GetBannerDTO, error)
|
|
DeleteData(ctx context.Context, id int) error
|
|
}
|