Documentation ¶
Index ¶
- Variables
- func HandleClass(info *model.ClassInfo) *pb.ClassInfo
- type ClassCtrl
- type ClasserService
- func (s *ClasserService) AddClass(ctx context.Context, req *pb.AddClassRequest) (*pb.AddClassResponse, error)
- func (s *ClasserService) DeleteClass(ctx context.Context, req *pb.DeleteClassRequest) (*pb.DeleteClassResponse, error)
- func (s *ClasserService) GetAllClassInfo(ctx context.Context, req *pb.GetAllClassInfoRequest) (*pb.GetAllClassInfoResponse, error)
- func (s *ClasserService) GetClass(ctx context.Context, req *pb.GetClassRequest) (*pb.GetClassResponse, error)
- func (s *ClasserService) GetRecycleBinClassInfos(ctx context.Context, req *pb.GetRecycleBinClassRequest) (*pb.GetRecycleBinClassResponse, error)
- func (s *ClasserService) GetStuIdByJxbId(ctx context.Context, req *pb.GetStuIdByJxbIdRequest) (*pb.GetStuIdByJxbIdResponse, error)
- func (s *ClasserService) RecoverClass(ctx context.Context, req *pb.RecoverClassRequest) (*pb.RecoverClassResponse, error)
- func (s *ClasserService) UpdateClass(ctx context.Context, req *pb.UpdateClassRequest) (*pb.UpdateClassResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewClasserService)
ProviderSet is service providers.
Functions ¶
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 (s *ClasserService) AddClass(ctx context.Context, req *pb.AddClassRequest) (*pb.AddClassResponse, error)
func (*ClasserService) DeleteClass ¶
func (s *ClasserService) DeleteClass(ctx context.Context, req *pb.DeleteClassRequest) (*pb.DeleteClassResponse, error)
func (*ClasserService) GetAllClassInfo ¶
func (s *ClasserService) GetAllClassInfo(ctx context.Context, req *pb.GetAllClassInfoRequest) (*pb.GetAllClassInfoResponse, error)
func (*ClasserService) GetClass ¶
func (s *ClasserService) GetClass(ctx context.Context, req *pb.GetClassRequest) (*pb.GetClassResponse, error)
func (*ClasserService) GetRecycleBinClassInfos ¶
func (s *ClasserService) GetRecycleBinClassInfos(ctx context.Context, req *pb.GetRecycleBinClassRequest) (*pb.GetRecycleBinClassResponse, error)
func (*ClasserService) GetStuIdByJxbId ¶
func (s *ClasserService) GetStuIdByJxbId(ctx context.Context, req *pb.GetStuIdByJxbIdRequest) (*pb.GetStuIdByJxbIdResponse, error)
func (*ClasserService) RecoverClass ¶
func (s *ClasserService) RecoverClass(ctx context.Context, req *pb.RecoverClassRequest) (*pb.RecoverClassResponse, error)
func (*ClasserService) UpdateClass ¶
func (s *ClasserService) UpdateClass(ctx context.Context, req *pb.UpdateClassRequest) (*pb.UpdateClassResponse, error)
Click to show internal directories.
Click to hide internal directories.