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 detail(@PathVariable("expertId") Long expertId) { return ApiResponse.ok(appLiveExpertService.detail(expertId)); } }