Commit c61a57f4 authored by Eric's avatar Eric

modify service

parent 22805668
package service
import (
"cocogo/pkg/logger"
"cocogo/pkg/sdk"
"fmt"
)
func GetSystemUserAssetAuthInfo(systemUserID, assetID string) (info sdk.SystemUserAuthInfo) {
......@@ -9,5 +11,11 @@ func GetSystemUserAssetAuthInfo(systemUserID, assetID string) (info sdk.SystemUs
}
func GetSystemUserAuthInfo(systemUserID string) (info sdk.SystemUserAuthInfo) {
Url := fmt.Sprintf(sdk.SystemUserAuthInfoURL, systemUserID)
err := Client.Get(Url, &info, true)
if err != nil {
logger.Error("Get system user auth info failed")
}
return
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment