Data request method and device

By providing data request methods and devices in the B/S system architecture of servers and client terminals, the problems of complex environment configuration and inefficient development mode in application development are solved, online code writing and development are realized, and development efficiency and code quality are improved.

CN119917072APending Publication Date: 2025-05-02CHINA SHIP DEV & DESIGN CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411957753.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-05-02

AI Technical Summary

Technical Problem

The existing technology has complex environmental configuration and inefficient development models in the application development process, resulting in limited development efficiency and engineering progress, especially in the efficient online development and management of JavaScript applications.

Method used

Provide a data request method and device, through the B/S system architecture of the server and multiple client terminals, receive data requests from the client terminal, determine the corresponding service model, and perform corresponding operations using the instance objects in the pre-established database, to realize online code writing and development.

Benefits of technology

It realizes online code writing and development of applications, avoids the impact of local environment configuration problems on development efficiency and engineering progress, standardizes the componentized development model, improves the development quality of the code, and allows the integrated development environment to be self-iteratively optimized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119917072A_ABST
    Figure CN119917072A_ABST
Patent Text Reader

Abstract

The invention provides a data request method and device, which are applied to a server, the server is connected with a plurality of client terminals, the server and the client terminals are B / S system architectures, and the method comprises the following steps: receiving data requests sent by the plurality of client terminals; determining a service model corresponding to the data request according to the data request; according to the service model and the pre-established database, the instance object corresponding to the service model is determined, the instance object is adopted to execute the operation corresponding to the data request, online code writing and development of the application program are achieved, and the situation that the development efficiency and the project progress are affected due to the configuration problem of the local environment is avoided; according to the method, a componentized development mode is standardized, developers create projects according to component levels, published applications are mutually independent and can be independently quoted to new development projects, coupling is low, stability is high, and code development quality is guaranteed; the integrated development environment is self-iterative, and the development environment can be optimized through a self-development mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer technology, and in particular relates to a data request method and device. Background Art

[0002] During application development, due to functional requirements for code writing and debugging, existing IDEs are often used to build local development environments. This local development model often requires complex and extensive environment configurations and places high demands on compilation performance. Team collaboration on large-scale software projects also requires a code repository management model, which severely limits application development efficiency.

[0003] Mainstream online integrated development platforms are detached from programming itself, lacking flexibility in system design and development, and requiring extensive user training. Furthermore, when integrating with third-party systems, developers lack access to the platform's internal functional logic, creating integration security risks and vulnerabilities.

[0004] JavaScript applications access their execution results through a browser, while debugging and development work are deployed in a separate local environment. This results in a long software product lifecycle, a lack of persistent connection services, and an inability to reuse existing services and information resources. Therefore, to ensure efficient online application development and management, there is an urgent need to build a development environment that integrates development, debugging, and deployment. Therefore, providing a data request method and device has become a technical challenge that urgently needs to be addressed in this field. Summary of the Invention

[0005] The purpose of the present invention is to provide a data request method and device.

[0006] According to a first aspect of the present invention, a data request is provided, which is applied to a server, wherein the server is connected to a plurality of client terminals, and the server and the client terminals form a B / S system architecture. The method includes:

[0007] receiving data requests sent by multiple client terminals;

[0008] Determining, according to the data request, a service model corresponding to the data request;

[0009] According to the service model and a pre-established database, an instance object corresponding to the service model is determined, and the operation corresponding to the data request is performed using the instance object.

[0010] Optionally, receiving data requests sent by multiple client terminals includes:

[0011] Receive data requests sent by multiple client terminals through a pre-packaged service interface.

[0012] Optionally, the service model is obtained by building a class system framework using JavaScript's prototype chain to construct service models corresponding to different data requests, and defining, compiling and debugging the service model.

[0013] Optionally, determining an instance object corresponding to the service model based on the service model and a pre-established database, and using the instance object to perform an operation corresponding to the data request includes:

[0014] Encapsulate data requests through the agent service model;

[0015] Access to the database persistence layer odb service is centralized through the Set collection class of the ont service. The request includes object oid, object type, and method name parameters.

[0016] Specify preset objects or execute preset services according to parameters, operate on instance objects in the database, and complete the specified allocation and execution of client requests.

[0017] Optionally, the method further includes:

