feiyu02
2025-09-30 6904763f0e74d9a9fa4dbc39f635d2aee39416c6
src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemController.kt
@@ -3,6 +3,7 @@
import cn.flightfeather.supervision.lightshare.service.ProblemService
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import io.swagger.annotations.ApiParam
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestParam
@@ -16,8 +17,8 @@
    @ApiOperation(value = "根据年月获取用户的问题")
    @GetMapping("/list")
    fun getProblemsByPeriod(
            @RequestParam("userId") userId: String,
            @RequestParam("year") year: Int,
            @RequestParam("month") month: Int
        @ApiParam("用户id") @RequestParam("userId") userId: String,
        @ApiParam("年份") @RequestParam("year") year: Int,
        @ApiParam("月份") @RequestParam("month") month: Int
    ) = problemService.getProblemsByPeriod(userId, year, month)
}