Also save admin uploads locally under /public/images with a 10MB limit. Co-authored-by: Cursor <cursoragent@cursor.com>
21 lines
706 B
Go
Executable File
21 lines
706 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)
|
|
GetBannerById(ctx context.Context, id int) (BannerDTO, 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)
|
|
}
|