Git Product home page Git Product logo

register_protobuf's Introduction

协议定义

CLi

protoc --php_out=./protobuf/build protobuf/common.proto

bak

  • s 字段为所要调用的服务的名字

  • r 这个服务的路由

  • p 需要原样返回的数据

  • f 来自哪个服务

  • uq 本次请求的唯一ID,最少7位的英文数字混合,小写(服务间通讯不可用!)

  • un 请求的唯一性,1是唯一请求,只有一次返回消息, 0不唯一请求,会有多次返回消息(服务间通讯不可用!)

  • d 数据,本次请求所携带的数据 其他所有的字段都会被服务器抛弃 不能进行json格式化的数据,将会被服务器抛弃,并返回一个不带uq的错误提示 返回数据也采用json格式

  • st 服务和类型,分割符号-

  • m 消息,string

  • d 数据,不一定什么格式

  • e 错误信息,对象或者数组

  • p 收到的需要原样返回的数据

  • f 来自哪个服务

  • uq 对应请求的uq,string(服务间通讯不可用!)

register_protobuf's People

Contributors

dongasai 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.