feiyu02
2022-01-12 1564af04dacafcc08a9682a4ef1e651120c8cc46
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
}