diff --git a/src/main/resources/static/advanced.html b/src/main/resources/static/advanced.html index 75ec029..470db8d 100644 --- a/src/main/resources/static/advanced.html +++ b/src/main/resources/static/advanced.html @@ -65,6 +65,7 @@

🧪 实验任务卡(高级模块)

+
\ No newline at end of file diff --git a/src/main/resources/static/api.html b/src/main/resources/static/api.html index ea6d0f8..fe2c43a 100644 --- a/src/main/resources/static/api.html +++ b/src/main/resources/static/api.html @@ -50,6 +50,7 @@ .json-input { width: 100%; min-height: 100px; padding: 10px; border: 1px solid #ddd; border-radius: 5px; font-family: monospace; font-size: 0.9em; } .profile-banner { background:#fff7e6;border-left:4px solid #fa8c16;padding:12px 14px;border-radius:8px;margin-bottom:18px; color:#874d00; } + .tools { margin: 10px 0 16px; } @@ -70,6 +71,9 @@
正在读取 profile...
+
+ +
👥 用户 API
@@ -262,6 +266,16 @@ } } + async function copyCurl() { + const curl = `curl -X GET "${window.location.origin}/api/users"`; + try { + await navigator.clipboard.writeText(curl); + alert('已复制: ' + curl); + } catch (e) { + alert('复制失败,请手动复制: ' + curl); + } + } + async function testApi(method, url, body, resultId) { const resultDiv = document.getElementById(resultId); resultDiv.classList.add('show');