15 lines
427 B
Go
Executable File
15 lines
427 B
Go
Executable File
package news
|
|
|
|
import (
|
|
"bankline/internal/listing"
|
|
"context"
|
|
)
|
|
|
|
type Repository interface {
|
|
GetAllData(ctx context.Context, params listing.Params) (DataNewsDTO, error)
|
|
GetOneData(ctx context.Context, id int) (GetNewsDTO, error)
|
|
AddData(ctx context.Context, dto AddNewsDTO) (GetNewsDTO, error)
|
|
UpdateData(ctx context.Context, dto UpdateNewsDTO, id int) (GetNewsDTO, error)
|
|
DeleteData(ctx context.Context, id int) error
|
|
}
|