fix: harden auth flows and align api contracts

This commit is contained in:
Your Name
2026-05-30 21:29:24 +08:00
parent 7ad65a0138
commit a332917142
50 changed files with 23594 additions and 723 deletions

View File

@@ -663,7 +663,7 @@ func TestPermissionHandler_DeletePermission_Success(t *testing.T) {
// If creation succeeded, try to delete
if permID > 0 {
resp2, _ := doDelete(server.URL + "/api/v1/permissions/" + strconv.Itoa(permID), token)
resp2, _ := doDelete(server.URL+"/api/v1/permissions/"+strconv.Itoa(permID), token)
defer resp2.Body.Close()
assert.Equal(t, http.StatusOK, resp2.StatusCode, "should delete permission")
}