Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessToken ¶
Types ¶
type CurrentCourse ¶
type CurrentCourse struct {
Id string `json:"id"`
Pid string `json:"pid"`
Type string `json:"type"`
StartTime string `json:"startTime"`
EndTime string `json:"endTime"`
Title string `json:"title"`
Cover string `json:"cover"`
UriType string `json:"uriType"`
Uri string `json:"uri"`
Content string `json:"content"`
Status string `json:"s"` // status
Creator string `json:"creator"`
CreateTime string `json:"createTime"`
Users string `json:"users"`
ClickTimes string `json:"clickTimes"`
IsTop string `json:"isTop"`
}
type CurrentCourseResp ¶
type CurrentCourseResp struct {
Status int `json:"status"`
Message string `json:"message"`
Result CurrentCourse `json:"result"`
}
type LastInfoDetail ¶
type LastInfoDetail struct {
Nid string `json:"nid"`
CardNo string `json:"cardNo"`
SubOrg string `json:"subOrg"`
Nodes []LastInfoNode `json:"nodes"`
}
type LastInfoNode ¶
type LastInfoResp ¶
type LastInfoResp struct {
Status int `json:"status"`
Message string `json:"message"`
Result LastInfoDetail `json:"result"`
}
type SignInRecordResp ¶
type SignInRecordResp struct {
Status int `json:"status"`
Message string `json:"message"`
Result []string `json:"result"`
}
func SignInRecord ¶
func SignInRecord(accessToken, date string) (*SignInRecordResp, error)
SignInRecord 获取指定月份签到记录 date的格式2006-01 result是时间数组格式为2006-01-02
type SignInResp ¶
type SignInResp struct {
Status int `json:"status"`
Message string `json:"message"`
Result bool `json:"result"`
}
func SignIn ¶
func SignIn(accessToken string) (*SignInResp, error)
SignIn resp中result为true时表示当天已打卡且当此打卡成功
type StudyRecordsResp ¶
type StudyRecordsResp struct {
Status int `json:"status"`
Message string `json:"message"`
Result struct {
List []struct {
Id string `json:"id"`
Title string `json:"title"`
List []struct {
Id string `json:"id"`
CreateTime string `json:"createTime"`
CardNo string `json:"cardNo"`
SubOrg interface{} `json:"subOrg"`
Nid string `json:"nid"`
} `json:"list"`
} `json:"list"`
PagedInfo struct {
PageSize int `json:"pageSize"`
PageNum int `json:"pageNum"`
Total string `json:"total"`
} `json:"pagedInfo"`
} `json:"result"`
}
func StudyRecords ¶
func StudyRecords(accessToken string, pageSize, pageNum uint, desc ...string) (*StudyRecordsResp, error)
type StudyResp ¶
type StudyResp struct {
Status int `json:"status"`
Message string `json:"message"`
Result struct {
Openid string `json:"openid"`
SubOrg string `json:"subOrg"`
CardNo string `json:"cardNo"`
Id string `json:"id"`
UserIp string `json:"userIp"`
Nid string `json:"nid"`
CreateTime string `json:"createTime"`
} `json:"result"`
Debug interface{} `json:"debug"`
}
Click to show internal directories.
Click to hide internal directories.