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
12 lines
417 B
const { getEnvironmentByCoopId } = require("../service/environment.service");
|
|
const Response = require("../utils/response");
|
|
|
|
class EnvironmentController {
|
|
async detail(ctx, next) {
|
|
const { coop_id } = ctx.request.query;
|
|
const res = await getEnvironmentByCoopId(coop_id);
|
|
ctx.body = Response(0, "获取当前鸡舍的环境检测结果成功", res);
|
|
}
|
|
}
|
|
|
|
module.exports = new EnvironmentController();
|