feiyu02
2022-08-10 43a0780edd2db8e841325cb73032e819716c3595
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const $f = require('./baserequest')
 
module.exports = {
  //根据关键字搜索法律法规
  searchLaw: function (userId, keyword, fun) {
    let cb = {
      url: `/consultation/search/law`,
      params: {
        userId: userId,
        keyword: keyword
      },
    }
    Object.assign(cb, fun)
    $f.get(cb)
  },
 
  //获取热门
  getTopicLaw: function (userId, fun) {
    let cb = {
      url: `/consultation/topic/law`,
      params: {
        userId: userId,
      },
    }
    Object.assign(cb, fun)
    $f.get(cb)
  },
 
  //获取法律法规
  getMgtFile: function (userId, fileId, fun) {
    let cb = {
      url: `/consultation/law/file`,
      params: {
        userId: userId,
        fileId: fileId,
      },
    }
    Object.assign(cb, fun)
    $f.get(cb)
  },
}