@@ -332,7 +332,7 @@ func (client *AuthenticationClient) GetNewAccessTokenByRefreshToken(refreshToken
332332 return string (resp .Body ), err
333333}
334334
335- func (client * AuthenticationClient ) IntrospectToken (token string ) (* dto.IntrospectTokenResult , error ) {
335+ func (client * AuthenticationClient ) IntrospectToken (token string ) (* dto.TokenIntrospectResponse , error ) {
336336 url := client .options .AppHost + fmt .Sprintf ("/%s/token/introspection" , client .options .Protocol )
337337 header := map [string ]string {
338338 "Content-Type" : "application/x-www-form-urlencoded" ,
@@ -357,7 +357,7 @@ func (client *AuthenticationClient) IntrospectToken(token string) (*dto.Introspe
357357 ReqDto : body ,
358358 })
359359 println (string (resp .Body ))
360- var response dto.IntrospectTokenResult
360+ var response dto.TokenIntrospectResponse
361361 if err != nil {
362362 return nil , err
363363 }
@@ -2165,3 +2165,42 @@ func (client *AuthenticationClient) GetUserAuthorizedResourcesList() *dto.GetUse
21652165}
21662166
21672167// ==== AUTO GENERATED AUTHENTICATION METHODS END ====
2168+ /*
2169+ * @summary 获取用户指定资源权限列表
2170+ * @description 获取用户指定资源的权限列表,用户获取某个应用下指定资源的权限列表。
2171+ * @returns GetUserAuthResourcePermissionListRespDto
2172+ */
2173+ func (client * AuthenticationClient ) getUserAuthResourcePermissionList (reqDto * dto.GetUserAuthResourcePermissionListDto ) * dto.GetUserAuthResourcePermissionListRespDto {
2174+ b , err := client .SendHttpRequest ("/api/v3/get-user-auth-resource-permission-list" , fasthttp .MethodPost , reqDto )
2175+ var response dto.GetUserAuthResourcePermissionListRespDto
2176+ if err != nil {
2177+ fmt .Println (err )
2178+ return nil
2179+ }
2180+ err = json .Unmarshal (b , & response )
2181+ if err != nil {
2182+ fmt .Println (err )
2183+ return nil
2184+ }
2185+ return & response
2186+ }
2187+
2188+ /*
2189+ * @summary 获取用户授权资源的结构列表
2190+ * @description 获取用户授权的资源列表,用户获取某个应用下的某个资源所授权的结构列表,通过不同的资源类型返回对应资源的授权列表。
2191+ * @returns GetUserAuthResourceStructRespDto
2192+ */
2193+ func (client * AuthenticationClient ) getUserAuthResourceStruct (reqDto * dto.GetUserAuthResourceStructDto ) * dto.GetUserAuthResourceStructRespDto {
2194+ b , err := client .SendHttpRequest ("/api/v3/get-user-auth-resource-struct" , fasthttp .MethodPost , reqDto )
2195+ var response dto.GetUserAuthResourceStructRespDto
2196+ if err != nil {
2197+ fmt .Println (err )
2198+ return nil
2199+ }
2200+ err = json .Unmarshal (b , & response )
2201+ if err != nil {
2202+ fmt .Println (err )
2203+ return nil
2204+ }
2205+ return & response
2206+ }
0 commit comments