会员:用户标签增加下拉框使用的 精简信息列表查询接口

This commit is contained in:
owen 2023-08-21 21:44:04 +08:00
parent e711092440
commit de83531285
3 changed files with 20 additions and 0 deletions

View File

@ -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")

View File

@ -63,4 +63,10 @@ public interface MemberTagService {
*/
PageResult<MemberTagDO> getTagPage(MemberTagPageReqVO pageReqVO);
/**
* 获取标签列表
*
* @return 标签列表
*/
List<MemberTagDO> getList();
}

View File

@ -105,4 +105,9 @@ public class MemberTagServiceImpl implements MemberTagService {
return tagMapper.selectPage(pageReqVO);
}
@Override
public List<MemberTagDO> getList() {
return tagMapper.selectList();
}
}