refactor: codegen

This commit is contained in:
xingyu
2022-07-28 21:40:15 +08:00
parent 607f6e4bb5
commit 291f31be98
9 changed files with 127 additions and 126 deletions

View File

@@ -1,5 +1,5 @@
import { useAxios } from '@/hooks/web/useAxios'
import type { CodegenTableVO } from './types'
import type { CodegenUpdateReqVO, CodegenCreateListReqVO } from './types'
const request = useAxios()
@@ -14,12 +14,12 @@ export const getCodegenTableApi = (id: number) => {
}
// 新增代码生成表定义
export const createCodegenTableApi = (data: CodegenTableVO) => {
export const createCodegenTableApi = (data: CodegenCreateListReqVO) => {
return request.post({ url: '/infra/codegen/create', data })
}
// 修改代码生成表定义
export const updateCodegenTableApi = (data: CodegenTableVO) => {
export const updateCodegenTableApi = (data: CodegenUpdateReqVO) => {
return request.put({ url: '/infra/codegen/update', data })
}