apiArticle.js 506 B

1234567891011121314151617181920
  1. import { del, get, post } from "./http";
  2. const prefix = 'devicesApi/notification/';
  3. export default {
  4. /**
  5. * 查询新闻列表
  6. * @param {String} articleId 最后一个列表对象的Id(用于分页)
  7. * @returns Promise
  8. */
  9. getArticleList(articleId) {
  10. return get(prefix + "articles", {articleId})
  11. },
  12. readMessage(articleId) {
  13. return get(prefix + "read-article", {articleId})
  14. },
  15. getCampaignList(articleId) {
  16. return get("devicesApi/notification/campaigns", {articleId})
  17. }
  18. }