Unlock instant, AI-driven research and patent intelligence for your innovation.

Model class file automatic generation method and device, storage medium and electronic equipment

An automatic generation and model technology, applied in the field of mobile Internet, can solve the problems of low work efficiency, achieve the effects of improving work efficiency, low error rate, and reducing the workload of writing

Pending Publication Date: 2022-03-04
北京自如信息科技有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In view of this, the embodiment of the present invention provides a method, device, storage medium and electronic equipment related to automatic generation of model class files to solve the technical problem of low work efficiency when writing model classes in the prior art

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
  • Model class file automatic generation method and device, storage medium and electronic equipment
  • Model class file automatic generation method and device, storage medium and electronic equipment
  • Model class file automatic generation method and device, storage medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.

[0028] As shown in the background art, when using the existing method to write model classes, manual writing is required. One of the writing methods is to open the interface document address, copy the json data, use a third-party tool to generate model code, copy the code generated by the third-party tool, paste it into the project, and then add correspo...

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 discloses a model class file automatic generation method and device, a storage medium and electronic equipment. The method comprises the steps that an interface document address is acquired; performing webpage analysis according to the interface document address to obtain a unique identifier; analyzing according to the unique identifier to obtain webpage data; and generating a model class file according to the json data and the annotation description information obtained by analyzing the webpage data. According to the model class file automatic generation method, the corresponding model class file can be automatically generated by inputting the interface document address, convenience and rapidness are achieved, and the working efficiency is greatly improved; meanwhile, the annotation description information in the model file is automatically generated, so that the error rate is low; moreover, when updating iteration is carried out, only a new model class file needs to be automatically generated to replace an old file, so that the writing workload is reduced.

Description

technical field [0001] The invention relates to the technical field of mobile Internet, in particular to a method, device, storage medium and electronic equipment for automatically generating model files. Background technique [0002] At present, in the code development process, in order to facilitate development and improve code readability and maintainability, it is necessary to create corresponding model classes. The code will be written by manipulating model class objects instead of directly manipulating complex data. [0003] When writing model classes on each platform, the following methods are usually used to achieve: first, manually write the code according to the interface documents negotiated by the front and back ends, and add code comment description information; second, copy the sample data, and use the json to model tool or web widget , converted to model classes of different platforms, and the annotation description information needs to be added manually. The...

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
IPC IPC(8): G06F8/30G06F8/35
CPCG06F8/315G06F8/35
Inventor 张燕伟
Owner 北京自如信息科技有限公司