[0018] Build a client terminal interaction interface, define the global HighCloud object and create, set, and remove methods to implement addition and deletion checks on server-side model objects, and encapsulate object methods using the invoke interaction method based on the object returned by the server. When the object calls the method, the trigger request is indexed by the back-end service interface to create a service object to execute the corresponding method.

[0019] Optionally, the method further includes:

[0020] The project directory is displayed on the server interface, wherein the project directory includes at least components and component information. The component information includes component types, which cover Ext basic types and custom types. Each component also includes script files for methods, events, declarations, initialization, and configuration. The scripts are edited using the built-in code editor.

[0021] According to a second aspect of the present invention, a data request device is provided, which is applied to a server, wherein the server is connected to a plurality of client terminals, and the server and the client terminals form a B / S system architecture. The device comprises:

[0022] A receiving module, configured to receive data requests sent by multiple client terminals;

[0023] A determination module, configured to determine a service model corresponding to the data request according to the data request;

[0024] An execution module is used to determine an instance object corresponding to the service model based on the service model and a pre-established database, and use the instance object to execute an operation corresponding to the data request.

[0025] Optionally, the receiving module is configured to:

[0026] Receive data requests sent by multiple client terminals through a pre-packaged service interface.

[0027] Optionally, the service model is obtained by building a class system framework using JavaScript's prototype chain to construct service models corresponding to different data requests, and defining, compiling and debugging the service model.

[0028] Optionally, the execution module is used to:

[0029] Encapsulate data requests through the agent service model;

[0030] Access to the database persistence layer odb service is centralized through the Set collection class of the ont service. The request includes object oid, object type, and method name parameters.

[0031] Specify preset objects or execute preset services according to parameters, operate on instance objects in the database, and complete the specified allocation and execution of client requests.

[0032] Optionally, the execution module is used to:

[0033] Build a client terminal interaction interface, define the global HighCloud object and create, set, and remove methods to implement addition and deletion checks on server-side model objects, and encapsulate object methods using the invoke interaction method based on the object returned by the server. When the object calls the method, the trigger request is indexed by the back-end service interface to create a service object to execute the corresponding method.

[0034] Optionally, the execution module is used to:

[0035] The project directory is displayed on the server interface, wherein the project directory includes at least components and component information. The component information includes component types, which cover Ext basic types and custom types. Each component also includes script files for methods, events, declarations, initialization, and configuration. The scripts are edited using the built-in code editor.

[0036] In a third aspect, the present application shows an electronic device, which includes: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the method described in any of the above aspects.

[0037] In a fourth aspect, the present application shows a non-temporary computer-readable storage medium, which, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute the method described in any of the above aspects.

[0038] In a fifth aspect, the present application illustrates a computer program product. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the method as described in any one of the above aspects.

[0039] The beneficial effects brought about by the present invention are as follows:

[0040] It can be seen from the above scheme that an embodiment of the present invention provides a data request method and device, which are applied to a server, and the server is connected to multiple client terminals. The server and the client terminals are a B / S system architecture. The method includes: receiving data requests sent by multiple client terminals; determining a service model corresponding to the data request based on the data request; determining an instance object corresponding to the service model based on the service model and a pre-established database, and using the instance object to perform operations corresponding to the data request, thereby realizing online code writing and development of applications, avoiding the impact of local environment configuration problems on development efficiency and project progress; standardizing a componentized development model, developers create projects based on component hierarchies, and published applications are independent of each other and can be individually referenced in new development projects, with low coupling and high stability, ensuring the quality of code development; the integrated development environment is self-iterating and can optimize the development environment itself through its own development model. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A schematic diagram of a flow chart of a data request method provided according to an embodiment;

[0042] Figure 2 A schematic diagram of a system framework of an online integrated development environment for JavaScript applications provided according to an embodiment;

[0043] Figure 3 A schematic diagram of an online integrated development process for a JavaScript application provided according to an embodiment;

[0044] Figure 4 A schematic diagram of a project directory of a JavaScript application provided according to an embodiment;

[0045] Figure 5 Program code generated by compiling a JavaScript application provided according to an embodiment;

[0046] Figure 6A schematic diagram of an online integrated development environment for JavaScript applications provided according to an embodiment;

[0047] Figure 7 This is a structural block diagram of a data request device of the present application.

[0048] Figure 8 This is a block diagram of an electronic device of the present application.

