CN114090126A - Method and device for customizing system variable, terminal equipment and storage medium - Google Patents

Method and device for customizing system variable, terminal equipment and storage medium Download PDF

Info

Publication number
CN114090126A
CN114090126A CN202111396395.8A CN202111396395A CN114090126A CN 114090126 A CN114090126 A CN 114090126A CN 202111396395 A CN202111396395 A CN 202111396395A CN 114090126 A CN114090126 A CN 114090126A
Authority
CN
China
Prior art keywords
variables
variable
api
service
defining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111396395.8A
Other languages
Chinese (zh)
Inventor
张洋斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haoyun Technologies Co Ltd
Original Assignee
Haoyun Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Haoyun Technologies Co Ltd filed Critical Haoyun Technologies Co Ltd
Priority to CN202111396395.8A priority Critical patent/CN114090126A/en
Publication of CN114090126A publication Critical patent/CN114090126A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a device, terminal equipment and a storage medium for customizing system variables, wherein the method comprises the following steps: selecting an API based on a self-defined system variable management function module; and defining system variables, and generating a function for querying the variables for calling by the service API. According to the method for self-defining the system variables, disclosed by the invention, through a self-defining system variable management function module based on a PaaS platform, a configuration person can define the system variables of a current user, and then the method is used for functions such as page design, service modeling, authority configuration and the like, so that the defect that a service system can only use the variables built in the system but cannot define the system variables of application contexts in a self-defining mode is overcome, and the applicable service scenes of the system are enriched.

Description

