dict.js 363 B

12345678910111213141516171819
  1. import req from '../../utils/request.js'
  2. /**
  3. * 获取字典信息
  4. * @param {Object} data
  5. */
  6. export function getDictInfoByType(data) {
  7. return req.request({
  8. url: '/system/dict/data/type/' + data,
  9. method: 'GET',
  10. })
  11. }
  12. export function getDictInfoByTypes(data) {
  13. return req.request({
  14. url: '/system/dict/data/dictTypes',
  15. method: 'POST',
  16. data: data
  17. })
  18. }