|
@@ -5,6 +5,7 @@ import cn.efunbox.audio.repository.res.ResCategoryRepository;
|
|
|
import cn.efunbox.audio.service.res.ResCategoryService;
|
|
|
import cn.efunbox.audio.utils.ApiResult;
|
|
|
import cn.efunbox.audio.utils.ResApiResult;
|
|
|
+import cn.efunbox.audio.vo.res.ResCategoryVO;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -23,8 +24,12 @@ public class ResCategoryServiceImpl implements ResCategoryService {
|
|
|
@Override
|
|
|
public ResApiResult getResCategoryList() {
|
|
|
|
|
|
+ //查询
|
|
|
List<ResCategory> resCategoryList = resCategoryRepository.getResCategoryList();
|
|
|
|
|
|
- return ResApiResult.ok(resCategoryList);
|
|
|
+ //响应
|
|
|
+ ResCategoryVO resCategoryVO = new ResCategoryVO();
|
|
|
+ resCategoryVO.setTypeList(resCategoryList);
|
|
|
+ return ResApiResult.ok(resCategoryVO);
|
|
|
}
|
|
|
}
|