IdentityAuthModeRequest.go 679 B

12345678910111213141516171819202122
  1. package identity_request
  2. import (
  3. "encoding/json"
  4. "git.sxidc.com/student-physical-examination/contract_lock_sdk/http"
  5. )
  6. type IdentityAuthModeRequest struct {
  7. // 【身份核验方式】身份核验方式 【作用】 身份核验方式标识 【传参方式】 字符串 【特殊说明】 此处参数值固定为Authorization
  8. Type_ string `json:"type,omitempty"`
  9. }
  10. func (obj IdentityAuthModeRequest) GetUrl() string {
  11. return "/identity/auth/mode"
  12. }
  13. func (obj IdentityAuthModeRequest) GetHttpParameter() *http.HttpParameter {
  14. parameter := http.NewPostHttpParameter()
  15. jsonBytes, _ := json.Marshal(obj)
  16. parameter.SetJsonParamer(string(jsonBytes))
  17. return parameter
  18. }