service

package
v0.0.0-...-31e44ea Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Add

type Add struct {
	A int `json:"a"` // 第一个数
	B int `json:"b"` // 第二个数
}

Add 加法结构体

type AddAck

type AddAck struct {
	Res int `json:"res"` // 结果
}

AddAck 结果

type Service

type Service interface {
	// TestAdd 加法
	TestAdd(ctx context.Context, in Add) AddAck
}

TestAdd 服务接口

func NewService

func NewService() Service

Service 创建服务

Jump to

Keyboard shortcuts

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