[0049] Figure 9 This is a block diagram of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0050] To make the objectives, technical solutions, and advantages of the present invention more clear, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the present invention.

[0051] Reference Figure 1 , shows a flowchart of the steps of a data request method of the present application. The method can be applied to a server, where the server is connected to multiple client terminals, and the server and the client terminals form a B / S system architecture. The method may specifically include the following steps:

[0052] S101, receiving data requests sent by multiple client terminals;

[0053] S102: Determine a service model corresponding to the data request according to the data request;

[0054] S103: Determine an instance object corresponding to the service model based on the service model and a pre-established database, and use the instance object to execute an operation corresponding to the data request.

[0055] The embodiment of the present application is an online integrated development environment based on JavaScript applications. The environment is based on the B / S system architecture, builds the main service nodes of the server and the Web application, and uses the interactive module of the web application to realize HTTP data interaction with the unified service interface of the server. When developing a web application project, the interactive interface can be used to access the server data model and specific services to realize online compilation, debugging and management of the application.

[0056] Another embodiment of the present application further supplements the data request method provided in the above embodiment.

[0057] In order to improve the development efficiency of JavaScript applications and solve the main drawbacks of online collaborative development, it is necessary to design an online integrated development environment for JavaScript applications based on its technical characteristics and development model.

[0058] The following problems exist during the development and operation of JavaScript applications:

[0059] 1) How to configure the development environment at zero cost and reduce changes in configuration items;

[0060] 2) How to generate application running results online and modify and debug;

[0061] 3) How to implement code hosting and collaborative development services.

[0062] To this end, the present invention provides an online integrated development environment for JavaScript applications that can solve the above-mentioned problems, build compilation, debugging and platform management services, and establish a collaborative and efficient development mechanism.

[0063] Optionally, receiving data requests sent by multiple client terminals includes:

[0064] Receive data requests sent by multiple client terminals through a pre-packaged service interface.

[0065] The server mainly obtains the data model structure based on different services, implements the definition and operation of data instances, and uses a unified class model to implement the interface encapsulation of client request methods.

[0066] The service interface encapsulation of the server adopts an object-oriented interaction mechanism, and the service is bound to the model method. The client can judge the service function according to the object type and call it directly. The front-end interaction module uses the type of object instance and the service method as parameters to initiate a request. The service interface specifies the back-end object according to the parameter allocation and calls the method to return the data result.

[0067] Optionally, the service model is obtained by building a class system framework using JavaScript's prototype chain to construct service models corresponding to different data requests, and defining, compiling and debugging the service model.

[0068] The server-side compilation service, debugging service, and platform management service are all based on object-oriented service mechanisms.

[0069] Optionally, based on the service model and a pre-established database, determining an instance object corresponding to the service model, and using the instance object to perform an operation corresponding to the data request, includes:

[0070] Encapsulate data requests through the agent service model;

[0071] Access to the database persistence layer odb service is centralized through the Set collection class of the ont service. The request includes object oid, object type, and method name parameters.

[0072] Specify preset objects or execute preset services according to parameters, operate on instance objects in the database, and complete the specified allocation and execution of client requests.

[0073] Optionally, the method further includes:

[0074] Build a client terminal interaction interface, define the global HighCloud object and create, set, and remove methods to implement addition and deletion checks on server-side model objects, and encapsulate object methods using the invoke interaction method based on the object returned by the server. When the object calls the method, the trigger request is indexed by the back-end service interface to create a service object to execute the corresponding method.

[0075] Specifically, the web application development module creates a development project based on the MVC architecture, consisting of a control unit, functional models, and application components. The control unit encapsulates the application's development logic and data requests, and uses object interaction mechanisms to leverage the front-end interactive interface to call the model to process requests or forward requests to another control unit for processing and distribution.

[0076] The functional model holds the data, status and entire engineering logic returned by the server, performs calculations based on the request results of the control unit, and returns them to the application component for view update.

[0077] The application component is based on the Extjs front-end architecture, defines the project hierarchy, type and style configuration through a tree structure, uses common functional components to design web elements, and defines program interaction functions.

[0078] The web application writes and instantiates the code through the defined code editor, and uses the interactive module to request the code saving service of the script object, so that the code is stored in the database in text form and is associated with the application component.

[0079] Optionally, the method further includes:

