mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat: 新增代码生成页面
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { transformRecordToOption } from '@/utils/common';
|
||||
|
||||
/** enable status */
|
||||
export const enableStatusRecord: Record<Api.Common.EnableStatus, string> = {
|
||||
'0': '启用',
|
||||
'1': '禁用'
|
||||
@ -7,6 +8,7 @@ export const enableStatusRecord: Record<Api.Common.EnableStatus, string> = {
|
||||
|
||||
export const enableStatusOptions = transformRecordToOption(enableStatusRecord);
|
||||
|
||||
/** menu type */
|
||||
export const menuTypeRecord: Record<Api.System.MenuType, string> = {
|
||||
M: '目录',
|
||||
C: '菜单',
|
||||
@ -22,3 +24,61 @@ export const menuIconTypeRecord: Record<Api.System.IconType, string> = {
|
||||
};
|
||||
|
||||
export const menuIconTypeOptions = transformRecordToOption(menuIconTypeRecord);
|
||||
|
||||
/** gen java type */
|
||||
export const genJavaTypeRecord: Record<Api.Tool.JavaType, string> = {
|
||||
Long: 'Long',
|
||||
String: 'String',
|
||||
Integer: 'Integer',
|
||||
Double: 'Double',
|
||||
BigDecimal: 'BigDecimal',
|
||||
Date: 'Date',
|
||||
Boolean: 'Boolean'
|
||||
};
|
||||
|
||||
export const genJavaTypeOptions = transformRecordToOption(genJavaTypeRecord);
|
||||
|
||||
/** gen query type */
|
||||
export const genQueryTypeRecord: Record<Api.Tool.QueryType, string> = {
|
||||
EQ: '=',
|
||||
NE: '!=',
|
||||
GT: '>',
|
||||
GE: '>=',
|
||||
LT: '<',
|
||||
LE: '<=',
|
||||
LIKE: 'LIKE',
|
||||
BETWEEN: 'BETWEEN'
|
||||
};
|
||||
|
||||
export const genQueryTypeOptions = transformRecordToOption(genQueryTypeRecord);
|
||||
|
||||
/** gen html type */
|
||||
export const genHtmlTypeRecord: Record<Api.Tool.HtmlType, string> = {
|
||||
input: '文本框',
|
||||
textarea: '文本域',
|
||||
select: '下拉框',
|
||||
radio: '单选框',
|
||||
checkbox: '复选框',
|
||||
datetime: '日期控件',
|
||||
imageUpload: '图片上传',
|
||||
fileUpload: '文件上传',
|
||||
editor: '富文本控件'
|
||||
};
|
||||
|
||||
export const genHtmlTypeOptions = transformRecordToOption(genHtmlTypeRecord);
|
||||
|
||||
/** gen type */
|
||||
export const genTypeRecord: Record<Api.Tool.GenType, string> = {
|
||||
'0': 'ZIP 压缩包',
|
||||
'1': '自定义路径'
|
||||
};
|
||||
|
||||
export const genTypeOptions = transformRecordToOption(genTypeRecord);
|
||||
|
||||
/** gen type */
|
||||
export const genTplCategoryRecord: Record<Api.Tool.TplCategory, string> = {
|
||||
crud: '单表(增删改查)',
|
||||
tree: '树表(增删改查)'
|
||||
};
|
||||
|
||||
export const genTplCategoryOptions = transformRecordToOption(genTplCategoryRecord);
|
||||
|
Reference in New Issue
Block a user