无关风月
2024-09-14 3f481005be717250a2ea87ff9367aa84d6a3eb13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package com.xinquan.user.controller.client;
 
 
import com.xinquan.common.core.domain.R;
import com.xinquan.system.api.domain.Tag;
import com.xinquan.user.domain.dto.UserAnswerDTO;
import com.xinquan.user.service.TagService;
import io.swagger.annotations.ApiOperation;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
 
import org.springframework.web.bind.annotation.RestController;
 
import javax.annotation.Resource;
import java.util.List;
 
/**
 * <p>
 * 标签表 前端控制器
 * </p>
 *
 * @author mitao
 * @since 2024-08-21
 */
@RestController
@RequestMapping("/client/tag")
public class ClientTagController {
    @Resource
    private TagService tagService;
    @PostMapping("/saveUserAnswers")
    @ApiOperation(value = "获取问题二标签列表", tags = {"用户端-计划引导相关接口"})
    public R<List<Tag>> saveUserAnswers() {
        List<Tag> list = tagService.lambdaQuery().eq(Tag::getTagType, 2).list();
 
        return R.ok(list);
    }
}