SealTimestampimageRequest.go 1.3 KB

1234567891011121314151617181920212223242526
  1. package seal_request
  2. import (
  3. "git.sxidc.com/student-physical-examination/contract_lock_sdk/http"
  4. )
  5. type SealTimestampimageRequest struct {
  6. // <ext>core:true</ext> 【返回的图片格式】返回的图片格式 【传参】 取值范围:png,jpg;不传值默认为:png。
  7. ImageFormat string `json:"imageFormat,omitempty"`
  8. // <ext>core:true</ext> 【返回的图片宽度】返回的图片宽度 【传参】 1、单位:像素。 2、宽度与高度都未传时,则按照默认大小返回图片。 3、若仅传宽度,没传高度,则按照传入的宽度等比例缩放。
  9. Width *int64 `json:"width,omitempty"`
  10. // <ext>core:true</ext> 【返回的图片高度】返回的图片高度 【传参】 1、单位:像素。 2、宽度与高度都未传时,则按照默认大小返回图片。 3、若仅传高度,没传宽度,则按照传入的高度等比例缩放。
  11. Height *int64 `json:"height,omitempty"`
  12. }
  13. func (obj SealTimestampimageRequest) GetUrl() string {
  14. return "/seal/timestampimage"
  15. }
  16. func (obj SealTimestampimageRequest) GetHttpParameter() *http.HttpParameter {
  17. parameter := http.NewGetHttpParameter()
  18. parameter.AddParam("imageFormat", obj.ImageFormat)
  19. parameter.AddParam("width", obj.Width)
  20. parameter.AddParam("height", obj.Height)
  21. return parameter
  22. }