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.
|
- package remoteUtil
-
- import (
- "github.com/go-resty/resty/v2"
- )
-
- type EvidenceParam struct {
- Url string `json:"url"`
- Type string `json:"type"`
- MemberName string `json:"memberName"`
- ContractAddress string `json:"contractAddress"`
- FunctionName string `json:"functionName"`
- Args []string `json:"args"`
- }
-
- func Evidence(EvidenceParam EvidenceParam) error {
- httpClient := resty.New().R()
- _, err := httpClient.SetHeader("Content-Type", "application/json").
- SetBody(&EvidenceParam).
- Post(EvidenceParam.Url)
- if err != nil {
- return err
- }
- return nil
- }
|