endpoint

package
Version: 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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCommentsListEndpoint

func MakeCommentsListEndpoint(svc service.Service) endpoint.Endpoint

创建评论的 Endpoint

Types

type CommentsEndpoints

type CommentsEndpoints struct {
	CommentsListEndpoint endpoint.Endpoint
}

评论终端,负责接收请求,处理请求,并返回结果。可以添加熔断、日志、限流、负载均衡等能力

type CommentsListRequest

type CommentsListRequest struct {
	Id string
}

评论请求结构体

type CommentsListResponse

type CommentsListResponse struct {
	Detail service.CommentListVO `json:"detail"`
	Error  string                `json:"error"`
}

评论响应结构体

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL