// Code scaffolded by goctl. Safe to edit. // goctl 1.9.2 package common import ( "net/http" "github.com/zero-ppanel/zero-ppanel/apps/api/internal/logic/common" "github.com/zero-ppanel/zero-ppanel/apps/api/internal/svc" "github.com/zeromicro/go-zero/rest/httpx" ) func GetAvailablePaymentMethodsHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { l := common.NewGetAvailablePaymentMethodsLogic(r.Context(), svcCtx) resp, err := l.GetAvailablePaymentMethods() if err != nil { httpx.ErrorCtx(r.Context(), w, err) } else { httpx.OkJsonCtx(r.Context(), w, resp) } } }