| | |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @RestController |
| | | @RequestMapping("/client/tag") |
| | | public class ClientTagController { |
| | | @PostMapping("/queryTagList/{ids}") |
| | | public R<List<String>> queryTagList(@PathVariable("ids") String ids) { |
| | | List<Tag> list = tagService.lambdaQuery().in(Tag::getId, Arrays.asList(ids.split(","))).list(); |
| | | return R.ok(list.stream().map(Tag::getTagName).collect(Collectors.toList())); |
| | | } |
| | | @Resource |
| | | private TagService tagService; |
| | | @PostMapping("/saveUserAnswers") |