[0080] The project directory is displayed on the server interface, where the project directory includes at least components and component information. The component information includes component types, which cover Ext basic types and custom types. Each component also includes script files for methods, events, declarations, initialization, and configuration. The scripts are edited using the built-in code editor.

[0081] like Figure 2As shown, the compilation of the application project will traverse the functional data model of the entire project according to the defined hierarchical structure, compile it level by level, generate executable code at the specified location according to the template architecture, and feed back to the front-end for operation and analysis.

[0082] When the debugging service compiles the project code, it will mark the front of each front-end script. If an error event is triggered during parsing, the specific mark will be indexed to achieve automatic positioning of the code script.

[0083] The platform service can update the compiled version and released version of the engineering code. After the system is released, it can be referenced and created in different applications through the interactive module.

[0084] like Figure 3 As shown, to achieve online development of JavaScript applications, use the integrated development environment to create, debug and collaboratively develop application projects. The specific steps are as follows:

[0085] Step 1. Log in to the integrated development environment platform;

[0086] Step 2: Create a new project application and define the name;

[0087] Step 3. Create a new application component and define its name and type, which will be used for the basic component categories or inheritance relationships at different hierarchical levels.

[0088] Step 4. Create a new configuration to describe the basic properties of the component;

[0089] Step 5. Create a new method script and define a specific name to describe the specific method of the component. You can define the data retrieval and update method based on the global method of the front-end interaction module.

[0090] Step 6. Define the event script and define the name to describe the custom action and monitoring properties of the component;

[0091] Step 7. Create a new style sheet to describe the rendering style of the entire project;

[0092] Step 8: Create a new reference library to reference project components of other applications. The referenced items can be instantiated and used as application components.

[0093] Step 8. Set up the startup component, compile the project application, trigger the server compilation service, return and execute the "executable project code", and execute and render it to the specified section on the front end;

[0094] Step 9: For abnormal situations, you can trigger the debugging service, execute the project code, locate the specified error node in the project tree, and mark it.

[0095] Step 10: Publish the project reference, trigger the platform service, and update the executable project version. You can reference some application components of the application through global methods.

[0096] This integrated development environment is designed based on the B / S program architecture, supports multi-user single-node concurrency, and interacts based on a unified database. When developers maintain the same project file, each project file will record the changer and change time, and update the latest status of the code in the database in real time, effectively resolving the conflict mechanism of collaborative code compilation by multiple people.

[0097] First, complete the construction of the service and interaction interface. The server adopts a model-driven service architecture, builds an integrated development environment business model, uses JavaScript's prototype chain to build a class system framework, and defines service models such as compilation and debugging. The service interface adopts a unified routing interface and encapsulates the request method through the agent service model. The Set collection class of the ONT service is used to centrally access the database persistence layer ODB service. The request covers parameters such as object OID, object type, method name, etc. Based on the parameters, an object is specified or a service is executed, and the instance objects in the database are operated to complete the specified allocation and execution of the client request.

[0098] Build a client interaction interface, define the global HighCloud object and create, set, and remove methods to implement addition and deletion checks on server-side model objects, and encapsulate object methods using the invoke interaction method based on the object returned by the server. When the object calls the method, the trigger request is indexed by the back-end service interface to create a service object to execute the corresponding method.

[0099] Develop applications in an integrated development environment, press Figure 3 The following operation flow is used to build the project directory for the integrated development application. First, create the application in the project folder on the left, right-click to add a component, and define the component type. Component types include Ext basic types and custom types.

[0100] Each component can create script files for methods, events, declarations, initialization, and configuration. These scripts can be edited using the built-in code editor and saved in real time through the system's platform services. Configuration items define the component's primary property values, and specific configuration items must remain consistent with the component's original definition.

[0101] Create a stylesheet in the application directory and define the CSS script styles at this level using the code editor. Reference libraries in the application directory to reference functional components from other applications. These components can be used as references to instantiate or derive other components.

[0102] After completing the above steps, the project directory will be as follows: Figure 4 Before the application is compiled and run, a component must be set as the startup item. When the project is compiled, all components under the application will be compiled one by one. The compilation of the components will generate code according to the specified strategy. The startup item component will be executed as the program entry. The compiled code is as follows Figure 5 The server returns the compilation result to the front-end for parsing and execution. If the compilation result passes, the running and operation interface is added to the viewport. Otherwise, the debugging service can be used to locate the specified location of the error script and mark the breakpoint.

