package handler import ( "net/http" "bp.jydev.jianyu360.cn/CRM/networkManage/api/internal/logic" "bp.jydev.jianyu360.cn/CRM/networkManage/api/internal/svc" "github.com/zeromicro/go-zero/rest/httpx" ) // 获取企业名单 func entNameListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { l := logic.NewEntNameListLogic(r.Context(), svcCtx) resp, err := l.EntNameList() if err != nil { httpx.ErrorCtx(r.Context(), w, err) } else { httpx.OkJsonCtx(r.Context(), w, resp) } } }