service

package
v0.0.0-...-99cece9 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGoodsComments

func GetGoodsComments(id string) (common.CommentResult, error)

Types

type GoodsDetailServiceImpl

type GoodsDetailServiceImpl struct {
	// contains filtered or unexported fields
}

func (*GoodsDetailServiceImpl) GetGoodsDetail

func (service *GoodsDetailServiceImpl) GetGoodsDetail(ctx context.Context, id string) (GoodsDetailVO, error)

func (*GoodsDetailServiceImpl) InitConfig

func (service *GoodsDetailServiceImpl) InitConfig(ctx context.Context)

type GoodsDetailVO

type GoodsDetailVO struct {
	Id       string
	Name     string
	Comments common.CommentListVO
}

type Service

type Service interface {
	GetGoodsDetail(ctx context.Context, id string) (GoodsDetailVO, error)
	InitConfig(ctx context.Context)
}

func NewGoodsServiceImpl

func NewGoodsServiceImpl() Service

Jump to

Keyboard shortcuts

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