You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 line
898 B

  1. package sso
  2. import (
  3. "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
  4. "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses"
  5. )
  6. type GetUserInfoRequest struct {
  7. *requests.RpcRequest
  8. Token string `position:"Body" field:"token" default:"" `
  9. Ident string `position:"Body" field:"ident" default:"" `
  10. }
  11. type GetUserInfoResponseData struct {
  12. *requests.RpcRequest
  13. User User `json:"user"`
  14. }
  15. type GetUserInfoResponse struct {
  16. *responses.BaseResponse
  17. Data GetUserInfoResponseData `json:"data"`
  18. }
  19. func CreateGetUserInfoRequest() (req *GetUserInfoRequest) {
  20. req = &GetUserInfoRequest{RpcRequest: &requests.RpcRequest{}}
  21. req.InitWithApiInfo(HOST, VERSION, "/api/userSess/getUserInfo")
  22. req.Method = requests.POST
  23. return
  24. }
  25. func CreateGetUserInfoResponse() (response *GetUserInfoResponse) {
  26. response = &GetUserInfoResponse{
  27. BaseResponse: &responses.BaseResponse{},
  28. }
  29. return
  30. }