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 org.springframework.web.bind.annotation.*
|
|
@Api(tags = ["在线咨询API接口"])
|
@RestController
|
@RequestMapping("/consultation")
|
class ConsultationController(val onLineQuestionService: OnLineQuestionService) {
|
|
@PostMapping("/add/{userId}")
|
fun add(
|
@PathVariable userId: String,
|
@RequestBody questions: List<OnLineQuestion>
|
) = onLineQuestionService.addQuestions(userId, questions)
|
}
|