Method and device for customizing system variable, terminal equipment and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for customizing system variables, terminal equipment and a storage medium.
Background
In an enterprise global data system, the application of data authority matching is very wide, for example: matching the mechanism to which the current user belongs; the member data of a certain department needs to be matched with a superior mechanism and a superior descendant mechanism of the mechanism to which the current user belongs; when a person creates a task, the person selects a simple task standard library to filter according to the position, and needs to match the position to which the current user belongs. The data authority configuration usually needs to configure and match with current user variables, including current users, roles, mechanisms, mechanism levels, and the like. However, at present, a conventional low-code platform or service system is generally provided with a built-in common system variable, and a user can only select an existing system variable and cannot define the system variable of an application context in a self-defined manner, which results in a very limited service scenario applicable to the system.
Disclosure of Invention
The invention aims to provide a method, a device, terminal equipment and a storage medium for customizing system variables, so as to solve the problem that the limitation of applicable service scenes of data authority configuration is strong because a user cannot customize the system variables in the prior art.
In order to achieve the above object, the present invention provides a method for customizing system variables, comprising:
selecting an API based on a self-defined system variable management function module;
and defining system variables, and generating a function for querying the variables for calling by the service API.
Further, preferably, the custom system variable management function module is a function module of the PaaS platform.
Further, preferably, the defining system variables includes defining variable names, variable descriptions and associated business models.
Further, preferably, the application scenario of the service API includes page design, service modeling, and permission configuration.
The invention also provides a device for customizing system variables, which comprises:
the API selection module is used for selecting an API based on the user-defined system variable management function module;
and the variable definition module is used for defining system variables and generating a function for inquiring the variables for calling the service API.
Further, preferably, the custom system variable management function module is a function module of the PaaS platform.
Further, preferably, the variable definition module is further configured to define a variable name, a variable description, and an associated business model.
Further, preferably, the application scenario of the service API includes page design, service modeling, and permission configuration.
The present invention also provides a terminal device, including:
one or more processors;
a memory coupled to the processor for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a custom system variable method as any one of above.
The present invention also provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of customizing system variables as described in any one of the above.
Compared with the prior art, the invention has the beneficial effects that:
the invention discloses a method, a device, terminal equipment and a storage medium for customizing system variables, wherein the method comprises the following steps: selecting an API based on a self-defined system variable management function module; and defining system variables, and generating a function for querying the variables for calling by a service API.
According to the method for customizing the system variables, disclosed by the invention, through a user-defined system variable management function module based on a PaaS platform, a configuration person can define the system variables of the current user, and then the functions of page design, service modeling, authority configuration and the like are realized, the defect that a service system can only use the variables built in the system but cannot define the system variables of the application context in a user-defined mode is overcome, and the applicable service scene of the system is enriched.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart illustrating a method for customizing system variables according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating the contents of defining system variables provided by an embodiment of the present invention;
FIG. 3 is a flow diagram illustrating a process for invoking custom system variables in business modeling according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a custom system variable device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be understood that the step numbers used herein are for convenience of description only and are not intended as limitations on the order in which the steps are performed.
It is to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
The terms "comprises" and "comprising" indicate the presence of the described features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
The term "and/or" refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1, an embodiment of the invention provides a method for customizing system variables. As shown in fig. 1, the method of customizing system variables includes steps S10 to S20. The method comprises the following steps:
s10, selecting an API based on the user-defined system variable management function module;
and S20, defining system variables, and generating a function for querying the variables for calling by the service API.
It should be noted that, in an enterprise global domain datamation system, the application of data authority matching is very wide, for example, for a certain user, it is necessary to match the mechanism to which the current user belongs; or the member data of a certain department needs to be matched with the superior mechanism and the superior descendant mechanism of the mechanism to which the current user belongs; or when the personnel create the task, the simple task standard library is selected to be filtered according to the post, and the post to which the current user belongs needs to be matched.
Further, when the data authority configuration generally needs to be configured, the current user variable including the current user, the role, the mechanism level, and the like is necessarily matched. However, at present, a conventional low-code platform or service system is generally provided with a built-in common system variable, and a user can only select an existing system variable and cannot define the system variable of an application context in a self-defined manner, which results in a very limited service scenario applicable to the system. Therefore, the embodiment of the present invention aims to provide a method for customizing system variables, which can overcome the above-mentioned defects.
Specifically, in one embodiment, step S10 is implemented mainly based on the PaaS platform. The system variable management function module of the PaaS platform can be used for customizing system variables. Based on the module, selecting the API first; then, in step S20, the system variables are defined, and a function for querying the variables is generated for the service API call. Defining system variables includes defining variable names, variable descriptions and associated business models, as shown in fig. 2.
Further, the application scenario of the service API includes page design, service modeling and permission configuration. 3 provides a process for invoking custom system variables based on business modeling. As shown in FIG. 3, the define variables process is performed first, including selecting APIs, then defining system variables and generating functions for query variables. Further, when business modeling is carried out, business system variables are selected according to system parameters input into the business API, then the function of the query variable generated just before is called from the business API, and the query variable enters the database through the base table engine.
In summary, the method for customizing system variables provided in the embodiments of the present invention, through a customized system variable management function module based on the PaaS platform, can configure personnel to define current user system variables, and then is used for functions such as page design, service modeling, authority configuration, and the like, overcomes a disadvantage that a service system can only use system built-in variables but cannot define system variables of application contexts in a customized manner, and enriches service scenarios applicable to the system.
Referring to fig. 4, an embodiment of the present invention further provides a device for customizing system variables, including:
the API selection module 01 is used for selecting an API based on a user-defined system variable management function module;
and the variable definition module 02 is used for defining system variables, and generating a function for querying the variables for calling by the service API.
In a specific embodiment, the custom system variable management function module is a function module of a PaaS platform.
In a specific embodiment, the variable definition module is further configured to define a variable name, a variable description, and an associated business model.
In a specific embodiment, the application scenario of the service API includes page design, service modeling, and permission configuration.
It can be understood that the custom system variable device provided by the embodiment of the present invention is used for executing the custom system variable method described in any one of the above embodiments. In the embodiment, through a user-defined system variable management function module based on the PaaS platform, a configurator can define the system variables of the current user, and then the system variables are used for functions such as page design, service modeling, authority configuration and the like, so that the defect that a service system can only use the variables built in the system but cannot define the system variables of the application context in a user-defined mode is overcome, and the service scenes applicable to the system are enriched.
Referring to fig. 5, an embodiment of the present invention provides a terminal device, including:
one or more processors;
a memory coupled to the processor for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the custom system variables method as described above.
The processor is used for controlling the overall operation of the terminal equipment so as to complete all or part of the steps of the self-defining system variable method. The memory is used to store various types of data to support operation at the terminal device, and these data may include, for example, instructions for any application or method operating on the terminal device, as well as application-related data. The Memory may be implemented by any type or combination of volatile and non-volatile Memory devices, 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.
In an exemplary embodiment, the terminal Device may be implemented by one or more Application Specific 1 integrated circuits (AS 1C), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components, and is configured to perform the method for customizing system variables according to any of the embodiments described above, and achieve technical effects consistent with the method described above.
In another exemplary embodiment, there is also provided a computer readable storage medium comprising a computer program which, when executed by a processor, performs the steps of the method of customizing system variables according to any of the embodiments described above. The computer readable medium of the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable read-only memory (CDROM). Additionally, the computer-readable storage medium may even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
Further, in embodiments of the present application, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, input method, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, Radio Frequency (RF), etc., or any suitable combination of the preceding.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (10)

