| ¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.doumee.cloud.web; |
| | | |
| | | import com.doumee.config.annotation.LoginNoRequired; |
| | | import com.doumee.core.annotation.trace.Trace; |
| | | import com.doumee.service.business.third.model.ApiResponse; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.core.wx.wxPlat.WxPlatNotice; |
| | | import com.doumee.dao.web.reqeust.FinishAnswerDTO; |
| | | import com.doumee.dao.web.response.ProblemsVO; |
| | | import com.doumee.service.business.ProblemLogService; |
| | | import com.doumee.service.business.ProblemsService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Created by IntelliJ IDEA. |
| | | * |
| | | * @Author : Rk |
| | | * @create 2023/12/8 8:54 |
| | | */ |
| | | |
| | | @Api(tags = "ãå
¬ä¼å·ãé¢ç®ä¸å¡") |
| | | @Trace(exclude = true) |
| | | @RestController |
| | | @LoginNoRequired |
| | | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/web/problem") |
| | | @Slf4j |
| | | public class ProblemWebController { |
| | | |
| | | @Autowired |
| | | private ProblemsService problemsService; |
| | | |
| | | @Autowired |
| | | private ProblemLogService problemLogService; |
| | | |
| | | @Autowired |
| | | private WxPlatNotice wxPlatNotice; |
| | | |
| | | |
| | | @ApiOperation(value = "è·åé¢ç®æ°æ®", notes = "H5") |
| | | @GetMapping("/getProblemsVO") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "useType", value = "使ç¨åºæ¯ 2å³å¡äººå 1æ®é访客", required = true) |
| | | }) |
| | | public ApiResponse<List<ProblemsVO>> getProblemsVO(@RequestParam Integer useType) { |
| | | return ApiResponse.success("æ¥è¯¢æå",problemsService.getProblemsVO(useType)); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "ä¿åçé¢è®°å½", notes = "H5") |
| | | @PostMapping("/finishAnswer") |
| | | public ApiResponse<Integer> finishAnswer(@RequestBody FinishAnswerDTO finishAnswerDTO) { |
| | | return ApiResponse.success("æ¥è¯¢æå",problemLogService.finishAnswer(finishAnswerDTO)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |