Commit ef4fb7ec057ba364371cddff22aef644137e96ac
1 parent
6b69dd74
【优化】重命名 publicList
Showing
5 changed files
with
10 additions
and
10 deletions
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/AiImageController.java
| ... | ... | @@ -128,10 +128,10 @@ public class AiImageController { |
| 128 | 128 | return success(true); |
| 129 | 129 | } |
| 130 | 130 | |
| 131 | - @GetMapping("/release-list") | |
| 131 | + @GetMapping("/public-list") | |
| 132 | 132 | @Operation(summary = "发布列表") |
| 133 | - public CommonResult<PageResult<AiImageRespVO>> releaseList(AiImageReleaseListReqVO releaseListReqVO) { | |
| 134 | - PageResult<AiImageDO> pageResult = imageService.releaseList(releaseListReqVO); | |
| 133 | + public CommonResult<PageResult<AiImageRespVO>> publicList(AiImagePublicListReqVO publicListReqVO) { | |
| 134 | + PageResult<AiImageDO> pageResult = imageService.publicList(publicListReqVO); | |
| 135 | 135 | return success(BeanUtils.toBean(pageResult, AiImageRespVO.class)); |
| 136 | 136 | } |
| 137 | 137 | } |
| 138 | 138 | \ No newline at end of file | ... | ... |
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/vo/AiImageReleaseListReqVO.java renamed to yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/controller/admin/image/vo/AiImagePublicListReqVO.java
| ... | ... | @@ -6,7 +6,7 @@ import lombok.Data; |
| 6 | 6 | |
| 7 | 7 | @Schema(description = "Ai Image 发布列表 req") |
| 8 | 8 | @Data |
| 9 | -public class AiImageReleaseListReqVO extends PageParam { | |
| 9 | +public class AiImagePublicListReqVO extends PageParam { | |
| 10 | 10 | |
| 11 | 11 | @Schema(description = "提示词") |
| 12 | 12 | private String prompt; | ... | ... |
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/dal/mysql/image/AiImageMapper.java
| ... | ... | @@ -5,7 +5,7 @@ import cn.iocoder.yudao.framework.common.pojo.PageResult; |
| 5 | 5 | import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; |
| 6 | 6 | import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; |
| 7 | 7 | import cn.iocoder.yudao.module.ai.controller.admin.image.vo.AiImagePageReqVO; |
| 8 | -import cn.iocoder.yudao.module.ai.controller.admin.image.vo.AiImageReleaseListReqVO; | |
| 8 | +import cn.iocoder.yudao.module.ai.controller.admin.image.vo.AiImagePublicListReqVO; | |
| 9 | 9 | import cn.iocoder.yudao.module.ai.dal.dataobject.image.AiImageDO; |
| 10 | 10 | import org.apache.ibatis.annotations.Mapper; |
| 11 | 11 | |
| ... | ... | @@ -44,7 +44,7 @@ public interface AiImageMapper extends BaseMapperX<AiImageDO> { |
| 44 | 44 | AiImageDO::getPlatform, platform); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - default PageResult<AiImageDO> selectPageOfReleaseList(AiImageReleaseListReqVO releaseListReqVO) { | |
| 47 | + default PageResult<AiImageDO> selectPageOfPublicList(AiImagePublicListReqVO releaseListReqVO) { | |
| 48 | 48 | return selectPage(releaseListReqVO, new LambdaQueryWrapperX<AiImageDO>() |
| 49 | 49 | .eqIfPresent(AiImageDO::getPublicStatus, Boolean.TRUE) |
| 50 | 50 | .eqIfPresent(AiImageDO::getPrompt, releaseListReqVO.getPrompt()) | ... | ... |
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/image/AiImageService.java
| ... | ... | @@ -118,9 +118,9 @@ public interface AiImageService { |
| 118 | 118 | |
| 119 | 119 | /** |
| 120 | 120 | * 发布列表 |
| 121 | - * @param releaseListReqVO | |
| 121 | + * @param publicListReqVO | |
| 122 | 122 | * @return |
| 123 | 123 | */ |
| 124 | - PageResult<AiImageDO> releaseList(AiImageReleaseListReqVO releaseListReqVO); | |
| 124 | + PageResult<AiImageDO> publicList(AiImagePublicListReqVO publicListReqVO); | |
| 125 | 125 | |
| 126 | 126 | } | ... | ... |
yudao-module-ai/yudao-module-ai-biz/src/main/java/cn/iocoder/yudao/module/ai/service/image/AiImageServiceImpl.java
| ... | ... | @@ -337,8 +337,8 @@ public class AiImageServiceImpl implements AiImageService { |
| 337 | 337 | } |
| 338 | 338 | |
| 339 | 339 | @Override |
| 340 | - public PageResult<AiImageDO> releaseList(AiImageReleaseListReqVO releaseListReqVO) { | |
| 341 | - return imageMapper.selectPageOfReleaseList(releaseListReqVO); | |
| 340 | + public PageResult<AiImageDO> publicList(AiImagePublicListReqVO publicListReqVO) { | |
| 341 | + return imageMapper.selectPageOfPublicList(publicListReqVO); | |
| 342 | 342 | } |
| 343 | 343 | |
| 344 | 344 | /** | ... | ... |