修复bug

This commit is contained in:
2026-08-08 20:32:33 +08:00
parent ae5dc3eb46
commit 8becd0bf94
20 changed files with 174 additions and 60 deletions
@@ -112,6 +112,8 @@ int main() {
ADMINIVE_CHECK(body_json(client.Get("/rows?perPage=2&page=1&orderBy=score&orderDir=desc")).at("data").at("items").at(0).at("name") == "beta");
ADMINIVE_CHECK(body_json(client.Get("/rows?name=alp")).at("data").at("total") == 1);
ADMINIVE_CHECK(body_json(client.Get("/rows?enabled=true")).at("data").at("total") == 2);
check_status(client.Get("/rows?score=90"), 400);
check_status(client.Get("/rows?unknown=value"), 400);
check_status(client.Get("/rows?orderBy=enabled&orderDir=asc"), 400);
check_status(client.Get("/rows?orderBy=score&orderDir=sideways"), 400);
const auto created = body_json(client.Post("/rows", R"({"name":"delta","enabled":true,"score":80})", "application/json"));