Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig = `` /* 784-byte string literal not displayed */
默认配置文件
Functions ¶
Types ¶
type CasLogin ¶ added in v1.4.1
type CasLogin struct {
Username string `json:"username"`
Password string `json:"password"`
DingDingQrLoginEnabled string `json:"dingDingQrLoginEnabled"`
Level string `json:"level"`
}
CasLogin CAS 登录配置
type Config ¶
type Config struct {
CasLogin `json:"cas_login"`
NewjwLogin `json:"newjw_login"`
Cookies `json:"cookies"`
Time `json:"time"`
Course *orderedmap.OrderedMap `json:"course"`
WaitCourse `json:"wait_course"`
SmtpEmail `json:"smtp_email"`
StartTime string `json:"start_time"`
ClientBodyConfigEnabled string `json:"ClientBodyConfigEnabled,omitempty"`
CrossGradeEnabled string `json:"CrossGradeEnabled,omitempty"`
}
Config 配置文件结构体
type Cookies ¶ added in v1.4.1
type Cookies struct {
JSESSIONID string `json:"JSESSIONID"`
Route string `json:"route"`
Enabled string `json:"enabled"`
}
Cookies Cookie 配置
type NewjwLogin ¶ added in v1.4.1
type NewjwLogin struct {
Username string `json:"username"`
Password string `json:"password"`
Level string `json:"level"`
}
NewjwLogin 新教务登录配置
type SmtpEmail ¶ added in v1.4.1
type SmtpEmail struct {
Host string `json:"host"`
Username string `json:"username"`
Password string `json:"password"`
To string `json:"to"`
Enabled string `json:"enabled"`
}
SmtpEmail SMTP 邮件配置
type WaitCourse ¶ added in v1.4.1
WaitCourse 蹲课配置
Click to show internal directories.
Click to hide internal directories.