package cn.flightfeather.supervision.lightshare.web
|
|
import cn.flightfeather.supervision.domain.entity.OnLineQuestion
|
import cn.flightfeather.supervision.lightshare.service.OnLineQuestionService
|
import io.swagger.annotations.Api
|
import io.swagger.annotations.ApiOperation
|
import io.swagger.annotations.ApiParam
|
import org.springframework.web.bind.annotation.*
|
|
@Api(tags = ["在线咨询API接口"])
|
@RestController
|
@RequestMapping("/consultation")
|
class ConsultationController(val onLineQuestionService: OnLineQuestionService) {
|
|
@ApiOperation(value = "提出咨询问题")
|
@PostMapping("/add/{userId}")
|
fun add(
|
@ApiParam(value = "用户id") @PathVariable userId: String,
|
@ApiParam(value = "咨询问题") @RequestBody questions: List<OnLineQuestion>
|
) = onLineQuestionService.addQuestions(userId, questions)
|
}
|