From a083b74f9bfbdbd70a7ea032995a3b18540fff3a Mon Sep 17 00:00:00 2001 From: maguodong Date: Wed, 8 Apr 2026 17:55:21 +0800 Subject: [PATCH] =?UTF-8?q?chore(gendao):=20=E6=9B=B4=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9D=83=E4=BF=A1=E6=81=AF=E5=B9=B6=E4=BF=AE=E6=94=B9=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E5=90=8D=E7=A7=B0=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 consts.go 文件中的版权注释 - 将模板文件中的 GoFrame CLI 工具标识替换为 Gin-base CLI 工具 - 更新 DO、Entity、Table 等模板中的自动生成声明 - 移除 mlog 和 utils 包中的版权注释 --- cmd/consts/consts_gen_dao_template_dao.go | 4 ++-- cmd/consts/consts_gen_dao_template_do.go | 2 +- cmd/consts/consts_gen_dao_template_entity.go | 2 +- cmd/consts/consts_gen_dao_template_table.go | 2 +- cmd/gendao/internal/consts/consts.go | 6 ------ cmd/gendao/internal/utility/mlog/mlog.go | 6 ------ cmd/gendao/internal/utility/utils/utils.go | 6 ------ 7 files changed, 5 insertions(+), 23 deletions(-) diff --git a/cmd/consts/consts_gen_dao_template_dao.go b/cmd/consts/consts_gen_dao_template_dao.go index 66e091d..5455dd8 100644 --- a/cmd/consts/consts_gen_dao_template_dao.go +++ b/cmd/consts/consts_gen_dao_template_dao.go @@ -8,7 +8,7 @@ package consts const TemplateGenDaoIndexContent = ` // ================================================================================= -// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed. +// This file is auto-generated by the Gin-base CLI tool. You may modify it as needed. // ================================================================================= package {{.TplPackageName}} @@ -59,7 +59,7 @@ func {{.TplTableNameCamelLowerCase}}ShardingHandler(m *database.Model) *database const TemplateGenDaoInternalContent = ` // ========================================================================== -// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. {{.TplCreatedAtDatetimeStr}} +// Code generated and maintained by Gin-base CLI tool. DO NOT EDIT. {{.TplCreatedAtDatetimeStr}} // ========================================================================== package internal diff --git a/cmd/consts/consts_gen_dao_template_do.go b/cmd/consts/consts_gen_dao_template_do.go index 97a404e..981d05e 100644 --- a/cmd/consts/consts_gen_dao_template_do.go +++ b/cmd/consts/consts_gen_dao_template_do.go @@ -8,7 +8,7 @@ package consts const TemplateGenDaoDoContent = ` // ================================================================================= -// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. {{.TplCreatedAtDatetimeStr}} +// Code generated and maintained by Gin-base CLI tool. DO NOT EDIT. {{.TplCreatedAtDatetimeStr}} // ================================================================================= package {{.TplPackageName}} diff --git a/cmd/consts/consts_gen_dao_template_entity.go b/cmd/consts/consts_gen_dao_template_entity.go index 69a53c8..247f09a 100644 --- a/cmd/consts/consts_gen_dao_template_entity.go +++ b/cmd/consts/consts_gen_dao_template_entity.go @@ -8,7 +8,7 @@ package consts const TemplateGenDaoEntityContent = ` // ================================================================================= -// Code generated and maintained by Gen CLI tool. DO NOT EDIT. {{.TplCreatedAtDatetimeStr}} +// Code generated and maintained by Gin-base CLI tool. DO NOT EDIT. {{.TplCreatedAtDatetimeStr}} // ================================================================================= package {{.TplPackageName}} diff --git a/cmd/consts/consts_gen_dao_template_table.go b/cmd/consts/consts_gen_dao_template_table.go index 8fe520b..8bbd292 100644 --- a/cmd/consts/consts_gen_dao_template_table.go +++ b/cmd/consts/consts_gen_dao_template_table.go @@ -8,7 +8,7 @@ package consts const TemplateGenTableContent = ` // ================================================================================= -// This file is auto-generated by the GoFrame CLI tool. You may modify it as needed. +// This file is auto-generated by the Gin-base CLI tool. You may modify it as needed. // ================================================================================= package {{.TplPackageName}} diff --git a/cmd/gendao/internal/consts/consts.go b/cmd/gendao/internal/consts/consts.go index cece25d..ab72444 100644 --- a/cmd/gendao/internal/consts/consts.go +++ b/cmd/gendao/internal/consts/consts.go @@ -1,9 +1,3 @@ -// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved. -// -// This Source Code Form is subject to the terms of the MIT License. -// If a copy of the MIT was not distributed with this file, -// You can obtain one at https://github.com/gogf/gf. - package consts const ( diff --git a/cmd/gendao/internal/utility/mlog/mlog.go b/cmd/gendao/internal/utility/mlog/mlog.go index 2181501..924390d 100644 --- a/cmd/gendao/internal/utility/mlog/mlog.go +++ b/cmd/gendao/internal/utility/mlog/mlog.go @@ -1,9 +1,3 @@ -// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved. -// -// This Source Code Form is subject to the terms of the MIT License. -// If a copy of the MIT was not distributed with this file, -// You can obtain one at https://github.com/gogf/gf. - package mlog import ( diff --git a/cmd/gendao/internal/utility/utils/utils.go b/cmd/gendao/internal/utility/utils/utils.go index 8080c82..682f422 100644 --- a/cmd/gendao/internal/utility/utils/utils.go +++ b/cmd/gendao/internal/utility/utils/utils.go @@ -1,9 +1,3 @@ -// Copyright GoFrame gf Author(https://goframe.org). All Rights Reserved. -// -// This Source Code Form is subject to the terms of the MIT License. -// If a copy of the MIT was not distributed with this file, -// You can obtain one at https://github.com/gogf/gf. - package utils import (