| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142 |
- import service from '@/utils/request'
- export const preview = (data) => {
- return service({
- url: '/autoCode/preview',
- method: 'post',
- data
- })
- }
- export const createTemp = (data) => {
- return service({
- url: '/autoCode/createTemp',
- method: 'post',
- data,
- responseType: 'blob'
- })
- }
- // @Tags SysApi
- // @Summary 获取当前所有数据库
- // @Security ApiKeyAuth
- // @accept application/json
- // @Produce application/json
- // @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
- // @Router /autoCode/getDatabase [get]
- export const getDB = (params) => {
- return service({
- url: '/autoCode/getDB',
- method: 'get',
- params
- })
- }
- // @Tags SysApi
- // @Summary 获取当前数据库所有表
- // @Security ApiKeyAuth
- // @accept application/json
- // @Produce application/json
- // @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
- // @Router /autoCode/getTables [get]
- export const getTable = (params) => {
- return service({
- url: '/autoCode/getTables',
- method: 'get',
- params
- })
- }
- // @Tags SysApi
- // @Summary 获取当前数据库所有表
- // @Security ApiKeyAuth
- // @accept application/json
- // @Produce application/json
- // @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
- // @Router /autoCode/getColumn [get]
- export const getColumn = (params) => {
- return service({
- url: '/autoCode/getColumn',
- method: 'get',
- params
- })
- }
- export const getSysHistory = (data) => {
- return service({
- url: '/autoCode/getSysHistory',
- method: 'post',
- data
- })
- }
- export const rollback = (data) => {
- return service({
- url: '/autoCode/rollback',
- method: 'post',
- data
- })
- }
- export const getMeta = (data) => {
- return service({
- url: '/autoCode/getMeta',
- method: 'post',
- data
- })
- }
- export const delSysHistory = (data) => {
- return service({
- url: '/autoCode/delSysHistory',
- method: 'post',
- data
- })
- }
- export const createPackageApi = (data) => {
- return service({
- url: '/autoCode/createPackage',
- method: 'post',
- data
- })
- }
- export const getPackageApi = () => {
- return service({
- url: '/autoCode/getPackage',
- method: 'post'
- })
- }
- export const deletePackageApi = (data) => {
- return service({
- url: '/autoCode/delPackage',
- method: 'post',
- data
- })
- }
- export const createPlugApi = (data) => {
- return service({
- url: '/autoCode/createPlug',
- method: 'post',
- data
- })
- }
- export const installPlug = (data) => {
- return service({
- url: '/autoCode/installPlug',
- method: 'post',
- data
- })
- }
- export const pubPlug = (params) => {
- return service({
- url: '/autoCode/pubPlug',
- method: 'post',
- params
- })
- }
|