service

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGrpc

func RegisterGrpc(server *grpc.Server)

RegisterGrpc 注册Grpc

func RegisterGrpcGateway

func RegisterGrpcGateway(mux *runtime.ServeMux) (err error)

RegisterGrpcGateway 注册Grpc网关

Types

type AccountService

type AccountService struct {
}

AccountService 账户服务

func (*AccountService) GetCurrent

func (ctl *AccountService) GetCurrent(ctx context.Context, _ *proto.GetCurrentRequest) (res *proto.GetCurrentResponse, err error)

GetCurrent 获取当前用户

func (*AccountService) GetUserInfo

func (ctl *AccountService) GetUserInfo(ctx context.Context, req *proto.GetUserInfoRequest) (res *proto.GetCurrentResponse, err error)

GetUserInfo 根据OpenID获取用户信息

type PermissionService added in v0.1.2

type PermissionService struct {
}

PermissionService 许可服务

func (*PermissionService) VerificationHttpRouter added in v0.1.2

VerificationHttpRouter 验证Http路由

func (*PermissionService) VerificationToken added in v0.1.2

VerificationToken 验证Token

Jump to

Keyboard shortcuts

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