UserLogoutUrlRequest.go 2.2 KB

123456789101112131415161718192021222324252627282930313233
  1. package user_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 UserLogoutUrlRequest struct {
  8. User *common.UserInfoRequest `json:"user"`
  9. // <ext>core:true</ext> 【完成注销跳转页面地址】完成注销跳转页面地址 【作用】 完成注销时会跳转至传入地址,未传值时会停留在当前页面
  10. SuccessPage string `json:"successPage,omitempty"`
  11. // <ext>core:true</ext> 【取消注销跳转页面地址】取消注销跳转页面地址 【作用】 取消注销时会跳转至传入地址,未传值时会停留在当前页面
  12. EndPage string `json:"endPage,omitempty"`
  13. // <ext>core:true</ext> 【链接过期时间】链接过期时间 【作用】 1、用于设置获取到的链接在多长时间后过期,单位:秒 2、当该参数不传值时,其有效期将被设置为 “管理控制台-设置-开放平台-接口页面有效期配置-接口页面默认有效期“对应的时长
  14. ExpireTime *int64 `json:"expireTime,omitempty"`
  15. PageStyle *common.PageStyle `json:"pageStyle,omitempty"`
  16. // <ext>core:true</ext> 【页面语言】页面语言 【传参】 取值范围:ZH_CN(中文),EN_US(英文),JP(日文);不传值默认为:ZH_CN(中文)。
  17. Language string `json:"language,omitempty"`
  18. // <ext>core:true</ext> 【移动端页面导航头部】移动端页面导航头部 【作用】 1、移动端内嵌页面默认带有头部导航区域,且区域内提供返回按钮,嵌入其他app时会与app自带的导航头部区域航重复 2、可通过本参数控制签入移动端页面时是否提供头部导航区域 【传参】 取值范围:true(隐藏导航头部),false(显示导航头部);不传值默认为:false(显示导航头部)。
  19. HideHeader *bool `json:"hideHeader,omitempty"`
  20. }
  21. func (obj UserLogoutUrlRequest) GetUrl() string {
  22. return "/user/logout/url"
  23. }
  24. func (obj UserLogoutUrlRequest) GetHttpParameter() *http.HttpParameter {
  25. parameter := http.NewPostHttpParameter()
  26. jsonBytes, _ := json.Marshal(obj)
  27. parameter.SetJsonParamer(string(jsonBytes))
  28. return parameter
  29. }