修复-公众号标签修改提示报错“[微信公众号 yudao-module-mp - 已禁用][参考 https://doc.iocoder.cn/mp/build/ 开启]”

This commit is contained in:
sunyuqiang 2023-06-14 17:30:15 +08:00
parent 66f09ed54b
commit 296256a55a
2 changed files with 4 additions and 2 deletions

View File

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

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);
}