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