fix(settings): 仅展示只读DWS凭证状态
build / build (push) Successful in 1m10s

This commit is contained in:
姚章浩
2026-10-27 09:56:19 +08:00
parent 5b6e154459
commit f0b12412a1
8 changed files with 149 additions and 32 deletions
+4
View File
@@ -33,6 +33,10 @@ import (
// (见 compose.yaml 的 /data/dws 与文件型 keychain 挂载)——凭据只有一份。
type dingtalkSourceLister struct{}
func (dingtalkSourceLister) ReadDWSMetadata(ctx context.Context) (dingtalkdiscovery.CredentialStatus, error) {
return dingtalkdiscovery.ReadCredentialStatus(ctx, dingtalkdiscovery.ExecRunner{})
}
func (dingtalkSourceLister) ListAvailableDingtalkSources(ctx context.Context) (dingtalkdiscovery.Result, error) {
return dingtalkdiscovery.Discover(ctx, dingtalkdiscovery.ExecRunner{})
}