mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-13 02:57:11 +08:00
feat(generator): 代码生成字段配置支持选择关联字典
This commit is contained in:
@@ -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`)
|
||||
}
|
||||
|
@@ -27,6 +27,7 @@ export interface FieldConfigResp {
|
||||
showInQuery: boolean
|
||||
formType: string
|
||||
queryType: string
|
||||
dictCode: string
|
||||
createTime?: string
|
||||
}
|
||||
export interface GenConfigResp {
|
||||
|
Reference in New Issue
Block a user