[0103] After the application is compiled without any exceptions, it can be published. After publication, the application can be installed and used through the platform's unified entrance. The application components defined within it can be used as development resources in the development process of other applications.

[0104] The application online integrated development environment proposed in this application is also a development application project that can complete its own optimization iteration, such as Figure 6 As shown in the figure, as a development service platform, developers can log in and establish a connection to collaboratively edit multiple components of the application and verify code files in real time, enabling all the above steps to be completed remotely online.

[0105] It should be noted that each implementable method in this embodiment can be implemented separately, or can be implemented in combination in any combination without conflict, and this application does not limit it.

[0106] An embodiment of the present invention provides a data request method, which is applied to a server, wherein the server is connected to multiple client terminals, and the server and the client terminals form a B / S system architecture. The method includes: receiving data requests sent by multiple client terminals; determining a service model corresponding to the data request based on the data request; determining an instance object corresponding to the service model based on the service model and a pre-established database, and using the instance object to execute an operation corresponding to the data request, thereby realizing online code writing and development of an application, avoiding the impact of local environment configuration problems on development efficiency and project progress; standardizing a componentized development model, wherein developers create projects based on component hierarchies, and published applications are independent of each other and can be individually referenced in new development projects, with low coupling and high stability, thereby ensuring code development quality; and an integrated development environment is self-iterative and can optimize the development environment itself through its own development model.

[0107] Another embodiment of the present application provides a data requesting device, which is used to execute the data requesting method provided in the above embodiment.

[0108] like Figure 7The figure shows a schematic diagram of the structure of the data request device provided in an embodiment of the present application. The device is applied to a server, which is connected to multiple client terminals. The server and the client terminals form a B / S system architecture. The device includes:

[0109] The receiving module 701 is used to receive data requests sent by multiple client terminals;

[0110] The determination module 702 is used to determine the service model corresponding to the data request according to the data request;

[0111] The execution module 703 is used to determine the instance object corresponding to the service model according to the service model and a pre-established database, and use the instance object to execute the operation corresponding to the data request.

[0112] Regarding the device in this embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method and will not be elaborated here.

[0113] Another embodiment of the present application further supplements the data request device provided in the above embodiment.

[0114] Optionally, the receiving module is configured to:

[0115] Receive data requests sent by multiple client terminals through a pre-packaged service interface.

[0116] Optionally, the service model is obtained by building a class system framework using JavaScript's prototype chain to construct service models corresponding to different data requests, and defining, compiling and debugging the service model.

[0117] Optionally, an execution module is configured to:

[0118] Encapsulate data requests through the agent service model;

[0119] Access to the database persistence layer odb service is centralized through the Set collection class of the ont service. The request includes object oid, object type, and method name parameters.

[0120] Specify preset objects or execute preset services according to parameters, operate on instance objects in the database, and complete the specified allocation and execution of client requests.

[0121] Optionally, an execution module is configured to:

[0122] Build a client terminal interaction interface, define the global HighCloud object and create, set, and remove methods to implement addition and deletion checks on server-side model objects, and encapsulate object methods using the invoke interaction method based on the object returned by the server. When the object calls the method, the trigger request is indexed by the back-end service interface to create a service object to execute the corresponding method.

[0123] Optionally, an execution module is configured to:

[0124] The project directory is displayed on the server interface, where the project directory includes at least components and component information. The component information includes component types, which cover Ext basic types and custom types. Each component also includes script files for methods, events, declarations, initialization, and configuration. The scripts are edited using the built-in code editor.

[0125] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0126] An embodiment of the present invention provides a data request device, which is applied to a server, wherein the server is connected to multiple client terminals, and the server and the client terminals form a B / S system architecture. The method includes: receiving data requests sent by multiple client terminals; determining a service model corresponding to the data request based on the data request; determining an instance object corresponding to the service model based on the service model and a pre-established database, and using the instance object to execute operations corresponding to the data request, thereby realizing online code writing and development of application programs, avoiding the impact of local environment configuration problems on development efficiency and project progress; standardizing a componentized development model, wherein developers create projects based on component hierarchies, and published applications are independent of each other and can be individually referenced in new development projects, with low coupling and high stability, thereby ensuring code development quality; and the integrated development environment is self-iterative and can optimize the development environment itself through its own development model.

