Merge branch 'master' of https://gitee.com/zhijiantianya/ruoyi-vue-pro into feature/mall_product

This commit is contained in:
YunaiV
2023-07-02 23:45:48 +08:00
20 changed files with 111 additions and 47 deletions

View File

@@ -52,6 +52,14 @@ public class MpTagController {
return success(true);
}
@GetMapping("/get")
@Operation(summary = "获取公众号标签详情")
@PreAuthorize("@ss.hasPermission('mp:tag:query')")
public CommonResult<MpTagRespVO> get(@RequestParam("id") Long id) {
MpTagDO mpTagDO = mpTagService.get(id);
return success(MpTagConvert.INSTANCE.convert(mpTagDO));
}
@GetMapping("/page")
@Operation(summary = "获取公众号标签分页")
@PreAuthorize("@ss.hasPermission('mp:tag:query')")

View File

@@ -37,6 +37,8 @@ public interface MpTagConvert {
})
MpTagDO convert(WxUserTag tag, MpAccountDO account);
MpTagRespVO convert(MpTagDO mpTagDO);
List<MpTagSimpleRespVO> convertList02(List<MpTagDO> list);
}

View File

@@ -46,6 +46,13 @@ public interface MpTagService {
*/
PageResult<MpTagDO> getTagPage(MpTagPageReqVO pageReqVO);
/**
* 获得公众号标签详情
* @param id id查询
* @return 公众号标签详情
*/
MpTagDO get(Long id);
List<MpTagDO> getTagList();
/**

View File

@@ -116,6 +116,11 @@ public class MpTagServiceImpl implements MpTagService {
return mpTagMapper.selectPage(pageReqVO);
}
@Override
public MpTagDO get(Long id) {
return mpTagMapper.selectById(id);
}
@Override
public List<MpTagDO> getTagList() {
return mpTagMapper.selectList();