浏览代码

修改类引用方式

zhangchen 3 天之前
父节点
当前提交
27d73ccc8d

+ 6 - 4
alien-store/src/main/java/shop/alien/store/controller/StoreStaffConfigController.java

@@ -7,6 +7,8 @@ import lombok.extern.slf4j.Slf4j;
 import org.springframework.web.bind.annotation.*;
 import shop.alien.entity.result.R;
 import shop.alien.entity.store.StoreStaffConfig;
+import shop.alien.entity.store.vo.StoreStaffDetailVo;
+import shop.alien.entity.store.vo.StoreStaffFitnessDetailVo;
 import shop.alien.store.service.StoreStaffConfigService;
 
 import java.io.IOException;
@@ -197,7 +199,7 @@ public class StoreStaffConfigController {
             @ApiImplicitParam(name = "id", value = "员工主键ID", dataType = "Integer", paramType = "query", required = true)
     })
     @GetMapping("/getStaffDetailWithCourse")
-    public R<shop.alien.entity.store.vo.StoreStaffDetailVo> getStaffDetailWithCourse(
+    public R<StoreStaffDetailVo> getStaffDetailWithCourse(
             @RequestParam(value = "id") Integer id) {
         log.info("查询员工详情(包含课程信息),id={}", id);
         
@@ -208,7 +210,7 @@ public class StoreStaffConfigController {
                 return R.fail("员工ID不能为空且必须大于0");
             }
             
-            shop.alien.entity.store.vo.StoreStaffDetailVo result = storeStaffConfigService.getStaffDetailWithCourse(id);
+            StoreStaffDetailVo result = storeStaffConfigService.getStaffDetailWithCourse(id);
             
             if (result == null) {
                 log.warn("查询员工详情失败,员工不存在:id={}", id);
@@ -236,7 +238,7 @@ public class StoreStaffConfigController {
             @ApiImplicitParam(name = "id", value = "员工主键ID", dataType = "Integer", paramType = "query", required = true)
     })
     @GetMapping("/getFitnessCoachDetail")
-    public R<shop.alien.entity.store.vo.StoreStaffFitnessDetailVo> getFitnessCoachDetail(
+    public R<StoreStaffFitnessDetailVo> getFitnessCoachDetail(
             @RequestParam(value = "id") Integer id) {
         log.info("查询健身教练详情,id={}", id);
         
@@ -247,7 +249,7 @@ public class StoreStaffConfigController {
                 return R.fail("员工ID不能为空且必须大于0");
             }
             
-            shop.alien.entity.store.vo.StoreStaffFitnessDetailVo result = storeStaffConfigService.getFitnessCoachDetail(id);
+            StoreStaffFitnessDetailVo result = storeStaffConfigService.getFitnessCoachDetail(id);
             
             if (result == null) {
                 log.warn("查询健身教练详情失败,员工不存在:id={}", id);