石墨消解仪后端用nodejs编写,与嵌入式端交互和前端交互均用ws
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
417 B

2 years ago
  1. const { getEnvironmentByCoopId } = require("../service/environment.service");
  2. const Response = require("../utils/response");
  3. class EnvironmentController {
  4. async detail(ctx, next) {
  5. const { coop_id } = ctx.request.query;
  6. const res = await getEnvironmentByCoopId(coop_id);
  7. ctx.body = Response(0, "获取当前鸡舍的环境检测结果成功", res);
  8. }
  9. }
  10. module.exports = new EnvironmentController();