You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

BlockChain.go 707 B

11 months ago
11 months ago
10 months ago
11 months ago
123456789101112131415161718192021222324252627
  1. package remoteUtil
  2. import (
  3. "github.com/go-resty/resty/v2"
  4. )
  5. type EvidenceParam struct {
  6. Url string `json:"url"`
  7. Type string `json:"type"`
  8. MemberName string `json:"memberName"`
  9. ContractAddress string `json:"contractAddress"`
  10. FunctionName string `json:"functionName"`
  11. Args []string `json:"args"`
  12. Token string `json:"token"`
  13. }
  14. func Evidence(EvidenceParam EvidenceParam) error {
  15. httpClient := resty.New().R()
  16. _, err := httpClient.SetHeader("Content-Type", "application/json").
  17. SetHeader("Authorization", EvidenceParam.Token).
  18. SetBody(&EvidenceParam.Args).
  19. Post(EvidenceParam.Url)
  20. if err != nil {
  21. return err
  22. }
  23. return nil
  24. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.