石墨消解仪后端用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.

11 lines
314 B

2 years ago
  1. const { getAllFactory } = require("../service/factory.service");
  2. const Response = require("../utils/response");
  3. class FactoryController {
  4. async list(ctx, next) {
  5. const res = await getAllFactory();
  6. ctx.body = Response(0, "获取鸡苗厂家成功", res);
  7. }
  8. }
  9. module.exports = new FactoryController();