chronos

package
Version: v0.0.0-...-4c71261 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Calendar

type Calendar struct {
	ID      int `json:"Id"`
	DayList []struct {
		CourseList []struct {
			ID        int       `json:"Id"`
			Name      string    `json:"Name"`
			BeginDate time.Time `json:"BeginDate"`
			EndDate   time.Time `json:"EndDate"`
			Duration  int       `json:"Duration"`
			StaffList []struct {
				ID       int    `json:"Id"`
				Name     string `json:"Name"`
				Type     int    `json:"Type"`
				ParentID int    `json:"ParentId"`
			} `json:"StaffList"`
			RoomList []struct {
				Rooms    interface{} `json:"Rooms"`
				ID       int         `json:"Id"`
				Name     string      `json:"Name"`
				Type     int         `json:"Type"`
				ParentID int         `json:"ParentId"`
			} `json:"RoomList"`
			GroupList []struct {
				Groups   interface{} `json:"Groups"`
				ID       int         `json:"Id"`
				Name     string      `json:"Name"`
				Type     int         `json:"Type"`
				ParentID int         `json:"ParentId"`
			} `json:"GroupList"`
			Code interface{} `json:"Code"`
			Type interface{} `json:"Type"`
			URL  interface{} `json:"Url"`
			Info interface{} `json:"Info"`
		} `json:"CourseList"`
		DateTime time.Time `json:"DateTime"`
	} `json:"DayList"`
}

Calendar struct

type Client

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

Client struct

func NewClient

func NewClient(token string, url *string) *Client

NewClient constructor

func (*Client) GetGroupPlanning

func (c *Client) GetGroupPlanning(groupSlug string) (*Calendar, error)

GetGroupPlanning from Chronos

Jump to

Keyboard shortcuts

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