This repository has been archived on 2024-11-28. You can view files and clone it, but cannot push or open issues or pull requests.
Files
schisandra-cloud-album/router/modules/auth_user_router.go
landaiqing 6148fc74c6 🎨 update models
2024-08-09 22:02:44 +08:00

20 lines
574 B
Go

package modules
import (
"github.com/gin-gonic/gin"
"schisandra-cloud-album/api"
)
var authApi = api.Api.AuthApi
func AuthRouter(router *gin.RouterGroup) {
group := router.Group("auth")
group.GET("/user/List", authApi.GetUserList)
group.GET("/user/query_by_username", authApi.QueryUserByUsername)
group.GET("/user/query_by_uuid", authApi.QueryUserByUuid)
group.DELETE("/user/delete", authApi.DeleteUser)
group.GET("/user/query_by_phone", authApi.QueryUserByPhone)
group.POST("/user/login", authApi.AccountLogin)
group.POST("/user/register", authApi.Register)
}