package com.tcm.training.admin.app.share.controller; import com.tcm.training.admin.app.share.service.AppShareService; import com.tcm.training.admin.app.share.vo.AppShareQrcodeVO; 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.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * APP 我的二维码接口。 */ @Validated @RestController @RequestMapping({"/api/app/share-qrcode", "/api/v1/app/share-qrcode"}) public class AppShareController { private final AppShareService appShareService; /** * 注入邀请分享服务。 */ public AppShareController(AppShareService appShareService) { this.appShareService = appShareService; } /** * 获取当前登录医生的二维码聚合数据。 */ @GetMapping public ApiResponse getCurrentUserShareQrcode() { return ApiResponse.ok(appShareService.getCurrentUserShareQrcode()); } }