service

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

func HandleClassInfo

func HandleClassInfo(classInfo model.ClassInfo) *pb.ClassInfo

Types

type ClassInfoProxy

type ClassInfoProxy interface {
	AddClassInfoToClassListService(ctx context.Context, request *v1.AddClassRequest) (*v1.AddClassResponse, error)
	SearchClassInfo(ctx context.Context, keyWords string, xnm, xqm string) ([]model.ClassInfo, error)
}

type ClassServiceService

type ClassServiceService struct {
	pb.UnimplementedClassServiceServer
	// contains filtered or unexported fields
}

func NewClassServiceService

func NewClassServiceService(cp ClassInfoProxy) *ClassServiceService

func (*ClassServiceService) AddClass

func (*ClassServiceService) SearchClass

func (s *ClassServiceService) SearchClass(ctx context.Context, req *pb.SearchRequest) (*pb.SearchReply, error)

Jump to

Keyboard shortcuts

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