sdk版本:
github.com/Authing/authing-go-sdk v0.3.0
github.com/Authing/authing-golang-sdk/v3 v3.0.2
"github.com/Authing/authing-go-sdk/lib/management"
"github.com/Authing/authing-go-sdk/lib/model"
"github.com/Authing/authing-golang-sdk/v3/dto"
v3 "github.com/Authing/authing-golang-sdk/v3/management
v 0.3.0
client := management.NewClient("user-pool-id", "secret")
resp, err := client.ListUserAuthorizedResources(model.ListUserAuthResourceRequest{
Id: "userid",
Namespace: "namespace",
ResourceType: "MENU",
})
// 有数据返回
v3
client, err := v3.NewManagementClient(&v3.ManagementClientOptions{
AccessKeyId: "ak",
AccessKeySecret: "sk",
})
resp := client.GetUserAuthorizedResources(&dto.GetUserAuthorizedResourcesDto{
UserId: "userid",
Namespace: "namesapce",
ResourceType: "API",
}
// 返回空数据
两个版本的sdk看似兼容,但是v3没有数据返回,这是否是个bug