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.
30 lines
806 B
30 lines
806 B
'use strict';
|
|
const _ = require("lodash");
|
|
const Controller = require('egg').Controller;
|
|
class DualFlowMotorController extends Controller {
|
|
//初始化双流电机
|
|
async init() {
|
|
let { ctx } = this;
|
|
let params = ctx.request.body
|
|
let res = await ctx.service.dualFlowMotor.init(params);
|
|
ctx.body = res
|
|
ctx.status = 200
|
|
}
|
|
//保存双流电机数据
|
|
async send() {
|
|
let { ctx } = this;
|
|
let params = ctx.request.body
|
|
let res = await ctx.service.dualFlowMotor.send(params);
|
|
ctx.body = res
|
|
ctx.status = 200
|
|
}
|
|
//保存双流电机数据
|
|
async save() {
|
|
let { ctx } = this;
|
|
let params = ctx.request.body
|
|
let res = await ctx.service.dualFlowMotor.save(params);
|
|
ctx.body = res
|
|
ctx.status = 200
|
|
}
|
|
}
|
|
module.exports = DualFlowMotorController;
|