Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BadRequest = errors.New("bad request")
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(client *redis.Client, logger *logrus.Logger) *Controller
func (*Controller) GetScheduleByGroup ¶
func (c *Controller) GetScheduleByGroup(group, date string, ctx context.Context) ([]Schedule, error)
GetScheduleByGroup по идентификатору группы и дате получает расписание на неделю
func (*Controller) GetScheduleByTeacher ¶
func (c *Controller) GetScheduleByTeacher(teacher, date string, ctx context.Context) ([]Schedule, error)
GetScheduleByTeacher по ФИО преподавателя и дате получает расписание преподавателя
Click to show internal directories.
Click to hide internal directories.