mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-02-02 03:34:58 +08:00
commit
e791a06e2e
@ -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')")
|
||||
|
@ -37,6 +37,8 @@ public interface MpTagConvert {
|
||||
})
|
||||
MpTagDO convert(WxUserTag tag, MpAccountDO account);
|
||||
|
||||
MpTagRespVO convert(MpTagDO mpTagDO);
|
||||
|
||||
List<MpTagSimpleRespVO> convertList02(List<MpTagDO> list);
|
||||
|
||||
}
|
||||
|
@ -46,6 +46,13 @@ public interface MpTagService {
|
||||
*/
|
||||
PageResult<MpTagDO> getTagPage(MpTagPageReqVO pageReqVO);
|
||||
|
||||
/**
|
||||
* 获得公众号标签详情
|
||||
* @param id id查询
|
||||
* @return 公众号标签详情
|
||||
*/
|
||||
MpTagDO get(Long id);
|
||||
|
||||
List<MpTagDO> getTagList();
|
||||
|
||||
/**
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user