api_tool.go 461 B

123456789101112131415161718192021
  1. package services
  2. import (
  3. "fmt"
  4. "github.com/rdlucklib/rdluck_tools/http"
  5. )
  6. const (
  7. RefreshUrl = "http://127.0.0.1:7005/mysteel_chemical/refresh"
  8. )
  9. func MysteelChemicalRefresh(filePath string) {
  10. var refreshUrl string
  11. refreshUrl = RefreshUrl + "?FilePath=" + filePath
  12. body, err := http.Get(refreshUrl)
  13. if err != nil {
  14. fmt.Println("MysteelChemicalRefresh Err:" + err.Error())
  15. return
  16. }
  17. fmt.Println("MysteelChemicalRefresh Result:" + string(body))
  18. }