Rap 原分销系统代码Web
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
558B

  1. import request from '@/utils/request'
  2. export function add(data) {
  3. return request({
  4. url: 'api/database',
  5. method: 'post',
  6. data
  7. })
  8. }
  9. export function del(ids) {
  10. return request({
  11. url: 'api/database',
  12. method: 'delete',
  13. data: ids
  14. })
  15. }
  16. export function edit(data) {
  17. return request({
  18. url: 'api/database',
  19. method: 'put',
  20. data
  21. })
  22. }
  23. export function testDbConnection(data) {
  24. return request({
  25. url: 'api/database/testConnect',
  26. method: 'post',
  27. data
  28. })
  29. }
  30. export default { add, edit, del, testDbConnection }