asking.js 364 B

123456789101112131415161718
  1. import request from '@/utils/request'
  2. // 获取类型列表
  3. export function getTypeList(query) {
  4. return request({
  5. url: '/JnbQuestionType/type/typeList',
  6. method: 'get',
  7. params: query
  8. })
  9. }
  10. // 获取热门问答列表
  11. export function getHotQuestionList() {
  12. return request({
  13. url: '/asking/question/getHotQuestionList',
  14. method: 'get'
  15. })
  16. }