Commit f436171a authored by 姜登's avatar 姜登

id

parent 459d00cf
Pipeline #9449 passed with stage
in 9 seconds
......@@ -42,7 +42,7 @@ class PriceController extends Controller {
const { ctx, service } = this;
ctx.validate(this.indexRule, ctx.query);
await service.user.getUserInfo();
const ret = await service.userDetail.findAll(this.model, { appkey: ctx.query.appKey }, ['pay_type', 'price', 'start_time', 'end_time', 'operator'], ctx.pagination);
const ret = await service.userDetail.findAll(this.model, { appkey: ctx.query.appKey }, ['id', 'pay_type', 'price', 'start_time', 'end_time', 'operator'], ctx.pagination);
const total = await service.userDetail.count(this.model, { appkey: ctx.query.appKey });
ctx.success({ data: ret, total, ...ctx.pagination });
}
......
......@@ -36,7 +36,7 @@ class RechargeController extends Controller {
const { ctx, service } = this;
ctx.validate(this.indexRule, ctx.query);
await service.user.getUserInfo();
const ret = await service.userDetail.findAll(this.model, { user_id: ctx.query.user_id }, ['user_id', 'money', 'receive_time', 'remark', 'operator'], ctx.pagination);
const ret = await service.userDetail.findAll(this.model, { user_id: ctx.query.user_id }, ['id', 'user_id', 'money', 'receive_time', 'remark', 'operator'], ctx.pagination);
const total = await service.userDetail.count(this.model, { user_id: ctx.query.user_id });
ctx.success({ data: ret, total, ...ctx.pagination });
}
......
......@@ -33,7 +33,7 @@ class RemissionController extends Controller {
const { ctx, service } = this;
ctx.validate(this.indexRule, ctx.query);
await service.user.getUserInfo();
const ret = await service.userDetail.findAll(this.model, { appkey: ctx.query.appKey }, ['appkey', 'start_time', 'count', 'operator'], ctx.pagination);
const ret = await service.userDetail.findAll(this.model, { appkey: ctx.query.appKey }, ['id', 'appkey', 'start_time', 'count', 'operator'], ctx.pagination);
const total = await service.userDetail.count(this.model, { appkey: ctx.query.appKey });
ctx.success({ data: ret, total, ...ctx.pagination });
}
......
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