[frontend-next] bug fix

This commit is contained in:
0xJacky 2022-08-02 13:03:51 +08:00
parent 2a13103186
commit 070c53b0b2
26 changed files with 414 additions and 345 deletions

View file

@ -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) {