12345678910111213141516171819202122232425 |
- package system
- import (
- v1 "github.com/flipped-aurora/gin-vue-admin/server/api/v1"
- "github.com/flipped-aurora/gin-vue-admin/server/middleware"
- "github.com/gin-gonic/gin"
- )
- type UserRouter struct {
- }
- func (s *UserRouter) InitUserRouter(Router *gin.RouterGroup) {
- userRouter := Router.Group("user").Use(middleware.OperationRecord())
- var baseApi = v1.ApiGroupApp.SystemApiGroup.BaseApi
- {
- userRouter.POST("register", baseApi.Register)
- userRouter.POST("changePassword", baseApi.ChangePassword)
- userRouter.POST("getUserList", baseApi.GetUserList)
- userRouter.POST("setUserAuthority", baseApi.SetUserAuthority)
- userRouter.DELETE("deleteUser", baseApi.DeleteUser)
- userRouter.PUT("setUserInfo", baseApi.SetUserInfo)
- userRouter.POST("setUserAuthorities", baseApi.SetUserAuthorities)
- userRouter.GET("getUserInfo", baseApi.GetUserInfo)
- }
- }
|