Commit 3560a38b authored by 任国军's avatar 任国军

addUserBaby remove other params

parent 45fb55ef
Pipeline #22124 passed with stage
in 29 seconds
......@@ -73,18 +73,9 @@ class UserController extends Controller {
const { ctx, service } = this;
const params = ctx.request.body;
if (ctx.isEmpty(params) || ctx.isEmpty(params.baby_name)) {
ctx.failed('name is empty');
}
if (ctx.isEmpty(params) || ctx.isEmpty(params.baby_age)) {
ctx.failed('age is empty');
}
if (ctx.isEmpty(params) || ctx.isEmpty(params.baby_sex)) {
ctx.failed('sex is empty');
}
if (ctx.isEmpty(params) || ctx.isEmpty(params.baby_birth)) {
ctx.failed('birth is empty');
}
const ret = await service.course.v5.user.addUserBaby(params);
ctx.success(ret);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment