|
@@ -1,11 +1,12 @@
|
|
|
package cn.reghao.tnb.content.app.vod.controller;
|
|
package cn.reghao.tnb.content.app.vod.controller;
|
|
|
|
|
|
|
|
|
|
+import cn.reghao.jutil.jdk.db.PageList;
|
|
|
import cn.reghao.jutil.jdk.result.Result;
|
|
import cn.reghao.jutil.jdk.result.Result;
|
|
|
import cn.reghao.jutil.web.WebResult;
|
|
import cn.reghao.jutil.web.WebResult;
|
|
|
import cn.reghao.tnb.common.auth.AuthUser;
|
|
import cn.reghao.tnb.common.auth.AuthUser;
|
|
|
|
|
+import cn.reghao.tnb.common.auth.UserContext;
|
|
|
import cn.reghao.tnb.content.app.vod.model.dto.*;
|
|
import cn.reghao.tnb.content.app.vod.model.dto.*;
|
|
|
-import cn.reghao.tnb.content.app.vod.model.query.AlbumQuery;
|
|
|
|
|
-import cn.reghao.tnb.content.app.vod.model.vo.AlbumItem;
|
|
|
|
|
|
|
+import cn.reghao.tnb.content.app.vod.model.vo.AlbumInfo;
|
|
|
import cn.reghao.tnb.content.app.vod.service.AlbumService;
|
|
import cn.reghao.tnb.content.app.vod.service.AlbumService;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
@@ -50,6 +51,15 @@ public class AlbumPostController {
|
|
|
return WebResult.success(albumService.getSelectOptions());
|
|
return WebResult.success(albumService.getSelectOptions());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @AuthUser
|
|
|
|
|
+ @Operation(summary = "获取用户的稿件合集", description = "N")
|
|
|
|
|
+ @GetMapping(value = "/user", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
|
|
|
+ public String getUserAlbum(@RequestParam("pn") int pageNumber) {
|
|
|
|
|
+ long loginUser = UserContext.getUserId();
|
|
|
|
|
+ PageList<AlbumInfo> pageList = albumService.getUserAlbums(loginUser, pageNumber);
|
|
|
|
|
+ return WebResult.success(pageList);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
@AuthUser
|
|
@AuthUser
|
|
|
@Operation(summary = "获取稿件合集中的内容", description = "N")
|
|
@Operation(summary = "获取稿件合集中的内容", description = "N")
|
|
|
@GetMapping(value = "/item", produces = MediaType.APPLICATION_JSON_VALUE)
|
|
@GetMapping(value = "/item", produces = MediaType.APPLICATION_JSON_VALUE)
|