1. A method for customizing system variables, comprising:
selecting an API based on a self-defined system variable management function module;
and defining system variables, and generating a function for querying the variables for calling by the service API.
2. The method of claim 1, wherein the custom system variable management function module is a function module of a PaaS platform.
3. The method of claim 1, wherein the defining system variables comprises defining variable names, variable descriptions, and associated business models.
4. The method of claim 1, wherein the application scenarios of the business API include page design, business modeling, and rights configuration.
5. A custom system variable device, comprising:
the API selection module is used for selecting an API based on the user-defined system variable management function module;
and the variable definition module is used for defining system variables and generating a function for inquiring the variables for calling the service API.
6. The custom system variable device according to claim 5, wherein the custom system variable management function module is a function module of a PaaS platform.
7. The custom system variable device according to claim 5, wherein the variable definition module is further configured to define a variable name, a variable description and an associated business model.
8. The custom system variable device according to claim 5, wherein the application scenario of the service API comprises page design, service modeling and permission configuration.
9. A terminal device, comprising:
one or more processors;
a memory coupled to the processor for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the custom system variable method of any of claims 1-4.
10. A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the custom system variable method of any of claims 1-4.
CN202111396395.8A 2021-11-23 2021-11-23 Method and device for customizing system variable, terminal equipment and storage medium Pending CN114090126A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111396395.8A CN114090126A (en) 2021-11-23 2021-11-23 Method and device for customizing system variable, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111396395.8A CN114090126A (en) 2021-11-23 2021-11-23 Method and device for customizing system variable, terminal equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114090126A true CN114090126A (en) 2022-02-25

Family

