Giter Club home page Giter Club logo

ts-modal-autocreate-from-yapi's Introduction

ts-modal-autocreate-from-yapi

ts-modal-autocreate-from-yapi 用于根据 YApi 的接口自动生成 service 接口及数据模型。让前端团队更多精力关注在页面实现上。目前工具处于测试阶段,可能存在较多问题。

features

  1. YApi 的响应模型里,默认读取 data 对象,不会处理 message、sucess、code 等字段;
  2. 插件会自动生成4个文件
    • public.types.ts: 将可能会在页面使用到的模型;
    • inputBo.types.ts: 接口请求中,query、body模型;
    • outputVo.types.ts: 接口返回参数的模型;
    • services.ts: 供页面调用的接口方法。

ts-modal-autocreate-from-yapi's People

Contributors

mr-pounds avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.