20 lines
643 B
Go
Executable File
20 lines
643 B
Go
Executable File
package users
|
|
|
|
import "context"
|
|
|
|
type Repository interface {
|
|
GetNews(ctx context.Context, limit, page int) (DataNewsDTO, error)
|
|
GetNewsById(ctx context.Context, id int) (NewsDTO, error)
|
|
|
|
GetCategories(ctx context.Context) ([]CategoryDTO, error)
|
|
GetSubCategoryById(ctx context.Context, id int) (SubCategoryDTO, error)
|
|
|
|
GetBanners(ctx context.Context, limit, page int) (DataBannerDTO, error)
|
|
|
|
GetStatics(ctx context.Context, limit, page int) (DataStaticDTO, error)
|
|
GetStaticById(ctx context.Context, id int) (StaticDTO, error)
|
|
|
|
GetCurrency(ctx context.Context) (CurrencyDTO, error)
|
|
GetSetting(ctx context.Context) (SettingDTO, error)
|
|
}
|