Home > Back-end >  Bosses trouble help to see how the demand for better
Bosses trouble help to see how the demand for better

Time:03-03

To do a similar WeChat open platform that gave people a APPID and key then they used the APPID and key to call interface, then our side administrator can dynamically generated interface call for them in the background is equivalent to this part of the code is need permanent existence is not to say that finished with the page brush this interface, there is no


Dynamically generated by background management system call interface to other users, through the hook check, dynamic database connection, was introduced into dynamic conditions, and then according to the conditions of the incoming parameter is needed to do a conditional (equivalent, greater than, less than, fuzzy query this), then the query to the fields you want, and then return to go out, return to the field, also is to the custom, which does not return to dynamically select which fields to return


In short they want is to automatically generate a custom interface for others,


About interface to generate the above all, I am an existing I consciously better solution, that is, the code generator, according to fill in the data generated dynamically add and delete interface, and then this layer can add a parameter, and then can add and delete only generate the required interfaces, not four interfaces are generated,


The return to the field of custom, I now have a way of thinking, is in a new database table, record interface address, return to the field, and then after the request came in to get the address returned by the query to the database matching fields, with the return to the field to build a query, but the way of processing and handwritten SQL, and multi-table query is a little trouble, need to do a lot of judgment, single table query, it is very simple, take out directly into queryWrapper. Put in the select () should be ok for


So I think I this idea bosses, please see if there is anything wrong with it, or is there a better way of implementation

CodePudding user response:

This can be achieved, originally not is based on dynamically generated SQL database table structure, and then write the interface for others, others pass arguments

CodePudding user response:

reference 1st floor KeepSayingNo response:
this can be achieved, originally not is based on dynamically generated SQL database table structure, and then write the interface for others, they preach ginseng can


Is equivalent to the already running programs to dynamically add interfaces, the project itself run on the server, and then through the project background management system of a module of button bit, the project itself is more an interface that is available for others to call
  • Related