user.go 248 B

123456789101112131415
  1. package main
  2. import (
  3. "net/http"
  4. "sparrow/pkg/models"
  5. "github.com/martini-contrib/render"
  6. )
  7. // UserLogin 用户登陆
  8. func UserLogin(loginRequest models.LoginRequest, r render.Render) {
  9. err :=
  10. r.JSON(http.StatusOK, loginRequest)
  11. return
  12. }