github.com/chnsz/golangsdk@v0.0.0-20240506093406-85a3fbfa605b/openstack/meeting/v2/auth/results.go (about) 1 package auth 2 3 type AuthResp struct { 4 // Token string. 5 AccessToken string `json:"accessToken"` 6 // Login account type. 7 // 72: (fixed) API call type. 8 ClientType int `json:"clientType"` 9 // The creation timestamp of the token, in milliseconds. 10 CreateTime int `json:"createTime"` 11 // The number of days the password is valid. 12 DaysPwdAvailable int `json:"daysPwdAvailable"` 13 // Token's expiration timestamp, in seconds. 14 ExpireTime int `json:"expireTime"` 15 // Whether to log in for the first time. 16 // The first login means that the password has not been changed. When logging in for the first time, the system will remind the user that the password needs to be changed. 17 // Default: false. 18 FirstLogin bool `json:"firstLogin"` 19 // Proxy authentication information. 20 ProxyToken ProxyToken `json:"proxyToken"` 21 // Whether the password has expired. 22 // Default: false. 23 PwdExpired bool `json:"pwdExpired"` 24 // The creation timestamp of the Refresh Token, in milliseconds. 25 RefreshCreateTime int `json:"refreshCreateTime"` 26 // The expiration timestamp of the Refresh Token, in seconds. 27 RefreshExpireTime int `json:"refreshExpireTime"` 28 // Refresh Token string. 29 RefreshToken string `json:"refreshToken"` 30 // The validity period of the Refresh Token, in seconds. 31 RefreshValidPeriod int `json:"refreshValidPeriod"` 32 // User IP. 33 TokenIp string `json:"tokenIp"` 34 // Token type. 35 // 0: User Access Token 36 // 1: Conference control Token 37 // 2: One-time Token 38 TokenType int `json:"tokenType"` 39 // User authentication information. 40 User UserInfo `json:"user"` 41 // The valid duration of the token, in seconds. 42 ValidPeriod int `json:"validPeriod"` 43 // Preempt login ID. 44 // 0: non-preemptive 45 // 1: preemption is not enabled 46 ForceLoginInd int `json:"forceLoginInd"` 47 // Whether to delay the deletion of the state. 48 DelayDelete bool `json:"delayDelete"` 49 } 50 51 type ProxyToken struct { 52 // The short token string of the proxy authentication server. 53 AccessToken string `json:"accessToken"` 54 // Whether to enable secondary routing. 55 EnableRerouting bool `json:"enableRerouting"` 56 // The long token string of the proxy authentication server. 57 LongAccessToken string `json:"longAccessToken"` 58 // Middle-End intranet address. 59 MiddleEndInnerUrl string `json:"middleEndInnerUrl"` 60 // Middle-End address。 61 MiddleEndUrl string `json:"middleEndUrl"` 62 // Token valid duration, unit: seconds. 63 ValidPeriod int `json:"validPeriod"` 64 } 65 66 type UserInfo struct { 67 // Administrator type. 68 // 0: default administrator 69 // 1: Ordinary administrator 70 // 2: Non-administrators, that is, ordinary enterprise members, valid when "userType" is "2". 71 AdminType int `json:"adminType"` 72 // Application ID. 73 AppId string `json:"appId"` 74 // HUAWEI CLOUD account ID. 75 CloudUserId string `json:"cloudUserId"` 76 // business domain name. 77 CompanyDomain string `json:"companyDomain"` 78 // The enterprise ID to which the user belongs. 79 CompanyId string `json:"companyId"` 80 // Enterprise plan type. 81 // 0: Enterprise Edition; 82 // 5: free version; 83 // 6: Professional Edition. 84 CorpType int `json:"corpType"` 85 // Identifies whether it is a free trial user. 86 FreeUser bool `json:"freeUser"` 87 // Identifies whether it is a grayscale user. 88 GrayUser bool `json:"grayUser"` 89 // Avatar link. 90 HeadPictureUrl string `json:"headPictureUrl"` 91 // Indicates whether to bind the mobile phone. 92 IsBindPhone bool `json:"isBindPhone"` 93 // User name. 94 Name string `json:"name"` 95 // User name in English. 96 NameEn string `json:"nameEn"` 97 // The number corresponds to HA1. 98 NumberHA1 string `json:"numberHA1"` 99 // User alias. 100 Alias string `json:"alias1"` 101 // Paid user machine account, used for smart screen login. 102 PaidAccount string `json:"paidAccount"` 103 // Paid user machine account password, used for smart screen login. 104 PaidPassword string `json:"paidPassword"` 105 // Machine password, used for smart screen login. 106 Password string `json:"password"` 107 // Local authentication. 108 Realm string `json:"realm"` 109 // The SIP number associated with the user. 110 ServiceAccount string `json:"serviceAccount"` 111 // The SP ID of the enterprise where the user belongs. 112 SpId string `json:"spId"` 113 // user status. 114 // 0: normal; 115 // 1: Disable. 116 Status int `json:"status"` 117 // Third-party user accounts. 118 ThirdAccount string `json:"thirdAccount"` 119 // tr069 account number. 120 Tr069Account string `json:"tr069Account"` 121 // HUAWEI CLOUD conference account. 122 UcloginAccount string `json:"ucloginAccount"` 123 // User UUID. 124 UserId string `json:"userId"` 125 // user type. 126 // 1: SP management user 127 // 2: Enterprise users 128 // 3: Free registered user 129 // 10: Enterprise device users 130 // 11: anonymous user 131 // 12: Smart screen users 132 //13: IdeaHub user 133 // 14: Electronic whiteboard user 134 UserType int `json:"userType"` 135 // Smart screen device ID. 136 VisionAccount string `json:"visionAccount"` 137 // Identifies whether it is a WeLink user. 138 WeLinkUser bool `json:"weLinkUser"` 139 }