SpringBoot+Mybaits to build a general management system example seven: access interface Api layer function realization

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.

  1. full course address
  2. Source code download addressinsert image description here

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.

  1. The base class of all interfaces of IBaseController
      , as follows:
    Interface definition:

Guess you like

Origin blog.csdn.net/m0_37631110/article/details/127161131