mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-02-08 22:54:59 +08:00
commit
e791a06e2e
@ -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<MpTagRespVO> get(@RequestParam("id") Long id) {
|
||||||
|
MpTagDO mpTagDO = mpTagService.get(id);
|
||||||
|
return success(MpTagConvert.INSTANCE.convert(mpTagDO));
|
||||||
|
}
|
||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@Operation(summary = "获取公众号标签分页")
|
@Operation(summary = "获取公众号标签分页")
|
||||||
@PreAuthorize("@ss.hasPermission('mp:tag:query')")
|
@PreAuthorize("@ss.hasPermission('mp:tag:query')")
|
||||||
|
@ -37,6 +37,8 @@ public interface MpTagConvert {
|
|||||||
})
|
})
|
||||||
MpTagDO convert(WxUserTag tag, MpAccountDO account);
|
MpTagDO convert(WxUserTag tag, MpAccountDO account);
|
||||||
|
|
||||||
|
MpTagRespVO convert(MpTagDO mpTagDO);
|
||||||
|
|
||||||
List<MpTagSimpleRespVO> convertList02(List<MpTagDO> list);
|
List<MpTagSimpleRespVO> convertList02(List<MpTagDO> list);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user