➕ add swagger
This commit is contained in:
19
api/auth_api/auth_api.go
Normal file
19
api/auth_api/auth_api.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package auth_api
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"schisandra-cloud-album/common/result"
|
||||
"schisandra-cloud-album/service"
|
||||
)
|
||||
|
||||
var authService = service.Service.AuthService
|
||||
|
||||
// GetUserList
|
||||
// @Summary 获取所有用户列表
|
||||
// @Tags 鉴权模块
|
||||
// @Success 200 {string} json
|
||||
// @Router /api/auth/user/List [get]
|
||||
func (AuthAPI) GetUserList(c *gin.Context) {
|
||||
userList := authService.GetUserList()
|
||||
result.OkWithData(userList, c)
|
||||
}
|
Reference in New Issue
Block a user