feat(extapi): 新增外部接口清单注解扫描与展示导出
新增 @ExternalApi/@ExternalCall 方法级注解,启动时扫描生成内存注册表。 提供 /sys/extApi/list 展示、exportXls(AutoPoi) 与 exportMarkdown 导出; 给 TaskApiController.countTaskforporter 打 @ExternalApi 示范并补菜单 SQL。
This commit is contained in:
+3
@@ -4,6 +4,8 @@ import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.aspect.annotation.ExternalApi;
|
||||
import org.jeecg.common.aspect.annotation.ExternalApiAuthType;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.openapi.service.ITaskApi;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@@ -32,6 +34,7 @@ public class TaskApiController {
|
||||
* <p>调用方(门户)通过 username 参数传入 sys_user.username(登录账号)。
|
||||
*/
|
||||
@Operation(summary = "门户查询待办数", description = "门户查询待办数")
|
||||
@ExternalApi(name = "门户查询待办数", caller = "门户系统", auth = ExternalApiAuthType.NONE, dataScope = "仅返回待办数量,不涉及业务明细")
|
||||
@GetMapping("/countTaskforporter")
|
||||
public Result<Long> countTaskforporter(HttpServletRequest request) {
|
||||
String username = request.getParameter("username");
|
||||
|
||||
Reference in New Issue
Block a user