V2RoleDetailRequest.go 532 B

12345678910111213141516171819202122
  1. package v2role_request
  2. import (
  3. "encoding/json"
  4. "git.sxidc.com/student-physical-examination/contract_lock_sdk/http"
  5. )
  6. type V2RoleDetailRequest struct {
  7. // <ext>core:true</ext> 【角色id】角色id
  8. Id string `json:"id,omitempty"`
  9. }
  10. func (obj V2RoleDetailRequest) GetUrl() string {
  11. return "/v2/role/detail"
  12. }
  13. func (obj V2RoleDetailRequest) GetHttpParameter() *http.HttpParameter {
  14. parameter := http.NewPostHttpParameter()
  15. jsonBytes, _ := json.Marshal(obj)
  16. parameter.SetJsonParamer(string(jsonBytes))
  17. return parameter
  18. }