// Code scaffolded by goctl. Safe to edit. // goctl 1.9.2 package ai import ( "net/http" "github.com/youruser/base/internal/logic/ai" "github.com/youruser/base/internal/svc" "github.com/zeromicro/go-zero/rest/httpx" ) // 获取我的配额 func AiQuotaMeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { l := ai.NewAiQuotaMeLogic(r.Context(), svcCtx) resp, err := l.AiQuotaMe() if err != nil { httpx.ErrorCtx(r.Context(), w, err) } else { httpx.OkJsonCtx(r.Context(), w, resp) } } }