Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method, device and equipment for automatically generating and complementing front-end codes and rear-end codes based on gRPC

A technology for automatically generating and generating code, applied in the field of code generation, which can solve problems such as complex interface debugging, asynchronous front-end and back-end codes, and reduced program development efficiency for programmers

Pending Publication Date: 2021-04-09
SHANGHAI ZHONGTONGJI NETWORK TECH CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In the existing technology, the use of gRPC to develop services needs to be based on the protobuf protocol file (protobuf is a serialization framework open sourced by google, similar to xml, json, the biggest feature is based on binary, which is much shorter than the traditional XML representation of the same content Multiple) generate the corresponding code and then realize the corresponding business. The process is cumbersome and needs to write interface documents. The interface between the front and back ends is complicated to debug. There may be fields added in the back end, but the front end does not know it, resulting in out-of-sync codes between the front and back ends Phenomenon
This makes programmers perform repeated code reviews while completing their own work, which increases the workload of programmers and reduces the efficiency of program development for programmers.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and equipment for automatically generating and complementing front-end codes and rear-end codes based on gRPC
  • Method, device and equipment for automatically generating and complementing front-end codes and rear-end codes based on gRPC
  • Method, device and equipment for automatically generating and complementing front-end codes and rear-end codes based on gRPC

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described in detail below. Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other implementations obtained by persons of ordinary skill in the art without making creative efforts fall within the protection scope of the present invention.

[0033] In order to at least solve the technical problems raised in the present invention, an embodiment of the present invention provides a gRPC-based method for automatically generating and completing front-end and back-end codes.

[0034] figure 1 For a schematic flowchart of a method for automatically generating and completing front-end and back-end codes based on gRPC provided by the embodiment of the present invention, please refer to figure 1 , the metho...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method, device and equipment for automatically generating and complementing front-end codes and back-end codes based on gRPC, and belongs to the technical field of code generation. The method, device and equipment include obtaining gRPC protocol files; based on a preset code generation tool, according to the gRPC protocol file, automatically generating a full-stack framework of which the front end and the rear end are separated. Therefore, the front-end code and the rear-end code are automatically generated and complemented based on the gRPC, the working time of a programmer is saved, and unnecessary code review is reduced.

Description

technical field [0001] The invention belongs to the technical field of code generation, and in particular relates to a gRPC-based method, device and equipment for automatically generating and completing front-end and back-end codes. Background technique [0002] gRPC is a modern open source high-performance RPC (Remote Procedure Call, remote procedure call) framework that can run in any environment. [0003] In the existing technology, the use of gRPC to develop services needs to be based on the protobuf protocol file (protobuf is a serialization framework open sourced by google, similar to xml, json, the biggest feature is based on binary, which is much shorter than the traditional XML representation of the same content Multiple) generate the corresponding code and then realize the corresponding business. The process is cumbersome and needs to write interface documents. The interface between the front and back ends is complicated to debug. There may be fields added in the b...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/33G06F9/54
CPCG06F8/33G06F9/547
Inventor 何威振陈伟
Owner SHANGHAI ZHONGTONGJI NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products