✨ 新增几大中心功能
This commit is contained in:
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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user