19 lines
444 B
Go
19 lines
444 B
Go
package app
|
|
|
|
import (
|
|
api "git.echol.cn/loser/Go-Web-Template/server/api/v1"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
var inviteCodeApi = api.ApiGroupApp.AppApiGroup.InviteCodeApi
|
|
|
|
type InviteCodeRouter struct{}
|
|
|
|
func (s *InviteCodeRouter) InitInviteCodeRouter(Router *gin.RouterGroup) {
|
|
group := Router.Group("app/invite-code")
|
|
{
|
|
group.POST("generate", inviteCodeApi.GenerateInviteCode)
|
|
group.GET("current", inviteCodeApi.CurrentInviteCode)
|
|
}
|
|
}
|