!512 修复-公众号标签修改提示报错

Merge pull request !512 from 再难也要坚持/master
This commit is contained in:
芋道源码 2023-06-17 04:22:39 +00:00 committed by Gitee
commit e791a06e2e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 22 additions and 0 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();