This commit is contained in:
Jane
2023-12-22 10:59:10 +08:00
parent 751c43e199
commit d1ede2d4aa
2774 changed files with 291509 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import request from '@/utils/request'
export function get(tableName) {
return request({
url: '/system/api/genConfig/' + tableName,
method: 'get'
})
}
export function update(data) {
return request({
url: '/system/api/genConfig',
data,
method: 'put'
})
}

View File

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