[0127] Optionally, an embodiment of the present application also provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0128] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the various processes of the above-described method embodiments are implemented and the same technical effects are achieved. To avoid repetition, the details are not described here. The computer-readable storage medium may be, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0129] Figure 8 8 is a block diagram of an electronic device 800 shown in the present application. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0130] Reference Figure 8 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output (I / O) interface 812 , a sensor component 814 , and a communication component 816 .

[0131] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 802 may include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.

[0132] The memory 804 is configured to store various types of data to support operations on the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, images, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0133] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.

[0134] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.

[0135] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0136] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.

[0137] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor assembly 814 can also detect changes in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and temperature changes of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0138] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast operation information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0139] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.

[0140] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by the processor 820 of the electronic device 800 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0141] Figure 919 is a block diagram of a computer-readable storage medium 1900 shown in the present application. For example, the computer-readable storage medium 1900 may be provided as a server.

[0142] Reference Figure 9 Computer-readable storage medium 1900 includes a processing component 1922, which further includes one or more processors, and memory resources represented by memory 1932 for storing instructions, such as applications, that can be executed by processing component 1922. The application stored in memory 1932 may include one or more modules, each corresponding to a set of instructions. In addition, processing component 1922 is configured to execute instructions to perform the above-described method.

[0143] The computer-readable storage medium 1900 may further include a power supply component 1926 configured to perform power management of the computer-readable storage medium 1900, a wired or wireless network interface 1950 configured to connect the computer-readable storage medium 1900 to a network, and an input / output (I / O) interface 1958. The computer-readable storage medium 1900 may operate based on an operating system stored in the memory 1932, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, or the like.

[0144] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0145] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0146] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

[0147] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of this application can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0148] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0149] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0150] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0151] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0152] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

[0153] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

[0154] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A data request method, characterized in that: Applied to a server, the server is connected to a plurality of client terminals, the server and the client terminals are in a B / S system architecture, the method comprises: Receiving data requests sent by multiple client terminals; Determining, according to the data request, a service model corresponding to the data request; According to the service model and a pre-established database, an instance object corresponding to the service model is determined, and the instance object is used to perform an operation corresponding to the data request.

2. The data request method according to claim 1, characterized in that: The receiving of data requests sent by multiple client terminals includes: Receive data requests sent by multiple client terminals through a pre-packaged service interface.

3. The data request method according to claim 1, characterized in that: The service model is obtained by using JavaScript's prototype chain to build a class system framework to construct service models corresponding to different data requests, and defining, compiling and debugging the service model.

4. The data request method according to claim 1, characterized in that: The determining, according to the service model and a pre-established database, an instance object corresponding to the service model, and using the instance object to perform an operation corresponding to the data request includes: Encapsulate data requests through the agent service model; The Set collection class of the ont service is used to centralize the access to the database persistence layer odb service. The request includes the object oid, object type, and method name parameters. According to the parameters, the preset object is specified or the preset service is executed, and the instance object in the database is operated to complete the specified allocation and execution of the client request.

5. The data request method according to claim 1, characterized in that: The method further comprises: Build a client terminal interaction interface, define the global HighCloud object and create, set, and remove methods to implement addition and deletion checks on server-side model objects, encapsulate object methods using the invoke interaction method based on the object returned by the server, and when the object calls the method, trigger a request to index the creation of a service object by the backend service interface to execute the corresponding method.

6. The data request method according to claim 1, characterized in that: The method further comprises: The project directory is displayed on the server interface, wherein the project directory includes at least components and component information, wherein the component information includes component types, and the component types cover Ext basic types and custom types, and each component also includes script files of methods, events, declarations, initialization, and configurations, and the scripts are edited using a built-in code editor.

7. A data requesting device, characterized in that: Applied to a server, the server is connected to a plurality of client terminals, the server and the client terminals are in a B / S system architecture, and the device comprises: A receiving module, used for receiving data requests sent by multiple client terminals; A determination module, configured to determine a service model corresponding to the data request according to the data request; An execution module is used to determine an instance object corresponding to the service model according to the service model and a pre-established database, and use the instance object to execute an operation corresponding to the data request.

8. The data requesting device according to claim 7, characterized in that: The receiving module is used for: Receive data requests sent by multiple client terminals through a pre-packaged service interface.

9. An electronic device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method according to any one of claims 1 to 6 when executed by the processor.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.