main.go 886 B

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