diff --git a/server/feishu-sync/internal/logic/syncfeishugroupslogic.go b/server/feishu-sync/internal/logic/syncfeishugroupslogic.go index c37129f2..63adddde 100644 --- a/server/feishu-sync/internal/logic/syncfeishugroupslogic.go +++ b/server/feishu-sync/internal/logic/syncfeishugroupslogic.go @@ -1,13 +1,9 @@ package logic import ( - "fmt" + "context" "fusenapi/utils/auth" "fusenapi/utils/basic" - "fusenapi/utils/feishu" - "log" - - "context" "fusenapi/server/feishu-sync/internal/svc" "fusenapi/server/feishu-sync/internal/types" @@ -34,16 +30,6 @@ func NewSyncFeiShuGroupsLogic(ctx context.Context, svcCtx *svc.ServiceContext) * // } func (l *SyncFeiShuGroupsLogic) SyncFeiShuGroups(req *types.Request, userinfo *auth.UserInfo) (resp *basic.Response) { - feishuApi := &feishu.FeiShuApi{ - AppId: l.svcCtx.Config.FeiShu.AppId, - AppSecret: l.svcCtx.Config.FeiShu.AppSecret, - ApiHost: l.svcCtx.Config.FeiShu.ApiHost, - } - token, err := feishuApi.GetTenantAccessToken() - if err != nil { - log.Fatalln(err) - } - fmt.Println("token 信息:", token) return resp.SetStatus(basic.CodeOK) }