123456789101112131415161718192021 |
- package handler
- import (
- "net/http"
- "app.yhyue.com/moapp/jyResourcesCenter/api/internal/logic"
- "app.yhyue.com/moapp/jyResourcesCenter/api/internal/svc"
- "github.com/zeromicro/go-zero/rest/httpx"
- )
- func ExportPersonalChargeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
- return func(w http.ResponseWriter, r *http.Request) {
- l := logic.NewExportPersonalChargeLogic(r.Context(), svcCtx)
- resp, err := l.ExportPersonalCharge()
- if err != nil {
- httpx.ErrorCtx(r.Context(), w, err)
- } else {
- httpx.OkJsonCtx(r.Context(), w, resp)
- }
- }
- }
|