소스 검색

ready for apiv3

ryuichi-e 5 년 전
부모
커밋
178b409ead
2개의 변경된 파일10개의 추가작업 그리고 3개의 파일을 삭제
  1. 6 3
      src/client/js/components/MyBookmarkList/MyBookmarkList.jsx
  2. 4 0
      src/client/js/services/PageContainer.js

+ 6 - 3
src/client/js/components/MyBookmarkList/MyBookmarkList.jsx

@@ -1,9 +1,9 @@
 import React from 'react';
 import React from 'react';
 import PropTypes from 'prop-types';
 import PropTypes from 'prop-types';
 
 
+import loggerFactory from '@alias/logger';
 import { withUnstatedContainers } from '../UnstatedUtils';
 import { withUnstatedContainers } from '../UnstatedUtils';
 
 
-import loggerFactory from '@alias/logger';
 
 
 import AppContainer from '../../services/AppContainer';
 import AppContainer from '../../services/AppContainer';
 import PageContainer from '../../services/PageContainer';
 import PageContainer from '../../services/PageContainer';
@@ -47,8 +47,10 @@ class MyBookmarkList extends React.Component {
     const limit = 10;
     const limit = 10;
     const offset = (selectPageNumber - 1) * limit;
     const offset = (selectPageNumber - 1) * limit;
 
 
-    // pagesList get and pagination calculate
+
     /* /pages.myBookmarks is not exitst. TODO GW-3251 Create api v3 /pages.myBookmarks */
     /* /pages.myBookmarks is not exitst. TODO GW-3251 Create api v3 /pages.myBookmarks */
+
+    // This block is cited from MyDraftList
     /* await this.props.appContainer.apiGet('/pages.myBookmarks', {
     /* await this.props.appContainer.apiGet('/pages.myBookmarks', {
       page_id: pageId, user: userId, limit, offset,
       page_id: pageId, user: userId, limit, offset,
     })
     })
@@ -63,8 +65,9 @@ class MyBookmarkList extends React.Component {
           pagingLimit: limit,
           pagingLimit: limit,
         });
         });
       }); */
       }); */
+    /*  */
     try {
     try {
-      await appContainer.retrieveMyBookmarkList(pageId, userId, limit, offset);
+      await pageContainer.retrieveMyBookmarkList(pageId, userId, limit, offset);
     }
     }
     catch (error) {
     catch (error) {
       logger.error('failed to fetch data', error);
       logger.error('failed to fetch data', error);

+ 4 - 0
src/client/js/services/PageContainer.js

@@ -487,4 +487,8 @@ export default class PageContainer extends Container {
 
 
   }
   }
 
 
+  /* TODO GW-325 */
+  retrieveMyBookmarkList() {
+  }
+
 }
 }