main.go 785 B

12345678910111213141516171819202122232425262728
  1. package main
  2. func init() {
  3. //devConf := &xnet.DevConf{
  4. // AppKey: "ding8svryas6vm6ze5xh",
  5. // AppSecret: "YF77J3t-bORqtZxNH7-RY8Q3znrgpsZDpTiXDqLj-Ns8XRIDZLn6fIwpukOQ1P1o",
  6. // GetTokenUrl: "https://oapi.dingtalk.com/gettoken",
  7. // GetDeptUserListUrl: "https://oapi.dingtalk.com/topapi/user/listsimple",
  8. // Params: map[string]string{},
  9. // Headers: map[string]string{},
  10. // Cookie: []*http.Cookie{},
  11. // DeptId: 554750022,
  12. //}
  13. //if err := devConf.GetToken(); err != nil {
  14. // log.Fatalln(err)
  15. //}
  16. //
  17. //println(devConf.Token)
  18. //
  19. //deptUserList, _ := devConf.GetDeptUserList()
  20. //fmt.Printf("%v\n", deptUserList)
  21. //workData,_:=core.GetWorkData(30)
  22. //fmt.Printf("%v\n", workData)
  23. }
  24. func main() {
  25. }