feat: 实现管理后台 A3 注册群消息概览与 metrics 门禁

This commit is contained in:
Nixevol
2026-09-30 08:08:08 +08:00
parent 0efcfbb8b6
commit 68e790be60
13 changed files with 1591 additions and 81 deletions
+3 -3
View File
@@ -214,11 +214,11 @@ func TestAPITokenAuthAndRestrictions(t *testing.T) {
t.Fatalf("auth=%v", me["auth"])
}
// 普通管理接口鉴权通过(业务 501)
// 普通管理接口鉴权通过(A3 overview)
res = doReq(t, tokClient, http.MethodGet, base+"/api/admin/overview", "", hdr)
env = decodeEnv(t, res)
if res.StatusCode != http.StatusNotImplemented {
t.Fatalf("overview want 501 got %d %+v", res.StatusCode, env)
if res.StatusCode != http.StatusOK || !env.OK {
t.Fatalf("overview want 200 got %d %+v", res.StatusCode, env)
}
// 禁止 password / tokens