service

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 9 Imported by: 0

README

Service

Documentation

Overview

Package service 服务层

  • @Author: windealli windealli@tencent.com
  • @Date: 2023-03-15 16:01:35
  • @LastEditors: windealli windealli@tencent.com
  • @LastEditTime: 2023-03-17 09:40:13
  • @FilePath: /kratos-layout/internal/service/greeter.go
  • @Description: d

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(NewGreeterService)

ProviderSet is service providers.

Functions

This section is empty.

Types

type BusinessSessionInfo added in v0.1.1

type BusinessSessionInfo struct {
	UserName string `json:"username"`
	Role     string `json:"role"`
}

BusinessSessionInfo 业务登录态信息

type GreeterService

type GreeterService struct {
	v1.UnimplementedGreeterServer
	// contains filtered or unexported fields
}

GreeterService is a greeter service.

func NewGreeterService

func NewGreeterService(l log.Logger, u *biz.GreeterUsecase, ucLogin *biz.LoginUsecase) *GreeterService

NewGreeterService new a greeter service.

func (*GreeterService) BusinessLogin added in v0.1.1

BusinessLogin implements helloworld.GreeterServer. 网页静默授权登录示例代码,如果不需要此段代码,请在pb协议中删除此接口,并删除次代码

func (*GreeterService) SayHello

func (s *GreeterService) SayHello(ctx context.Context, in *v1.HelloRequest) (*v1.HelloReply, error)

SayHello implements helloworld.GreeterServer.

func (*GreeterService) UcLogin added in v0.1.1

func (s *GreeterService) UcLogin() *biz.LoginUsecase

UcLogin 返回GreeterService 的对象

func (*GreeterService) WxLogin added in v0.1.1

WxLogin implements helloworld.GreeterServer. 小程序静默授权登录示例代码,如果不需要此段代码,请在pb协议中删除此接口,并删除次代码

Jump to

Keyboard shortcuts

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