utils

package
v0.0.0-...-b3ea26e Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atoi

func Atoi(s string) int

func DoPostRequest

func DoPostRequest(url string, v interface{}) map[string]interface{}

func NeuDayToRecordDay

func NeuDayToRecordDay(d string) string

func NeuTimeToRecordTime

func NeuTimeToRecordTime(t string) string

func RecordDayToNeuDay

func RecordDayToNeuDay(d string) string

func RecordTimeToNeuTime

func RecordTimeToNeuTime(t string) string

func SwitchTimeToCtime

func SwitchTimeToCtime(t time.Time) int

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 Opendatelist struct {
	Labid   string `json:"labid"`
	Lesson  string `json:"lesson"`
	Usedate string `json:"usedate"`
}

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"`
}

Jump to

Keyboard shortcuts

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