home

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {

	/**
	 * 获取首页内容
	 */
	Content(ctx context.Context) (*dto.HomeContentResult, error)

	/**
	 * 首页商品推荐
	 */
	RecommendProductList(ctx context.Context, pageNum, pageSize int) ([]dto.PmsProduct, error)

	/**
	 * 获取商品分类
	 * @param parentId 0:获取一级分类;其他:获取指定二级分类
	 */
	GetProductCateList(ctx context.Context, parentId int64) ([]dto.PmsProductCategory, error)

	/**
	 * 根据专题分类分页获取专题
	 * @param cateId 专题分类id
	 */
	GetSubjectList(ctx context.Context, cateId int64, pageNum, pageSize int) ([]dto.CmsSubject, error)

	/**
	 * 分页获取人气推荐商品
	 */
	HotProductList(ctx context.Context, pageNum, pageSize int) ([]dto.PmsProduct, error)

	/**
	 * 分页获取新品推荐商品
	 */
	NewProductList(ctx context.Context, pageNum, pageSize int) ([]dto.PmsProduct, error)
	// contains filtered or unexported methods
}

首页内容管理Service

func New

func New() Service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL