feat: add interface doc
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
package org.wfc.user.controller;
|
package org.wfc.user.controller;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
@@ -25,6 +27,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/cdr")
|
@RequestMapping("/cdr")
|
||||||
|
@Tag(name = "用户平台-CDR接口")
|
||||||
public class UCdrController extends BaseController {
|
public class UCdrController extends BaseController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -44,6 +47,7 @@ public class UCdrController extends BaseController {
|
|||||||
*
|
*
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
@Operation(summary = "首页仪表盘")
|
||||||
@GetMapping("/getOne")
|
@GetMapping("/getOne")
|
||||||
public R<UCdrUserVo> getByUser() {
|
public R<UCdrUserVo> getByUser() {
|
||||||
UCdrUserVo result = cdrService.getByUser();
|
UCdrUserVo result = cdrService.getByUser();
|
||||||
@@ -67,6 +71,7 @@ public class UCdrController extends BaseController {
|
|||||||
*
|
*
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
@Operation(summary = "CDR记录")
|
||||||
@GetMapping("/pageHistory")
|
@GetMapping("/pageHistory")
|
||||||
public TableDataInfo getHistoryByUser() {
|
public TableDataInfo getHistoryByUser() {
|
||||||
startPage();
|
startPage();
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
package org.wfc.user.controller;
|
package org.wfc.user.controller;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
@@ -26,6 +28,7 @@ import java.util.List;
|
|||||||
*/
|
*/
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/client")
|
@RequestMapping("/client")
|
||||||
|
@Tag(name = "用户平台-终端设备接口")
|
||||||
public class UClientController extends BaseController {
|
public class UClientController extends BaseController {
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
@@ -45,6 +48,7 @@ public class UClientController extends BaseController {
|
|||||||
*
|
*
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
@Operation(summary = "当前设备")
|
||||||
@GetMapping("/pageCurrentClient")
|
@GetMapping("/pageCurrentClient")
|
||||||
public TableDataInfo getCurrentClients() {
|
public TableDataInfo getCurrentClients() {
|
||||||
startPage();
|
startPage();
|
||||||
@@ -57,6 +61,7 @@ public class UClientController extends BaseController {
|
|||||||
*
|
*
|
||||||
* @return 结果
|
* @return 结果
|
||||||
*/
|
*/
|
||||||
|
@Operation(summary = "历史设备")
|
||||||
@GetMapping("/pageHistoryClient")
|
@GetMapping("/pageHistoryClient")
|
||||||
public TableDataInfo getHistoryByUser() {
|
public TableDataInfo getHistoryByUser() {
|
||||||
startPage();
|
startPage();
|
||||||
|
|||||||
Reference in New Issue
Block a user