1. Contents of this chapter
The system API interface layer is implemented to realize the definition and realization of the corresponding functions of the external interface of the system, and realize the automatic generation of interface documents through Swagger.
2. Development video
SpringBoot+Mybaits to build a general management system Example 2: api layer implementation
3. Code implementation
Use the base class to realize the abstract implementation of each method interface, and use the generic method to specify the specific type and access address, etc., to realize the unified processing of the basic functions. Due to space reasons, take dict as an example to realize the corresponding api layer interface code.
- The base class of all interfaces of IBaseController
, as follows:
Interface definition: