acquirer_student_page_handler.go 527 B

12345678910111213141516171819202122
  1. package acquirer_student
  2. import (
  3. "git.i2edu.net/i2/i2-bill-api/internal/logic/acquirer_student"
  4. "net/http"
  5. "git.i2edu.net/i2/go-zero/rest/httpx"
  6. "git.i2edu.net/i2/i2-bill-api/internal/svc"
  7. )
  8. func AcquirerStudentPageHandler(ctx *svc.ServiceContext) http.HandlerFunc {
  9. return func(w http.ResponseWriter, r *http.Request) {
  10. l := acquirer_student.NewAcquirerStudentPageLogic(r.Context(), ctx)
  11. resp, err := l.AcquirerStudentPage(r)
  12. if err != nil {
  13. httpx.Error(w, err)
  14. } else {
  15. httpx.OkJson(w, resp)
  16. }
  17. }
  18. }