service

package
v0.0.0-...-658fa7e Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

func HandleClass

func HandleClass(info *model.ClassInfo) *pb.ClassInfo

Types

type ClassCtrl

type ClassCtrl interface {
	CheckSCIdsExist(ctx context.Context, classid string) bool
	GetClasses(ctx context.Context, week int64) ([]*model.Class, error)
	AddClass(ctx context.Context, info *model.ClassInfo) error
	DeleteClass(ctx context.Context, classId string) error
	SearchClass(ctx context.Context, classId string) (*model.ClassInfo, error)
	UpdateClass(ctx context.Context, newClassInfo *model.ClassInfo, newSc *model.StudentCourse, oldClassId string) error
	GetAllSchoolClassInfosToOtherService(ctx context.Context) []*model.ClassInfo
	GetRecycledClassInfos(ctx context.Context) ([]*model.ClassInfo, error)
	RecoverClassInfo(ctx context.Context, classId string) error
	GetStuIdsByJxbId(ctx context.Context, jxbId string) ([]string, error)
}

type ClasserService

type ClasserService struct {
	pb.UnimplementedClasserServer
	Clu ClassCtrl
	// contains filtered or unexported fields
}

func NewClasserService

func NewClasserService(clu ClassCtrl, logger log.Logger) *ClasserService

func (*ClasserService) AddClass

func (*ClasserService) DeleteClass

func (*ClasserService) GetAllClassInfo

func (*ClasserService) GetClass

func (*ClasserService) GetRecycleBinClassInfos

func (*ClasserService) GetStuIdByJxbId

func (*ClasserService) RecoverClass

func (*ClasserService) UpdateClass

Jump to

Keyboard shortcuts

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