mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 10:55:51 +02:00
[frontend-next] bug fix
This commit is contained in:
parent
2a13103186
commit
070c53b0b2
26 changed files with 414 additions and 345 deletions
|
@ -11,18 +11,9 @@ import (
|
|||
)
|
||||
|
||||
func GetUsers(c *gin.Context) {
|
||||
curd := model.NewCurd(&model.Auth{})
|
||||
data := model.GetUserList(c, c.Query("name"))
|
||||
|
||||
var list []model.Auth
|
||||
err := curd.GetList(&list)
|
||||
|
||||
if err != nil {
|
||||
ErrHandler(c, err)
|
||||
return
|
||||
}
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"data": list,
|
||||
})
|
||||
c.JSON(http.StatusOK, data)
|
||||
}
|
||||
|
||||
func GetUser(c *gin.Context) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue