message.js 490 B

123456789101112131415161718192021
  1. /**
  2. * 消息模块
  3. */
  4. import {httpGet,httpPost} from "@/utils/request.js"
  5. /**
  6. * 消息统计(首页数据展示)
  7. */
  8. export const apiMessageCount=()=>{
  9. return httpGet('/message/summaryMessageList',{})
  10. }
  11. /**
  12. * 消息列表
  13. * @param {int} SourceType 消息类型(1:客户,2:合同,3:用印)
  14. * @param {int} CurrentIndex 当前页码
  15. * @param {int} pageSize 每页数量
  16. */
  17. export const apiMessageList=params=>{
  18. return httpGet('/message/list',{...params,pageSize:20})
  19. }