diff --git a/src/api/platform/system/controller/genCodeParam.ts b/src/api/platform/system/controller/genCodeParam.ts new file mode 100644 index 0000000..cf2d2ee --- /dev/null +++ b/src/api/platform/system/controller/genCodeParam.ts @@ -0,0 +1,20 @@ +import type { GenCodeParamResult, GenCodeParamParams, GenCodeParam } from '/@/api/platform/system/entity/genCodeParam'; +import { defHttp } from '/@/utils/http/axios'; + +enum Api { + list = '/system_proxy/system/devtools/genCodeParam/list', + add = '/system_proxy/system/devtools/genCodeParam/save', + get = '/system_proxy/system/devtools/genCodeParam', + edit = '/system_proxy/system/devtools/genCodeParam/update', + del = '/system_proxy/system/devtools/genCodeParam/remove' +} + +export const listGenCodeParam = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); + +export const addGenCodeParam = (params: Partial) => defHttp.post({ url: Api.add, data: params }); + +export const editGenCodeParam = (params: Partial) => defHttp.put({ url: Api.edit, data: params }); + +export const getGenCodeParam = (id: string) => defHttp.get({ url: `${Api.get}/${id}` }); + +export const delGenCodeParam = (ids: string) => defHttp.delete({ url: `${Api.del}/${ids}` }); diff --git a/src/api/platform/system/entity/genCodeParam.ts b/src/api/platform/system/entity/genCodeParam.ts new file mode 100644 index 0000000..47f804e --- /dev/null +++ b/src/api/platform/system/entity/genCodeParam.ts @@ -0,0 +1,16 @@ +import type { R } from '/#/axios'; +import type { Page } from '/@/api/common/data/entity'; +import type { BaseEntity } from '/@/api/common/base/entity'; + +export type GenCodeParamParams = Page & GenCodeParam; + +export interface GenCodeParam extends BaseEntity { + id: string; + projectpath: string; + frontpath: string; + packagename: string; + author: string; + [key: string]: any; +} + +export type GenCodeParamResult = R; diff --git a/src/views/system/devtools/genCodeParam/ClientModal.vue b/src/views/system/devtools/genCodeParam/GenCodeParamModal.vue similarity index 57% rename from src/views/system/devtools/genCodeParam/ClientModal.vue rename to src/views/system/devtools/genCodeParam/GenCodeParamModal.vue index ebacf06..71de600 100644 --- a/src/views/system/devtools/genCodeParam/ClientModal.vue +++ b/src/views/system/devtools/genCodeParam/GenCodeParamModal.vue @@ -11,17 +11,16 @@ +