ContactPersonRequest.go 739 B

1234567891011121314151617181920212223242526
  1. package contract_request
  2. import (
  3. "encoding/json"
  4. "git.sxidc.com/student-physical-examination/contract_lock_sdk/http"
  5. )
  6. type ContactPersonRequest struct {
  7. // 【联系人姓名】联系人姓名
  8. ContactName string `json:"contactName"`
  9. // 【联系人联系方式】联系人联系方式:手机号、电子邮箱
  10. Contact string `json:"contact"`
  11. // 【联系人编号】联系人编号
  12. ContactNo string `json:"contactNo,omitempty"`
  13. }
  14. func (obj ContactPersonRequest) GetUrl() string {
  15. return "/contact/person"
  16. }
  17. func (obj ContactPersonRequest) GetHttpParameter() *http.HttpParameter {
  18. parameter := http.NewPostHttpParameter()
  19. jsonBytes, _ := json.Marshal(obj)
  20. parameter.SetJsonParamer(string(jsonBytes))
  21. return parameter
  22. }