|
123456789101112131415161718192021222324252627282930313233 |
- import request from '@/utils/request'
-
- export function getAllTable() {
- return request({
- url: 'api/generator/tables/all',
- method: 'get'
- })
- }
-
- export function generator(tableName, type) {
- return request({
- url: 'api/generator/' + tableName + '/' + type,
- method: 'post',
- responseType: type === 2 ? 'blob' : ''
- })
- }
-
- export function save(data) {
- return request({
- url: 'api/generator',
- data,
- method: 'put'
- })
- }
-
- export function sync(tables) {
- return request({
- url: 'api/generator/sync',
- method: 'post',
- data: tables
- })
- }
-
|