service

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet is service providers.

Functions

func HandleClass

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

Types

type ClassCtrl

type ClassCtrl interface {
	GetClasses(ctx context.Context, stuID, year, semester string, week int64) ([]*model.Class, error)
	AddClass(ctx context.Context, stuID string, info *model.ClassInfo) error
	DeleteClass(ctx context.Context, stuID, year, semester, classId string) error
	GetRecycledClassInfos(ctx context.Context, stuID, year, semester string) ([]*model.ClassInfo, error)
	RecoverClassInfo(ctx context.Context, stuID, year, semester, classId string) error
	SearchClass(ctx context.Context, classId string) (*model.ClassInfo, error)
	UpdateClass(ctx context.Context, stuID, year, semester string, newClassInfo *model.ClassInfo, newSc *model.StudentCourse, oldClassId string) error
	CheckSCIdsExist(ctx context.Context, stuID, year, semester, classId string) bool
	GetAllSchoolClassInfosToOtherService(ctx context.Context, year, semester string) []*model.ClassInfo
	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