✨ 新增几大中心功能
This commit is contained in:
@@ -7,9 +7,11 @@ type RouterGroup struct {
|
||||
JwtRouter
|
||||
SysRouter
|
||||
BaseRouter
|
||||
PublicAuthRouter
|
||||
InitRouter
|
||||
MenuRouter
|
||||
UserRouter
|
||||
InviteCodeRouter
|
||||
CasbinRouter
|
||||
AuthorityRouter
|
||||
DictionaryRouter
|
||||
@@ -39,4 +41,6 @@ var (
|
||||
dictionaryDetailApi = api.ApiGroupApp.SystemApiGroup.DictionaryDetailApi
|
||||
mcpApi = api.ApiGroupApp.SystemApiGroup.McpApi
|
||||
sysErrorApi = api.ApiGroupApp.SystemApiGroup.SysErrorApi
|
||||
publicAuthApi = api.ApiGroupApp.SystemApiGroup.PublicAuthApi
|
||||
inviteCodeApi = api.ApiGroupApp.SystemApiGroup.InviteCodeApi
|
||||
)
|
||||
|
||||
19
server/router/system/invite_code.go
Normal file
19
server/router/system/invite_code.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package system
|
||||
|
||||
import (
|
||||
"git.echol.cn/loser/Go-Web-Template/server/middleware"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
type InviteCodeRouter struct{}
|
||||
|
||||
func (s *InviteCodeRouter) InitInviteCodeRouter(Router *gin.RouterGroup) {
|
||||
group := Router.Group("user/invite-code").Use(middleware.OperationRecord())
|
||||
{
|
||||
group.POST("generate", inviteCodeApi.GenerateInviteCode)
|
||||
}
|
||||
groupWithoutRecord := Router.Group("user/invite-code")
|
||||
{
|
||||
groupWithoutRecord.GET("current", inviteCodeApi.CurrentInviteCode)
|
||||
}
|
||||
}
|
||||
14
server/router/system/public_auth.go
Normal file
14
server/router/system/public_auth.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package system
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
type PublicAuthRouter struct{}
|
||||
|
||||
// InitPublicAuthRouter public 注册状态与注册接口(不鉴权)
|
||||
func (s *PublicAuthRouter) InitPublicAuthRouter(PublicRouter *gin.RouterGroup) {
|
||||
registerRouter := PublicRouter.Group("public/auth/register")
|
||||
{
|
||||
registerRouter.GET("status", publicAuthApi.RegisterStatus)
|
||||
registerRouter.POST("", publicAuthApi.PublicRegister)
|
||||
}
|
||||
}
|
||||
@@ -18,8 +18,9 @@ func (s *SysParamsRouter) InitSysParamsRouter(Router *gin.RouterGroup, PublicRou
|
||||
sysParamsRouter.PUT("updateSysParams", sysParamsApi.UpdateSysParams) // 更新参数
|
||||
}
|
||||
{
|
||||
sysParamsRouterWithoutRecord.GET("findSysParams", sysParamsApi.FindSysParams) // 根据ID获取参数
|
||||
sysParamsRouterWithoutRecord.GET("getSysParamsList", sysParamsApi.GetSysParamsList) // 获取参数列表
|
||||
sysParamsRouterWithoutRecord.GET("getSysParam", sysParamsApi.GetSysParam) // 根据Key获取参数
|
||||
sysParamsRouterWithoutRecord.GET("findSysParams", sysParamsApi.FindSysParams) // 根据ID获取参数
|
||||
sysParamsRouterWithoutRecord.GET("getSysParamsList", sysParamsApi.GetSysParamsList) // 获取参数列表
|
||||
sysParamsRouterWithoutRecord.GET("getSysParam", sysParamsApi.GetSysParam) // 根据Key获取参数
|
||||
sysParamsRouterWithoutRecord.GET("getChangeLogList", sysParamsApi.GetSysParamChangeLogList) // 获取参数变更审计
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user