Commit 5c853f1a authored by 任国军's avatar 任国军

getUserActImage add title&content

parent bccfde5d
Pipeline #26876 passed with stage
in 4 seconds
......@@ -12,7 +12,9 @@ module.exports = app => {
primaryKey: true,
autoIncrement: true,
},
name: STRING,
title: STRING,
content: STRING,
selected_image: STRING,
unselected_image: STRING,
sort: INTEGER,
......
......@@ -604,7 +604,7 @@ class UserService extends Service {
const { ctx } = this;
const userImageList = await ctx.classModel.CourseUserActImage.findAll({ where: { user_uuid: ctx.userUuid, status: 1, is_deleted: 0 } });
const imageList = await ctx.classModel.CourseActImage.findAll({ where: { id: { $in: R.pluck('image_id', userImageList) } }, attributes: [ 'id', 'selected_image', 'unselected_image' ] });
const imageList = await ctx.classModel.CourseActImage.findAll({ where: { id: { $in: R.pluck('image_id', userImageList) } }, attributes: [ 'id', 'selected_image', 'unselected_image', 'title', 'content' ] });
const ret = {
list: imageList,
};
......
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