Documentation ¶
Index ¶
- Constants
- Variables
- func BookBathroom(roomID string)
- func CreateQrcode(content string) string
- func GetBathroomID() string
- func GetHallTicket(account string) error
- func GetHtml() (string, error)
- func GetJSessionID() error
- func GetQrcodeContentFromHtml(html string) string
- func ToBook(id int) bool
- func WsClient(qrcode string) (string, error)
- type BookResp
- type CheckSupplyResp
Constants ¶
View Source
const Banner = `` /* 754-byte string literal not displayed */
Variables ¶
View Source
var BathroomIDList = []string{
"1526", "1525",
"1544", "1543",
"1546", "1545",
"1548", "1547",
"1566", "1565",
}
View Source
var BathroomName = []string{
"鱼山校区-男浴室", "鱼山校区-女浴室",
"北海苑-男浴室", "北海苑-女浴室",
"东海苑-男浴室", "东海苑-女浴室",
"南海苑-男浴室", "南海苑-女浴室",
"浮山校区-男浴室", "浮山校区-女浴室",
}
View Source
var HallTicket, AspNetSession, JSessionID string
Functions ¶
func BookBathroom ¶
func BookBathroom(roomID string)
func GetBathroomID ¶
func GetBathroomID() string
func GetHallTicket ¶
func GetJSessionID ¶
func GetJSessionID() error
Types ¶
type CheckSupplyResp ¶
type CheckSupplyResp struct { Object []struct { PRICE string `json:"PRICE"` SURPLUS int `json:"SURPLUS"` USINGNUM int `json:"USING_NUM"` SERVICEID string `json:"SERVICEID"` ID int `json:"ID"` REMARK string `json:"REMARK"` TIMENO string `json:"TIME_NO"` STATUS int `json:"STATUS"` ISOVER int `json:"ISOVER"` ALLCOUNT int `json:"ALL_COUNT"` } `json:"object"` Result string `json:"result"` }
检查浴室剩余数量的相应
Click to show internal directories.
Click to hide internal directories.