You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.0 KiB
28 lines
1.0 KiB
package com.aurora.service;
|
|
|
|
import com.aurora.model.dto.LabelOptionDTO;
|
|
import com.aurora.model.dto.ResourceDTO;
|
|
import com.aurora.entity.Resource;
|
|
import com.aurora.model.vo.ConditionVO;
|
|
import com.aurora.model.vo.ResourceVO;
|
|
import com.baomidou.mybatisplus.extension.service.IService;
|
|
|
|
import java.util.List;
|
|
//主要用于处理资源的增删改查、Swagger 文档导入、条件查询和选项列表生成等核心业务逻辑
|
|
public interface ResourceService extends IService<Resource> {
|
|
/**
|
|
* 导入 Swagger 文档中的 API 资源(用于自动化生成或同步接口资源),该方法通常解析 Swagger JSON 或 YAML 文档,提取接口路径、方法等信息并持久化到数据库
|
|
* 无参数和返回值,执行结果通过日志或异常处理
|
|
*/
|
|
void importSwagger();
|
|
|
|
void saveOrUpdateResource(ResourceVO resourceVO);
|
|
|
|
void deleteResource(Integer resourceId);
|
|
|
|
List<ResourceDTO> listResources(ConditionVO conditionVO);
|
|
|
|
List<LabelOptionDTO> listResourceOption();
|
|
|
|
}
|