🎨 清理多余文件,修改项目model

This commit is contained in:
2026-04-10 15:38:58 +08:00
parent 6a80fcc388
commit f106960342
221 changed files with 686 additions and 2801 deletions

View File

@@ -1,6 +1,6 @@
package system
import api "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
import api "git.echol.cn/loser/Go-Web-Template/server/api/v1"
type RouterGroup struct {
ApiRouter

View File

@@ -1,7 +1,7 @@
package system
import (
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
"git.echol.cn/loser/Go-Web-Template/server/middleware"
"github.com/gin-gonic/gin"
)
@@ -22,11 +22,11 @@ func (s *ApiRouter) InitApiRouter(Router *gin.RouterGroup, RouterPub *gin.Router
apiRouter.POST("getApiById", apiRouterApi.GetApiById) // 获取单条Api消息
apiRouter.POST("updateApi", apiRouterApi.UpdateApi) // 更新api
apiRouter.DELETE("deleteApisByIds", apiRouterApi.DeleteApisByIds) // 删除选中api
apiRouter.POST("setApiRoles", apiRouterApi.SetApiRoles) // 全量覆盖API关联角色
apiRouter.POST("setApiRoles", apiRouterApi.SetApiRoles) // 全量覆盖API关联角色
}
{
apiRouterWithoutRecord.POST("getAllApis", apiRouterApi.GetAllApis) // 获取所有api
apiRouterWithoutRecord.POST("getApiList", apiRouterApi.GetApiList) // 获取Api列表
apiRouterWithoutRecord.POST("getAllApis", apiRouterApi.GetAllApis) // 获取所有api
apiRouterWithoutRecord.POST("getApiList", apiRouterApi.GetApiList) // 获取Api列表
apiRouterWithoutRecord.GET("getApiRoles", apiRouterApi.GetApiRoles) // 获取API关联角色ID列表
}
{

View File

@@ -1,8 +1,8 @@
package system
import (
"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
"git.echol.cn/loser/Go-Web-Template/server/api/v1"
"git.echol.cn/loser/Go-Web-Template/server/middleware"
"github.com/gin-gonic/gin"
)

View File

@@ -1,7 +1,7 @@
package system
import (
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
"git.echol.cn/loser/Go-Web-Template/server/middleware"
"github.com/gin-gonic/gin"
)
@@ -19,7 +19,7 @@ func (s *AuthorityRouter) InitAuthorityRouter(Router *gin.RouterGroup) {
authorityRouter.POST("setRoleUsers", authorityApi.SetRoleUsers) // 全量覆盖角色关联用户
}
{
authorityRouterWithoutRecord.POST("getAuthorityList", authorityApi.GetAuthorityList) // 获取角色列表
authorityRouterWithoutRecord.POST("getAuthorityList", authorityApi.GetAuthorityList) // 获取角色列表
authorityRouterWithoutRecord.GET("getUsersByAuthority", authorityApi.GetUsersByAuthority) // 获取角色关联用户ID列表
}
}

View File

@@ -1,7 +1,7 @@
package system
import (
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
"git.echol.cn/loser/Go-Web-Template/server/middleware"
"github.com/gin-gonic/gin"
)

View File

@@ -1,7 +1,7 @@
package system
import (
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
"git.echol.cn/loser/Go-Web-Template/server/middleware"
"github.com/gin-gonic/gin"
)

View File

@@ -1,7 +1,7 @@
package system
import (
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
"git.echol.cn/loser/Go-Web-Template/server/middleware"
"github.com/gin-gonic/gin"
)

View File

@@ -1,7 +1,7 @@
package system
import (
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
"git.echol.cn/loser/Go-Web-Template/server/middleware"
"github.com/gin-gonic/gin"
)
@@ -9,20 +9,20 @@ type SysErrorRouter struct{}
// InitSysErrorRouter 初始化 错误日志 路由信息
func (s *SysErrorRouter) InitSysErrorRouter(Router *gin.RouterGroup, PublicRouter *gin.RouterGroup) {
sysErrorRouter := Router.Group("sysError").Use(middleware.OperationRecord())
sysErrorRouterWithoutRecord := Router.Group("sysError")
sysErrorRouterWithoutAuth := PublicRouter.Group("sysError")
{
sysErrorRouter.DELETE("deleteSysError", sysErrorApi.DeleteSysError) // 删除错误日志
sysErrorRouter.DELETE("deleteSysErrorByIds", sysErrorApi.DeleteSysErrorByIds) // 批量删除错误日志
sysErrorRouter.PUT("updateSysError", sysErrorApi.UpdateSysError) // 更新错误日志
sysErrorRouter.GET("getSysErrorSolution", sysErrorApi.GetSysErrorSolution) // 触发错误日志处理
}
{
sysErrorRouterWithoutRecord.GET("findSysError", sysErrorApi.FindSysError) // 根据ID获取错误日志
sysErrorRouterWithoutRecord.GET("getSysErrorList", sysErrorApi.GetSysErrorList) // 获取错误日志列表
}
{
sysErrorRouterWithoutAuth.POST("createSysError", sysErrorApi.CreateSysError) // 新建错误日志
}
sysErrorRouter := Router.Group("sysError").Use(middleware.OperationRecord())
sysErrorRouterWithoutRecord := Router.Group("sysError")
sysErrorRouterWithoutAuth := PublicRouter.Group("sysError")
{
sysErrorRouter.DELETE("deleteSysError", sysErrorApi.DeleteSysError) // 删除错误日志
sysErrorRouter.DELETE("deleteSysErrorByIds", sysErrorApi.DeleteSysErrorByIds) // 批量删除错误日志
sysErrorRouter.PUT("updateSysError", sysErrorApi.UpdateSysError) // 更新错误日志
sysErrorRouter.GET("getSysErrorSolution", sysErrorApi.GetSysErrorSolution) // 触发错误日志处理
}
{
sysErrorRouterWithoutRecord.GET("findSysError", sysErrorApi.FindSysError) // 根据ID获取错误日志
sysErrorRouterWithoutRecord.GET("getSysErrorList", sysErrorApi.GetSysErrorList) // 获取错误日志列表
}
{
sysErrorRouterWithoutAuth.POST("createSysError", sysErrorApi.CreateSysError) // 新建错误日志
}
}

View File

@@ -1,7 +1,7 @@
package system
import (
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
"git.echol.cn/loser/Go-Web-Template/server/middleware"
"github.com/gin-gonic/gin"
)
@@ -26,7 +26,7 @@ func (s *SysExportTemplateRouter) InitSysExportTemplateRouter(Router *gin.Router
sysExportTemplateRouterWithoutRecord.GET("getSysExportTemplateList", exportTemplateApi.GetSysExportTemplateList) // 获取导出模板列表
sysExportTemplateRouterWithoutRecord.GET("exportExcel", exportTemplateApi.ExportExcel) // 获取导出token
sysExportTemplateRouterWithoutRecord.GET("exportTemplate", exportTemplateApi.ExportTemplate) // 导出表格模板
sysExportTemplateRouterWithoutRecord.GET("previewSQL", exportTemplateApi.PreviewSQL) // 预览SQL
sysExportTemplateRouterWithoutRecord.GET("previewSQL", exportTemplateApi.PreviewSQL) // 预览SQL
}
{
sysExportTemplateRouterWithoutAuth.GET("exportExcelByToken", exportTemplateApi.ExportExcelByToken) // 通过token导出表格

View File

@@ -1,8 +1,8 @@
package system
import (
"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
"git.echol.cn/loser/Go-Web-Template/server/api/v1"
"git.echol.cn/loser/Go-Web-Template/server/middleware"
"github.com/gin-gonic/gin"
)

View File

@@ -1,7 +1,7 @@
package system
import (
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
"git.echol.cn/loser/Go-Web-Template/server/middleware"
"github.com/gin-gonic/gin"
)

View File

@@ -1,7 +1,7 @@
package system
import (
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
"git.echol.cn/loser/Go-Web-Template/server/middleware"
"github.com/gin-gonic/gin"
)

View File

@@ -1,7 +1,7 @@
package system
import (
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
"git.echol.cn/loser/Go-Web-Template/server/middleware"
"github.com/gin-gonic/gin"
)

View File

@@ -1,7 +1,7 @@
package system
import (
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
"git.echol.cn/loser/Go-Web-Template/server/middleware"
"github.com/gin-gonic/gin"
)

View File

@@ -1,7 +1,7 @@
package system
import (
"github.com/flipped-aurora/gin-vue-admin/server/middleware"
"git.echol.cn/loser/Go-Web-Template/server/middleware"
"github.com/gin-gonic/gin"
)