| | |
| | | public interface HttpTagDao extends BaseMapperX<HttpTagEntity> { |
| | | default PageResult<HttpTagEntity> selectPage(HttpTagPageReqVO reqVO) { |
| | | return selectPage(reqVO, new LambdaQueryWrapperX<HttpTagEntity>() |
| | | .likeIfPresent(HttpTagEntity::getTagName, reqVO.getTagType()) |
| | | .likeIfPresent(HttpTagEntity::getTagName, reqVO.getTagCode()) |
| | | .eq(HttpTagEntity::getApiId, reqVO.getApiId()) |
| | | .likeIfPresent(HttpTagEntity::getTagName, reqVO.getTagName()) |
| | | .orderByDesc(HttpTagEntity::getCreateTime)); |
| | | } |
| | |
| | | /** |
| | | * 是否认证 |
| | | */ |
| | | private Integer isAuth; |
| | | private Boolean isAuth; |
| | | |
| | | /** |
| | | * 认证地址 |
| | |
| | | |
| | | List<HttpTagEntity> selectList(Map<String, Object> params); |
| | | |
| | | List<HttpTagEntity> getByCode(String code); |
| | | List<HttpTagEntity> getApiId(String code); |
| | | } |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<HttpTagEntity> getByCode(String code) { |
| | | public List<HttpTagEntity> getApiId(String apiId) { |
| | | return httpTagDao.selectList(new QueryWrapper<HttpTagEntity>() |
| | | .eq("http_api_code", code) |
| | | .eq("api_id", apiId) |
| | | .orderByDesc("create_time")); |
| | | } |
| | | |
| | |
| | | @ExcelProperty("描述") |
| | | private String descp; |
| | | |
| | | @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| | | @ExcelProperty("状态") |
| | | private Integer status; |
| | | @Schema(description = "是否认证", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| | | @ExcelProperty("是否认证") |
| | | private Boolean isAuth; |
| | | |
| | | @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
| | | @ExcelProperty("创建时间") |
| | |
| | | @ToString(callSuper = true) |
| | | public class HttpTagPageReqVO extends PageParam { |
| | | |
| | | private String tagType; |
| | | |
| | | private String tagCode; |
| | | private String apiId; |
| | | |
| | | private String tagName; |
| | | } |
| | |
| | | TagOptionDTO op1 = new TagOptionDTO(); |
| | | op1.setValue(item.getId()); |
| | | op1.setLabel(item.getName()); |
| | | List<HttpTagEntity> tags = tagService.getByCode(item.getCode()); |
| | | List<HttpTagEntity> tags = tagService.getApiId(item.getId()); |
| | | List<TagOptionDTO> op2 = new ArrayList<>(); |
| | | tags.forEach(item1 -> { |
| | | TagOptionDTO op3 = new TagOptionDTO(); |