|
@@ -87,6 +87,21 @@ class ColumnService extends CrudService {
|
|
|
async restore({ id }) {
|
|
|
return await this.status({ id, state: 0 });
|
|
|
}
|
|
|
+ // async querys(filter, options){
|
|
|
+ // const {site, parent_id, is_use, parent_type } = filter;
|
|
|
+ // assert(_.isString(site), 'site不能为空');
|
|
|
+ // assert(!parent_id || _.isString(parent_id), 'parent_id必须为字符串');
|
|
|
+ // assert(!is_use || _.isString(is_use), 'is_use必须为字符串');
|
|
|
+ // assert(!parent_type || _.isString(parent_type), 'parent_type必须为字符串');
|
|
|
+ // const data = {
|
|
|
+ // site, parent_id, is_use, parent_type: { $ne: "column" }
|
|
|
+ // };
|
|
|
+ // if (parent_type === null || parent_type === undefined){
|
|
|
+ // return await this.model.list(data);
|
|
|
+ // }else{
|
|
|
+ // return await this.model.list(filter);
|
|
|
+ // }
|
|
|
+ // }
|
|
|
}
|
|
|
|
|
|
module.exports = ColumnService;
|