feat(generator): 代码生成字段配置支持选择关联字典

This commit is contained in:
2024-08-27 00:02:26 +08:00
parent fcbc3ebbff
commit 6574181110
3 changed files with 24 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
import type * as Tool from './type'
import type { LabelValueState } from '@/types/global'
import http from '@/utils/http'
const BASE_URL = '/generator'
@@ -36,3 +37,8 @@ export function generate(tableNames: Array<string>) {
responseType: 'blob'
})
}
/** @desc 查询字典列表 */
export function listFieldConfigDict() {
return http.get<LabelValueState[]>(`${BASE_URL}/dict`)
}

View File

@@ -27,6 +27,7 @@ export interface FieldConfigResp {
showInQuery: boolean
formType: string
queryType: string
dictCode: string
createTime?: string
}
export interface GenConfigResp {