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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IUserService

type IUserService interface {
	GetName(userId int) string
}

IUserService 用户服务接口

type UserService

type UserService struct {
}

UserService 用户服务实现

func (UserService) GetName

func (s UserService) GetName(userId int) string

GetName 根据传入的userId,获取用户的名字

Jump to

Keyboard shortcuts

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