classroom

package
v0.0.0-...-eb3d57b Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheClassroom

type CacheClassroom struct {
	// contains filtered or unexported fields
}

func NewCacheClassroom

func NewCacheClassroom(client *redis.Client) *CacheClassroom

func (*CacheClassroom) GetEmptyRoomCache

func (c *CacheClassroom) GetEmptyRoomCache(ctx context.Context, key string) (emptyRoomList []string, err error)

func (*CacheClassroom) GetExamRoom

func (c *CacheClassroom) GetExamRoom(ctx context.Context, key string) ([]*jwch.ExamRoomInfo, error)

func (*CacheClassroom) SetEmptyRoomCache

func (c *CacheClassroom) SetEmptyRoomCache(ctx context.Context, key string, emptyRoomList []string) error

func (*CacheClassroom) SetExamRoom

func (c *CacheClassroom) SetExamRoom(ctx context.Context, key string, value []*jwch.ExamRoomInfo)

func (*CacheClassroom) SetXiaMenEmptyRoomCache

func (c *CacheClassroom) SetXiaMenEmptyRoomCache(ctx context.Context, date, start, end string, emptyRoomList []string) (err error)

Jump to

Keyboard shortcuts

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