mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-29 18:51:53 +08:00
会员:用户标签增加下拉框使用的 精简信息列表查询接口
This commit is contained in:
parent
e711092440
commit
de83531285
@ -65,6 +65,15 @@ public class MemberTagController {
|
||||
return success(MemberTagConvert.INSTANCE.convert(tag));
|
||||
}
|
||||
|
||||
@GetMapping("/list-all-simple")
|
||||
@Operation(summary = "获取会员标签精简信息列表", description = "只包含被开启的会员标签,主要用于前端的下拉选项")
|
||||
public CommonResult<List<MemberTagRespVO>> getSimpleTagList() {
|
||||
// 获用户列表,只要开启状态的
|
||||
List<MemberTagDO> list = tagService.getList();
|
||||
// 排序后,返回给前端
|
||||
return success(MemberTagConvert.INSTANCE.convertList(list));
|
||||
}
|
||||
|
||||
@GetMapping("/list")
|
||||
@Operation(summary = "获得会员标签列表")
|
||||
@Parameter(name = "ids", description = "编号列表", required = true, example = "1024,2048")
|
||||
|
@ -63,4 +63,10 @@ public interface MemberTagService {
|
||||
*/
|
||||
PageResult<MemberTagDO> getTagPage(MemberTagPageReqVO pageReqVO);
|
||||
|
||||
/**
|
||||
* 获取标签列表
|
||||
*
|
||||
* @return 标签列表
|
||||
*/
|
||||
List<MemberTagDO> getList();
|
||||
}
|
||||
|
@ -105,4 +105,9 @@ public class MemberTagServiceImpl implements MemberTagService {
|
||||
return tagMapper.selectPage(pageReqVO);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<MemberTagDO> getList() {
|
||||
return tagMapper.selectList();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user