Coder Social home page Coder Social logo

gencode's Introduction

1、生成独立的接口文件 2、生成服务端和客户端 3、生成错误码 4、生成接口文档 5、生成测试服务及对应的测试案例 6、配置格式key value, 只有接口字段的key的完整格式为[key, required, note, type] 除key外为可选如"name|||string" key:字段名 required:是否必传 note:字段描述 type:指定的字段类型 linux参考[example.py] windows参考[example_win.py] 7、通过cmake编译 8、对于go可以同时生成支持grpc, graphql, restful, 基于tcp的json, 即一个服务可以同时支持多个类型的接口,以及对应的接口测试文件

环境初始化: 先执行init.sh

[ubuntu] sudo apt install python3 python3-pip sudo pip3 install mako markdown -i https://pypi.tuna.tsinghua.edu.cn/simple 在.bashrc中添加 export PYTHONPATH=$PYTHONPATH:${根目录}

[centos] sudo yum install python3 python3-pip sudo pip3 install mako markdown -i https://pypi.tuna.tsinghua.edu.cn/simple 在.bashrc中添加 export PYTHONPATH=$PYTHONPATH:${根目录}

[windows] 手动安装python3 添加环境变量[PYTHONPATH]为[gencode]的目录 pip3 install mako markdown -i https://pypi.tuna.tsinghua.edu.cn/simple

gencode's People

Contributors

wangkaix avatar

Stargazers

IceCreamHacker avatar  avatar eliot 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.