loilo

package
v2.0.0-...-d3d1f1d Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Host  = "https://n.loilo.tv"
	Entry = fmt.Sprintf("%s/users/sign_in", Host)
	Home  = fmt.Sprintf("%s/dashboard", Host)
)

Functions

func GenClassListUrl

func GenClassListUrl() string

func GenClassUrl

func GenClassUrl(groupId int) string

func GenStudentExelUrl

func GenStudentExelUrl(internalSchoolId int) string

func GenTeacherExelUrl

func GenTeacherExelUrl(internalSchoolId int) string

func StudentListSheetHeader

func StudentListSheetHeader() []interface{}

func TeacherListSheetHeader

func TeacherListSheetHeader() []interface{}

Types

type ClassInfo

type ClassInfo struct {
	Name     string
	Grade    string
	Code     int
	Start    string
	End      string
	GroupID  int
	Students []StudentInfo
}

type ClassListProps

type ClassListProps struct {
	Messages struct {
	} `json:"messages"`
	ImagePath struct {
		Logo           string `json:"logo"`
		GoogleIcon     string `json:"googleIcon"`
		MicrosoftIcon  string `json:"microsoftIcon"`
		AlertIcon      string `json:"alertIcon"`
		BlueFolderIcon string `json:"blueFolderIcon"`
		NarationIcon   string `json:"narationIcon"`
		PlayIcon       string `json:"playIcon"`
	} `json:"imagePath"`
	Locale      string `json:"locale"`
	CurrentUser struct {
		ID              int    `json:"id"`
		DisplayName     string `json:"displayName"`
		DisplayUserName string `json:"displayUserName"`
		IsAdmin         bool   `json:"isAdmin"`
		IsDistrictAdmin bool   `json:"isDistrictAdmin"`
		SignInType      any    `json:"signInType"`
		School          struct {
			ID   int    `json:"id"`
			Name string `json:"name"`
			Code string `json:"code"`
		} `json:"school"`
	} `json:"currentUser"`
	School struct {
		ID       int    `json:"id"`
		Name     string `json:"name"`
		Timezone string `json:"timezone"`
		Country  string `json:"country"`
	} `json:"school"`
	Pagination struct {
		CurrentPage int `json:"currentPage"`
		TotalPage   int `json:"totalPage"`
	} `json:"pagination"`
	DefaultStartDate  string `json:"defaultStartDate"`
	DefaultEndDate    string `json:"defaultEndDate"`
	CandidateStudents []struct {
		ID   int    `json:"id"`
		Name string `json:"name"`
	} `json:"candidateStudents"`
	UserGroupsByYear []struct {
		Year       any `json:"year"`
		UserGroups []struct {
			ID             int       `json:"id"`
			Name           string    `json:"name"`
			GradeString    string    `json:"gradeString"`
			CodeIsDisabled bool      `json:"codeIsDisabled"`
			Code           string    `json:"code"`
			StartAt        time.Time `json:"startAt"`
			FinishAt       time.Time `json:"finishAt"`
			IsDeleted      bool      `json:"isDeleted"`
		} `json:"userGroups"`
	} `json:"userGroupsByYear"`
	UserGroupsTotal int  `json:"userGroupsTotal"`
	UseReact        bool `json:"useReact"`
}

type ClassProps

type ClassProps struct {
	Messages  struct{} `json:"messages"`
	ImagePath struct {
		Logo           string `json:"logo"`
		GoogleIcon     string `json:"googleIcon"`
		MicrosoftIcon  string `json:"microsoftIcon"`
		AlertIcon      string `json:"alertIcon"`
		BlueFolderIcon string `json:"blueFolderIcon"`
		NarationIcon   string `json:"narationIcon"`
		PlayIcon       string `json:"playIcon"`
	} `json:"imagePath"`
	Locale      string `json:"locale"`
	CurrentUser struct {
		ID              int    `json:"id"`
		DisplayName     string `json:"displayName"`
		DisplayUserName string `json:"displayUserName"`
		IsAdmin         bool   `json:"isAdmin"`
		IsDistrictAdmin bool   `json:"isDistrictAdmin"`
		SignInType      any    `json:"signInType"`
		School          struct {
			ID   int    `json:"id"`
			Name string `json:"name"`
			Code string `json:"code"`
		} `json:"school"`
	} `json:"currentUser"`
	School struct {
		ID       int    `json:"id"`
		Name     string `json:"name"`
		Timezone string `json:"timezone"`
		Country  string `json:"country"`
	} `json:"school"`
	BackPath         string `json:"backPath"`
	DefaultStartDate string `json:"defaultStartDate"`
	DefaultEndDate   string `json:"defaultEndDate"`
	UserGroup        struct {
		ID             int       `json:"id"`
		Name           string    `json:"name"`
		GradeString    string    `json:"gradeString"`
		CodeIsDisabled bool      `json:"codeIsDisabled"`
		Code           string    `json:"code"`
		StartAt        time.Time `json:"startAt"`
		FinishAt       time.Time `json:"finishAt"`
		IsDeleted      bool      `json:"isDeleted"`
	} `json:"userGroup"`
	Pagination struct {
		CurrentPage int `json:"currentPage"`
		TotalPage   int `json:"totalPage"`
	} `json:"pagination"`
	DisplayNamePriority string `json:"displayNamePriority"`
	Students            []struct {
		ID                     int       `json:"id"`
		Username               string    `json:"username"`
		SortKey                string    `json:"sortKey"`
		DisplayName            string    `json:"displayName"`
		GraduatedAt            time.Time `json:"graduatedAt"`
		GoogleEmail            string    `json:"googleEmail"`
		AzurePreferredUsername string    `json:"azurePreferredUsername"`
		PasswordChangeRequired bool      `json:"passwordChangeRequired"`
		SchoolID               int       `json:"schoolId"`
		IsDeleted              bool      `json:"isDeleted"`
	} `json:"students"`
	StudentsTotal       int `json:"studentsTotal"`
	CandidateUserGroups []struct {
		ID       int    `json:"id"`
		Name     string `json:"name"`
		Priority string `json:"priority"`
	} `json:"candidateUserGroups"`
}

type SchoolInfo

type SchoolInfo struct {
	Name             string
	InternalSchoolId int
}

type StudentInfo

type StudentInfo struct {
	Name      string
	Kana      string
	UserId    string
	GoogleSSO string
	MSSSO     string
}

Jump to

Keyboard shortcuts

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