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 610 B

11 months ago
12345678910111213141516171819202122232425
  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. }
  13. func Evidence(EvidenceParam EvidenceParam) error {
  14. httpClient := resty.New().R()
  15. _, err := httpClient.SetHeader("Content-Type", "application/json").
  16. SetBody(&EvidenceParam).
  17. Post(EvidenceParam.Url)
  18. if err != nil {
  19. return err
  20. }
  21. return nil
  22. }

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.