“mitao”
2026-04-10 1e72a0b06e37d372c46522c85c6733edbcd5331d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package com.tcm.training.admin.app.live.controller;
 
import com.tcm.training.admin.app.live.service.AppLiveExpertService;
import com.tcm.training.admin.app.live.vo.AppLiveExpertVO;
import com.tcm.training.admin.common.ApiResponse;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
/**
 * APP 养生直播专家接口。
 */
@Validated
@RestController
@RequestMapping({"/api/app", "/api/v1/app"})
public class AppLiveExpertController {
 
    private final AppLiveExpertService appLiveExpertService;
 
    /**
     * 注入 APP 养生直播专家服务。
     */
    public AppLiveExpertController(AppLiveExpertService appLiveExpertService) {
        this.appLiveExpertService = appLiveExpertService;
    }
 
    /**
     * 获取 APP 养生直播专家详情。
     */
    @GetMapping("/live-experts/{expertId}")
    public ApiResponse<AppLiveExpertVO> detail(@PathVariable("expertId") Long expertId) {
        return ApiResponse.ok(appLiveExpertService.detail(expertId));
    }
}