MobilesealDesRecordResultRequest.go 926 B

1234567891011121314151617181920212223242526
  1. package others_request
  2. import (
  3. "encoding/json"
  4. "git.sxidc.com/student-physical-examination/contract_lock_sdk/http"
  5. )
  6. type MobilesealDesRecordResultRequest struct {
  7. // 【本次加/解密任务id】本次加/解密任务id
  8. DesSid string `json:"desSid"`
  9. // 【成功/失败】成功/失败 【传参】 取值范围:true(成功),false(失败)
  10. Result string `json:"result"`
  11. // 【失败原因】失败原因 【传参】 1.解密失败后可传入,辅助扫码用户查看对应失败原因; 2.成功时传入不生效
  12. FailReason string `json:"failReason,omitempty"`
  13. }
  14. func (obj MobilesealDesRecordResultRequest) GetUrl() string {
  15. return "/mobileseal/des/record/result"
  16. }
  17. func (obj MobilesealDesRecordResultRequest) GetHttpParameter() *http.HttpParameter {
  18. parameter := http.NewPostHttpParameter()
  19. jsonBytes, _ := json.Marshal(obj)
  20. parameter.SetJsonParamer(string(jsonBytes))
  21. return parameter
  22. }