PaymentCenter/app/http/controllers/backend/user.go

25 lines
497 B
Go

package backend
import (
"github.com/gin-gonic/gin"
"qteam/app/http/controllers"
"qteam/app/http/entities/backend"
"qteam/app/services"
)
func Login(c *gin.Context) {
}
func UserList(c *gin.Context) {
request := controllers.GetRequest(c).(backend.UserListRequest)
where := map[string]interface{}{
"Mobile": request.Mobile,
}
count, list, err := services.GetListByWhere(where, request.Page, request.Limit)
controllers.HandRes(c, gin.H{"data": list, "count": count}, err)
return
}