userInfo.go 353 B

123456789101112131415161718192021
  1. package http_model
  2. type UserInfoRequest struct {
  3. Token string
  4. }
  5. type UserInfoResponse struct {
  6. User string
  7. Username string
  8. Role string
  9. }
  10. func NewUserInfoRequest() *UserInfoRequest {
  11. return new(UserInfoRequest)
  12. }
  13. func NewUserInfoResponse() *CommonResponse {
  14. resp := new(CommonResponse)
  15. resp.Data = new(UserInfoResponse)
  16. return resp
  17. }