service

package
v0.0.0-...-de569a9 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommentListVO

type CommentListVO struct {
	Id string
	// 评论列表
	CommentList []CommentVo
}

评论列表视图对象

type CommentVo

type CommentVo struct {
	Id string
	// 描述
	Desc string
	// 分数
	Score float32
	// 回复id
	ReplyId string
}

评论视图对象

type CommentsServiceImpl

type CommentsServiceImpl struct{}

评论服务实现

func (*CommentsServiceImpl) GetCommentsList

func (service *CommentsServiceImpl) GetCommentsList(ctx context.Context, id string) (CommentListVO, error)

获取评论列表

type Service

type Service interface {
	// 获取评论列表
	GetCommentsList(ctx context.Context, id string) (CommentListVO, error)
}

评论服务接口

func NewGoodsServiceImpl

func NewGoodsServiceImpl() Service

Jump to

Keyboard shortcuts

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