Commit 33779546 by zhangkb

修改系统标签返回sharable字段

parent 845adc66
...@@ -641,7 +641,8 @@ public class TagService { ...@@ -641,7 +641,8 @@ public class TagService {
private List<ExtTag> decoratorToExtTag(List<Tag> tags, String userName) { private List<ExtTag> decoratorToExtTag(List<Tag> tags, String userName) {
return tags.stream().map(t -> { return tags.stream().map(t -> {
return new ExtTag(t, /**t.getCreator()*/t.getTagUser().equals(userName) ? return new ExtTag(t, /**t.getCreator()*/t.getTagUser().equals(userName) ?
Constants.TAG_OPERABLE_TRUE : Constants.TAG_OPERABLE_FALSE); Constants.TAG_OPERABLE_TRUE : Constants.TAG_OPERABLE_FALSE,
Constants.TAG_SHAREABLE_TRUE);
}).collect(Collectors.toList()); }).collect(Collectors.toList());
} }
//2020-2-20 desc:判断标签是否能被分享使用 //2020-2-20 desc:判断标签是否能被分享使用
......
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