feat: refine proxy export and toolbar layout

This commit is contained in:
LLLLLLiulei
2026-02-05 18:35:00 +08:00
parent ce9a247a9d
commit 0c660f8335
9 changed files with 186 additions and 64 deletions

View File

@@ -259,6 +259,12 @@ func (s *stubAdminService) GetAllProxiesWithAccountCount(ctx context.Context) ([
}
func (s *stubAdminService) GetProxy(ctx context.Context, id int64) (*service.Proxy, error) {
for i := range s.proxies {
proxy := s.proxies[i]
if proxy.ID == id {
return &proxy, nil
}
}
proxy := service.Proxy{ID: id, Name: "proxy", Status: service.StatusActive}
return &proxy, nil
}