ID=80303379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111396395.8A Pending CN114090126A (en) 2021-11-23 2021-11-23 Method and device for customizing system variable, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114090126A (en)

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104392169A (en) * 2014-12-15 2015-03-04 福建天晴数码有限公司 Native API (Application Program Interface) function reconstruction method and device
CN104850405A (en) * 2015-05-25 2015-08-19 武汉众联信息技术股份有限公司 Intelligent configurable workflow engine and implementation method therefor
CN107729117A (en) * 2016-08-10 2018-02-23 中国移动通信集团重庆有限公司 A kind of virtual machine generation method and system
CN107861716A (en) * 2017-11-09 2018-03-30 山东省计算中心(国家超级计算济南中心) Software definition type control system and control method
CN108196832A (en) * 2018-01-09 2018-06-22 安徽小马创意科技股份有限公司 It is a kind of to realize the method that wechat small routine is made to support the exploitation of Custom component formula
CN108268323A (en) * 2012-11-02 2018-07-10 亚马逊科技公司 User Defined Resource in resource stack
CN110928856A (en) * 2019-10-30 2020-03-27 江苏苏宁物流有限公司 Method and device for configuring operation report based on general form, computer equipment and storage medium
CN110955543A (en) * 2019-12-12 2020-04-03 浙江大搜车软件技术有限公司 Service processing method, device, equipment and computer readable storage medium
CN111027298A (en) * 2019-05-31 2020-04-17 珠海随变科技有限公司 Message sending method, system, computer device and storage medium
CN111263933A (en) * 2017-09-30 2020-06-09 甲骨文国际公司 Real-time debug instances in deployed container platforms
CN111581438A (en) * 2019-02-19 2020-08-25 青岛海信移动通信技术股份有限公司 File analysis method and terminal
CN111984269A (en) * 2020-08-20 2020-11-24 第四范式(北京)技术有限公司 Method for providing application construction service and application construction platform
CN112465953A (en) * 2020-12-02 2021-03-09 杭州群核信息技术有限公司 Rapid parameterization modeling method based on template
CN112988600A (en) * 2021-04-29 2021-06-18 中国工商银行股份有限公司 Service scene testing method and device, electronic equipment and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108268323A (en) * 2012-11-02 2018-07-10 亚马逊科技公司 User Defined Resource in resource stack
CN104392169A (en) * 2014-12-15 2015-03-04 福建天晴数码有限公司 Native API (Application Program Interface) function reconstruction method and device
CN104850405A (en) * 2015-05-25 2015-08-19 武汉众联信息技术股份有限公司 Intelligent configurable workflow engine and implementation method therefor
CN107729117A (en) * 2016-08-10 2018-02-23 中国移动通信集团重庆有限公司 A kind of virtual machine generation method and system
CN111263933A (en) * 2017-09-30 2020-06-09 甲骨文国际公司 Real-time debug instances in deployed container platforms
CN107861716A (en) * 2017-11-09 2018-03-30 山东省计算中心(国家超级计算济南中心) Software definition type control system and control method
CN108196832A (en) * 2018-01-09 2018-06-22 安徽小马创意科技股份有限公司 It is a kind of to realize the method that wechat small routine is made to support the exploitation of Custom component formula
CN111581438A (en) * 2019-02-19 2020-08-25 青岛海信移动通信技术股份有限公司 File analysis method and terminal
CN111027298A (en) * 2019-05-31 2020-04-17 珠海随变科技有限公司 Message sending method, system, computer device and storage medium
CN110928856A (en) * 2019-10-30 2020-03-27 江苏苏宁物流有限公司 Method and device for configuring operation report based on general form, computer equipment and storage medium
CN110955543A (en) * 2019-12-12 2020-04-03 浙江大搜车软件技术有限公司 Service processing method, device, equipment and computer readable storage medium
CN111984269A (en) * 2020-08-20 2020-11-24 第四范式(北京)技术有限公司 Method for providing application construction service and application construction platform
CN112465953A (en) * 2020-12-02 2021-03-09 杭州群核信息技术有限公司 Rapid parameterization modeling method based on template
CN112988600A (en) * 2021-04-29 2021-06-18 中国工商银行股份有限公司 Service scene testing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106155749B (en) Monitoring plug-in extension method and device
CN106055368B (en) application updating method and device
WO2018210096A1 (en) Rule engine-based rule configuration method, terminal and device, and storage medium
CN103595547A (en) Broadcast intercept method and device of intelligent equipment
CN110018765B (en) Page display method, device, terminal and storage medium
CN108279882B (en) Framework generation method, device, equipment and computer readable medium
EP3704581A1 (en) Dynamic rule-based transformation of api calls
CN106445514B (en) Method and device for managing Activity instance of Android platform
CN104461663A (en) Method and device for loading other mobile terminal applications and mobile terminal
CN115437933A (en) Automatic testing method and device, computer equipment and storage medium
CN114090126A (en) Method and device for customizing system variable, terminal equipment and storage medium
CN112965760A (en) Method and device for modifying root directory, electronic equipment and readable storage medium
CN116339694B (en) Extension method and device of low-code platform assembly, electronic equipment and storage medium
CN103685259A (en) Method and device for account logging in
CN114625458A (en) Page data processing method and device, electronic equipment and storage medium
CN114296718A (en) Setting method and device of Windows system component
CN113296832A (en) Data processing method and device and electronic equipment
CN113222596A (en) Electric power data storage method and system based on block chain intelligent contract
CN112187739B (en) Configuration method, system, terminal and storage medium of mandatory access rule
CN111208981A (en) Web rapid development method and system based on componentized template
CN117592064A (en) Authority management method, electronic equipment and system of web service system
CN103365647A (en) Unified management method and system for internal and external resources of mobile phone
CN106168917A (en) Blue screen processing method and device and electronic equipment
CN112181474B (en) Block chain service processing method, electronic device and computer storage medium
CN114143187B (en) Intelligent platform interface network address management method, system, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination