From 505ba49a5304fb3e2ba655dea901cd5e3ea74673 Mon Sep 17 00:00:00 2001 From: Charles7c Date: Wed, 20 Dec 2023 20:37:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E7=94=9F?= =?UTF-8?q?=E6=88=90=E9=A2=84=E8=A7=88=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=A4=8D=E5=88=B6=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.增加复制按钮 2.移除模板内协议头信息 --- .../templates/generator/Controller.ftl | 16 ----- .../templates/generator/DetailResp.ftl | 16 ----- .../resources/templates/generator/Entity.ftl | 16 ----- .../resources/templates/generator/Mapper.ftl | 16 ----- .../resources/templates/generator/Query.ftl | 16 ----- .../resources/templates/generator/Req.ftl | 16 ----- .../resources/templates/generator/Resp.ftl | 16 ----- .../resources/templates/generator/Service.ftl | 16 ----- .../templates/generator/ServiceImpl.ftl | 16 ----- .../src/views/tool/generator/index.vue | 70 +++++++++++++++---- 10 files changed, 55 insertions(+), 159 deletions(-) diff --git a/continew-admin-tool/src/main/resources/templates/generator/Controller.ftl b/continew-admin-tool/src/main/resources/templates/generator/Controller.ftl index 30befa34..18e82a65 100644 --- a/continew-admin-tool/src/main/resources/templates/generator/Controller.ftl +++ b/continew-admin-tool/src/main/resources/templates/generator/Controller.ftl @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package ${packageName}.${subPackageName}; import top.charles7c.continew.starter.extension.crud.enums.Api; diff --git a/continew-admin-tool/src/main/resources/templates/generator/DetailResp.ftl b/continew-admin-tool/src/main/resources/templates/generator/DetailResp.ftl index 5914739f..b54543c7 100644 --- a/continew-admin-tool/src/main/resources/templates/generator/DetailResp.ftl +++ b/continew-admin-tool/src/main/resources/templates/generator/DetailResp.ftl @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package ${packageName}.${subPackageName}; import java.io.Serial; diff --git a/continew-admin-tool/src/main/resources/templates/generator/Entity.ftl b/continew-admin-tool/src/main/resources/templates/generator/Entity.ftl index 64358d61..84878650 100644 --- a/continew-admin-tool/src/main/resources/templates/generator/Entity.ftl +++ b/continew-admin-tool/src/main/resources/templates/generator/Entity.ftl @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package ${packageName}.${subPackageName}; import java.io.Serial; diff --git a/continew-admin-tool/src/main/resources/templates/generator/Mapper.ftl b/continew-admin-tool/src/main/resources/templates/generator/Mapper.ftl index 27784f0d..92d5145a 100644 --- a/continew-admin-tool/src/main/resources/templates/generator/Mapper.ftl +++ b/continew-admin-tool/src/main/resources/templates/generator/Mapper.ftl @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package ${packageName}.${subPackageName}; import top.charles7c.continew.starter.extension.crud.base.BaseMapper; diff --git a/continew-admin-tool/src/main/resources/templates/generator/Query.ftl b/continew-admin-tool/src/main/resources/templates/generator/Query.ftl index eb6671cd..1be09674 100644 --- a/continew-admin-tool/src/main/resources/templates/generator/Query.ftl +++ b/continew-admin-tool/src/main/resources/templates/generator/Query.ftl @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package ${packageName}.${subPackageName}; import java.io.Serial; diff --git a/continew-admin-tool/src/main/resources/templates/generator/Req.ftl b/continew-admin-tool/src/main/resources/templates/generator/Req.ftl index 5cf5cad3..d3702379 100644 --- a/continew-admin-tool/src/main/resources/templates/generator/Req.ftl +++ b/continew-admin-tool/src/main/resources/templates/generator/Req.ftl @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package ${packageName}.${subPackageName}; import java.io.Serial; diff --git a/continew-admin-tool/src/main/resources/templates/generator/Resp.ftl b/continew-admin-tool/src/main/resources/templates/generator/Resp.ftl index 9cc0bf01..4203f7b3 100644 --- a/continew-admin-tool/src/main/resources/templates/generator/Resp.ftl +++ b/continew-admin-tool/src/main/resources/templates/generator/Resp.ftl @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package ${packageName}.${subPackageName}; import java.io.Serial; diff --git a/continew-admin-tool/src/main/resources/templates/generator/Service.ftl b/continew-admin-tool/src/main/resources/templates/generator/Service.ftl index 80a593ff..47299228 100644 --- a/continew-admin-tool/src/main/resources/templates/generator/Service.ftl +++ b/continew-admin-tool/src/main/resources/templates/generator/Service.ftl @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package ${packageName}.${subPackageName}; import top.charles7c.continew.starter.extension.crud.base.BaseService; diff --git a/continew-admin-tool/src/main/resources/templates/generator/ServiceImpl.ftl b/continew-admin-tool/src/main/resources/templates/generator/ServiceImpl.ftl index 12da826c..80f50e26 100644 --- a/continew-admin-tool/src/main/resources/templates/generator/ServiceImpl.ftl +++ b/continew-admin-tool/src/main/resources/templates/generator/ServiceImpl.ftl @@ -1,19 +1,3 @@ -/* - * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - package ${packageName}.${subPackageName}; import lombok.RequiredArgsConstructor; diff --git a/continew-admin-ui/src/views/tool/generator/index.vue b/continew-admin-ui/src/views/tool/generator/index.vue index 2e4b4494..ab25d67d 100644 --- a/continew-admin-ui/src/views/tool/generator/index.vue +++ b/continew-admin-ui/src/views/tool/generator/index.vue @@ -286,26 +286,38 @@ render-to-body @cancel="handlePreviewCancel" > - - - + + - - - - + + 复制 + + + + + + + +