api.js 447 B

12345678910111213141516171819202122232425
  1. import axios from './request'
  2. // 用户登录接口
  3. export const userLogin = (data) => {
  4. return axios({
  5. method: 'post',
  6. url: '/admin/login',
  7. data
  8. })
  9. }
  10. // 获取表相关列表
  11. export const getBList = (data) => {
  12. return axios({
  13. method: 'post',
  14. url: '/db/table/getList',
  15. data
  16. })
  17. }
  18. // 新增表
  19. export const addTable = (data) => {
  20. return axios({
  21. method: 'post',
  22. url: '/db/table/createTable',
  23. data
  24. })
  25. }