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 ¶
- Variables
- type BusinessSessionInfo
- type GreeterService
- func (s *GreeterService) BusinessLogin(ctx context.Context, in *v1.BusinessLoginRequest) (*v1.BusinessLoginReply, error)
- func (s *GreeterService) SayHello(ctx context.Context, in *v1.HelloRequest) (*v1.HelloReply, error)
- func (s *GreeterService) UcLogin() *biz.LoginUsecase
- func (s *GreeterService) WxLogin(ctx context.Context, in *v1.WxLoginRequest) (*v1.WxLoginReply, error)
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
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
func (s *GreeterService) BusinessLogin(ctx context.Context, in *v1.BusinessLoginRequest) ( *v1.BusinessLoginReply, error)
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
func (s *GreeterService) WxLogin(ctx context.Context, in *v1.WxLoginRequest) (*v1.WxLoginReply, error)
WxLogin implements helloworld.GreeterServer. 小程序静默授权登录示例代码,如果不需要此段代码,请在pb协议中删除此接口,并删除次代码
Click to show internal directories.
Click to hide internal directories.