Files

23 lines
888 B
Go
Executable File

package users
import "context"
type Repository interface {
GetNews(ctx context.Context, limit, page int, lang string) (DataNewsDTO, error)
GetNewsById(ctx context.Context, id int, lang string) (NewsDTO, error)
GetCategories(ctx context.Context, lang string) ([]CategoryDTO, error)
GetSubCategoryById(ctx context.Context, id int, lang string) (SubCategoryDTO, error)
GetBanners(ctx context.Context, limit, page int) (DataBannerDTO, error)
GetBannerById(ctx context.Context, id int, lang string) (BannerDTO, error)
GetMiniSliders(ctx context.Context, lang string) (DataMiniSliderDTO, error)
GetStatics(ctx context.Context, limit, page int, lang string) (DataStaticDTO, error)
GetStaticById(ctx context.Context, id int, lang string) (StaticDTO, error)
GetCurrency(ctx context.Context, lang string) (CurrencyDTO, error)
GetSetting(ctx context.Context) (SettingDTO, error)
}