CustomConfigQueryRequest.go 740 B

1234567891011121314151617181920212223
  1. package others_request
  2. import (
  3. "encoding/json"
  4. "git.sxidc.com/student-physical-examination/contract_lock_sdk/http"
  5. "git.sxidc.com/student-physical-examination/contract_lock_sdk/model/common"
  6. )
  7. type CustomConfigQueryRequest struct {
  8. CustomParamSelectRequest *common.CustomParamSelectRequest `json:"customParamSelectRequest,omitempty"`
  9. Department *common.DepartmentRequest `json:"department,omitempty"`
  10. }
  11. func (obj CustomConfigQueryRequest) GetUrl() string {
  12. return "/custom/config/query"
  13. }
  14. func (obj CustomConfigQueryRequest) GetHttpParameter() *http.HttpParameter {
  15. parameter := http.NewPostHttpParameter()
  16. jsonBytes, _ := json.Marshal(obj)
  17. parameter.SetJsonParamer(string(jsonBytes))
  18. return parameter
  19. }