查询全部,返回list websocket测试 POST {{host}}/api/constant/limitAll 响应参数 参数名 类型 描述 必填 ret int 返回码:0-正常,非0-失败 必填 msg string 返回消息 必填 result array 返回数据 必填 constant_id int 常量ID 必填 constant_key string 常量名 必填 constant_value string 常量值 必填 说明 / 示例 ###### 示例代码 ```javascript //请求 let res = await post("api/constant/limitAll") //返回 res = { ret: 0, msg: "查询成功", result: [{ constant_id: 1, constant_key: "station", constant_value: "济宁北站" }, { constant_id: 2, constant_key: "station", constant_value: "济宁北站" }] } ```
###### 示例代码 ```javascript //请求 let res = await post("api/constant/limitAll") //返回 res = { ret: 0, msg: "查询成功", result: [{ constant_id: 1, constant_key: "station", constant_value: "济宁北站" }, { constant_id: 2, constant_key: "station", constant_value: "济宁北站" }] } ```