|
|
@ -0,0 +1,22 @@ |
|
|
|
const { |
|
|
|
addDieLog, |
|
|
|
getDieInfoById, |
|
|
|
getAllDieInfo, |
|
|
|
} = require("../service/die.service"); |
|
|
|
const Response = require("../utils/response"); |
|
|
|
|
|
|
|
class DieController { |
|
|
|
async add(ctx, next) { |
|
|
|
const { house_id, coop_id, reason_id, die_number, put_time } = |
|
|
|
ctx.request.body; |
|
|
|
ctx.body = Response(0, "新增死淘记录成功", null); |
|
|
|
} |
|
|
|
async info(ctx, next) { |
|
|
|
ctx.body = Response(0, "查询单条死淘记录成功", null); |
|
|
|
} |
|
|
|
async all(ctx, next) { |
|
|
|
ctx.body = Response(0, "查询死淘记录成功", null); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
module.exports = new DieController(); |