songshuai 5 years ago
parent
commit
2d56a4f545

+ 4 - 1
src/main/java/cn/efunbox/audio/controller/res/ResCategoryController.java

@@ -4,6 +4,7 @@ import cn.efunbox.audio.entity.res.ResCategory;
 import cn.efunbox.audio.service.res.ResCategoryService;
 import cn.efunbox.audio.utils.ResApiResult;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestHeader;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
@@ -15,7 +16,9 @@ public class ResCategoryController {
     ResCategoryService resCategoryService;
 
     @RequestMapping(value = "/getTypeList")
-    public ResApiResult<ResCategory> getResCategoryList(){
+    public ResApiResult<ResCategory> getResCategoryList(@RequestHeader(value = "USERID",required = false) String USERID){
        return resCategoryService.getResCategoryList();
     }
+
+
 }

+ 2 - 2
src/main/java/cn/efunbox/audio/entity/res/ResAlbum.java

@@ -25,8 +25,8 @@ public class ResAlbum {
     @Column(name = "content_name")
     private String contentName;
 
-    @Column(name = "shor_trecommend")
-    private String shorTrecommend;
+    @Column(name = "shortRecommend")
+    private String shortRecommend;
 
     @Column(name = "long_recommend")
     private String longRecommend;

+ 2 - 0
src/main/java/cn/efunbox/audio/repository/res/ResAlbumRepository.java

@@ -5,4 +5,6 @@ import cn.efunbox.audio.repository.base.BasicRepository;
 
 public interface ResAlbumRepository extends BasicRepository<ResAlbum> {
 
+    //public List<ResAlbum>
+
 }