图书馆小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

143 lines
3.6 KiB

1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
1 month ago
  1. import request from '../utils/request';
  2. // 字典项 - 馆代码
  3. export function FetchDictionaryTree(data) {
  4. return request({
  5. url: '/api/dictionary/initDictionaryTree',
  6. data
  7. })
  8. }
  9. // 查询读者当前借阅(群)
  10. // http://192.168.99.63:14000/api/screenSetting/rdloanlist?rdid=420703GD0000748&sm4Key=86ACEF6CE6A65A4A&thirdAppid=feitian_gdlib&thirdSecret=edi56b6p5hi69dwk03so86uv2olhszqp&thirdUrl=http://218.200.95.251:8088/openlib
  11. export function FetchRdloanlist(data) {
  12. return request({
  13. url: '/api/screenSetting/rdloanlist',
  14. data
  15. })
  16. }
  17. // 查询读者历史借阅
  18. // http://192.168.99.63:14000/api/screenSetting/historyloan?rdid=420703GD0000748&sm4Key=86ACEF6CE6A65A4A&thirdAppid=feitian_gdlib&thirdSecret=edi56b6p5hi69dwk03so86uv2olhszqp&thirdUrl=http://218.200.95.251:8088/openlib
  19. export function FetchHistoryloan(data) {
  20. return request({
  21. url: '/api/screenSetting/historyloan',
  22. data
  23. })
  24. }
  25. // 续借(群)
  26. // http://192.168.99.63:14000/api/screenSetting/renewbook?barcode=420703GD00004461&logtype=30007&opuser=JH001&rdid=420703GD0000748&sm4Key=86ACEF6CE6A65A4A&thirdAppid=feitian_gdlib&thirdSecret=edi56b6p5hi69dwk03so86uv2olhszqp&thirdUrl=http://218.200.95.251:8088/openlib
  27. export function FetchRenewbook(data) {
  28. return request({
  29. url: '/api/screenSetting/renewbook',
  30. data
  31. })
  32. }
  33. // 图书推荐
  34. export function FetchInitScreenBookRecommend(data) {
  35. return request({
  36. url: '/api/screenSetting/initScreenBookRecommend',
  37. data
  38. })
  39. }
  40. // 图书检索接口
  41. // http://192.168.99.63:14000/api/screenSetting/bookSearch?opacUrl=http%3A%2F%2F218.200.95.251%3A8081%2Fopac%2F&page=1&query=%E5%BE%AE%E4%BF%A1&rows=10&scWay=dim&searchWay=title&sortOrder=desc&sortWay=score
  42. // opacUrl / page:'1' / query / rows:'10' / scWay / searchWay / sortOrder desc / sortWay
  43. export function FetchBookSearch(data) {
  44. return request({
  45. url: '/api/screenSetting/bookSearch',
  46. data
  47. })
  48. }
  49. // 书目记录号获取书目信息接口
  50. // /api/screenSetting/findbookByQuery?opacUrl=http://218.200.95.251:8081/opac/&bookrecno=
  51. export function FetchFindbookByQuery(data) {
  52. return request({
  53. url: '/api/screenSetting/findbookByQuery',
  54. data
  55. })
  56. }
  57. // 通过isbn获取图书封面
  58. export function FetchCoverByISBN(data) {
  59. return request({
  60. url: '/dxhtsg/getCoverByISBN',
  61. data
  62. })
  63. }
  64. // 文献排行榜
  65. export function FetchBookRanking(data) {
  66. return request({
  67. url: '/api/screenSetting/sync36',
  68. data
  69. })
  70. }
  71. // 读者借阅排行榜
  72. // /api/screenSetting/sync37
  73. // 馆藏量
  74. // /api/screenSetting/sync35
  75. // 累计借出
  76. // /api/screenSetting/sync82
  77. // 根据用户openID获取收藏图书
  78. // ?libcode=ftzn&openId=11&page=1&size=10&title=11
  79. export function FetchFindAllBookCollectionByOpenId(data) {
  80. return request({
  81. url: '/api/weixin/findAllBookCollectionByOpenId',
  82. data
  83. })
  84. }
  85. //
  86. // 收藏图书
  87. //{
  88. // "author": "string",
  89. // "bookrecno": "string",
  90. // "booktype": "string",
  91. // "classno": "string",
  92. // "isbn": "string",
  93. // "libcode": "string",
  94. // "openid": "string",
  95. // "page": "string",
  96. // "price": "string",
  97. // "pubdate": "string",
  98. // "publisher": "string",
  99. // "subject": "string",
  100. // "title": "string"
  101. // }
  102. export function FetchCollectionBook(data) {
  103. return request({
  104. url: '/api/weixin/collectionBook',
  105. method: 'POST',
  106. data
  107. })
  108. }
  109. // 取消收藏
  110. // {
  111. // "id": 0
  112. // }
  113. export function FetchCancelCollectionBook(data) {
  114. return request({
  115. url: '/api/weixin/cancelCollectionBook',
  116. method: 'POST',
  117. data
  118. })
  119. }