types.go 773 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
package middleware

// SSOResponse represents the response structure from SSO service
type SSOResponse struct {
	Code    string   `json:"code"`
	Message string   `json:"message"`
	Data    UserInfo `json:"data"`
}

// UserInfo represents the user information in SSO response
type UserInfo struct {
	UserID          string      `json:"userID"`
	UserName        string      `json:"userName"`
	Email           string      `json:"email"`
	Mobile          string      `json:"mobile"`
	AccountID       string      `json:"accountID"`
	IsEnableConsole int         `json:"isEnableConsole"`
	IsEnableProgram int         `json:"isEnableProgram"`
	IsRoot          int         `json:"isRoot"`
	Type            string      `json:"type"`
	OtherInfos      interface{} `json:"otherInfos"`
}