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

This commit is contained in:
sunyuqiang 2023-06-14 17:19:50 +08:00
parent f59119bf6e
commit 66f09ed54b
3 changed files with 20 additions and 0 deletions

View File

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

View File

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

View File

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