Documentation ¶
Index ¶
- func Atoi(s string) int
- func DoPostRequest(url string, v interface{}) map[string]interface{}
- func NeuDayToRecordDay(d string) string
- func NeuTimeToRecordTime(t string) string
- func RecordDayToNeuDay(d string) string
- func RecordTimeToNeuTime(t string) string
- func SwitchTimeToCtime(t time.Time) int
- type LabList
- type NeuLabList
- type NeuOpen
- type NeuOpenOrder
- type NeuScheduleOrder
- type Opendatelist
- type Schedule
- type SubmitOpenOrder
- type UpdateOpenOrder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoPostRequest ¶
func NeuDayToRecordDay ¶
func NeuTimeToRecordTime ¶
func RecordDayToNeuDay ¶
func RecordTimeToNeuTime ¶
func SwitchTimeToCtime ¶
SwitchTimeToCtime give now time return class time example: now time is 16:41 return 4
Types ¶
type LabList ¶
type LabList struct { Area int `json:"area"` Covercourse string `json:"covercourse"` Labid string `json:"labid"` Labname string `json:"labname"` Labtype string `json:"labtype"` Labtypeid string `json:"labtypeid"` Mobile string `json:"mobile"` Openstatus string `json:"openstatus"` Photofile string `json:"photofile"` Seatnum int `json:"seatnum"` Tel string `json:"tel"` Typedesc string `json:"typedesc"` Userid string `json:"userid"` Username string `json:"username"` Usesea string `json:"usesea"` }
type NeuLabList ¶
type NeuLabList struct {
Lablist []LabList `json:"lablist"`
}
func DoGetLabList ¶
func DoGetLabList(url string) (NeuLabList, error)
type NeuOpen ¶
type NeuOpen struct { Content string `json:"content"` Expend string `json:"expend"` Explain string `json:"explain"` Guideteacher string `json:"guideteacher"` Labid string `json:"labid"` Lesson string `json:"lesson"` Note string `json:"note"` Openid int `json:"openid"` Predate string `json:"predate"` Remarks string `json:"remarks"` Status int `json:"status"` Userid string `json:"userid"` Usernum int `json:"usernum"` Opentypeid string `json:"opentypeid"` Opendatelist []Opendatelist `json:"opendatelist"` }
type NeuOpenOrder ¶
type NeuOpenOrder struct {
Labopenlist []NeuOpen `json:"labopenlist"`
}
func DoGetRequestUseOpen ¶
func DoGetRequestUseOpen(url string) (NeuOpenOrder, error)
type NeuScheduleOrder ¶
type NeuScheduleOrder struct {
Labschedulelist []Schedule `json:"labschedulelist"`
}
func DoGetRequestUseSchedule ¶
func DoGetRequestUseSchedule(url string) (NeuScheduleOrder, error)
type Opendatelist ¶
type Schedule ¶
type Schedule struct { Labid string `json:"labid"` Lesson string `json:"lesson"` Usedate string `json:"usedate"` Usestatus string `json:"usestatus"` Usestatusname string `json:"usestatusname"` Openid string `json:"openid"` Userid string `json:"userid"` Content string `json:"content"` Usernum int `json:"usernum"` Status int `json:"status"` Note string `json:"note"` Guideteacher string `json:"guideteacher"` Explain string `json:"explain"` Opentypeid string `json:"opentypeid"` Expend string `json:"expend"` Remarks string `json:"remarks"` }
type SubmitOpenOrder ¶
type SubmitOpenOrder struct { Userid string `json:"userid"` Content string `json:"content"` Usernum int `json:"usernum"` Labid string `json:"labid"` Guideteacher string `json:"guideteacher"` Explain string `json:"explain"` Opentypeid string `json:"opentypeid"` //1 大创/竞赛项目 2 毕业设计项目 3 课程实验项目 4 教师科研项目 5 其他 Expend int `json:"expend"` Remarks string `json:"remarks"` Orderdate []string `json:"orderdate"` }
type UpdateOpenOrder ¶
type UpdateOpenOrder struct { Userid string `json:"userid"` Openid int `json:"openid"` Content string `json:"content"` Usernum int `json:"usernum"` Labid string `json:"labid"` Guideteacher string `json:"guideteacher"` Explain string `json:"explain"` Opentypeid string `json:"opentypeid"` //1 大创/竞赛项目 2 毕业设计项目 3 课程实验项目 4 教师科研项目 5 其他 Expend int `json:"expend"` Remarks string `json:"remarks"` Orderdate []string `json:"orderdate"` }
Click to show internal directories.
Click to hide internal directories.