Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

dreamer2q/hdu-health-checkin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HDU Health CheckIn & Request For A Leave

This Repo only contains a go package && a demo, which means you have to code for yourself

If you cannot code, there is nothing for you here

A go package providing auto checkin ability for hduers.

Note

This package has timeliness, and cannot guarantee its functionality.

Setting Up

  1. GET AccessToken

open this link to get your access token

Or, you could get it by any other means.

  1. Config YOUR PERSONAL && Answer Information

check province.json5 to get the location code

client := checkin.New(checkin.Config{
StaffID:     "your-staff-id",
StaffName:   "your-real-name",
//YOUR **LOCATION**
Province:    "000000",
City:        "000000",
Country:     "000000",
AccessToken: "token xxxx-xxxxxx-xxxxxx-xxxxxxx-xx",
})
  1. Fill YOUR ANSWER form
    answer = checkin.Answer{
"ques1":  "健康良好",
"ques2":  "正常在家",
"ques3":  nil,
"ques4":  "否",
"ques5":  "否",
"ques6":  "",
"ques7":  nil,
"ques77": nil,
"ques8":  nil,
"ques88": nil,
"ques9":  nil,
"ques10": nil,
"ques11": nil,
"ques12": nil,
"ques13": nil,
"ques14": nil,
"ques15": "否",
"ques16": "否",
"ques17": "无新冠肺炎确诊或疑似",
"ques18": "37度以下",
"ques19": nil,
"ques20": "绿码",
"ques21": "否",
"ques22": "否",
"ques23": "否",
"carTo": []string{
//Province
"000000",
//City
"000000",
//Country
"000000",
},
}
  1. See main.go for more details

LICENSE

MIT

About

aotumatic checkin your hdu-health-check

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages