后台:礼包码

This commit is contained in:
luying
2021-12-10 18:40:57 +08:00
parent cb999cec10
commit fbd19a5c4c
6 changed files with 78 additions and 4 deletions

View File

@@ -172,6 +172,12 @@ export default class UserController extends Controller {
ctx.body = await ctx.service.users.cancelGiftCode(params.id, !!params.isEnable);
}
public async getGiftCodeDetailList() {
const { ctx } = this;
const { page, pageSize, sortField, sortOrder, form } = ctx.request.body;
ctx.body = await ctx.service.users.getGiftCodeDetailList(page, pageSize, sortField, sortOrder, form);
}
public async getGiftCodeDetailFile() {
const { ctx } = this;
const { id } = ctx.params;