mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-19 11:40:05 +08:00
feat: 获取用户信息接口增加areaName 字段。
This commit is contained in:
parent
287a17a9ff
commit
55cae6d2aa
@ -43,6 +43,9 @@ public class MemberUserBaseVO {
|
|||||||
@Schema(description = "所在地", example = "4371")
|
@Schema(description = "所在地", example = "4371")
|
||||||
private Long areaId;
|
private Long areaId;
|
||||||
|
|
||||||
|
@Schema(description = "所在地可视化显示", example = "4371")
|
||||||
|
private String areaName;
|
||||||
|
|
||||||
@Schema(description = "出生日期", example = "2023-03-12")
|
@Schema(description = "出生日期", example = "2023-03-12")
|
||||||
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
|
||||||
private LocalDateTime birthday;
|
private LocalDateTime birthday;
|
||||||
|
@ -5,9 +5,11 @@ import cn.iocoder.yudao.module.member.api.user.dto.MemberUserRespDTO;
|
|||||||
import cn.iocoder.yudao.module.member.controller.admin.user.vo.MemberUserRespVO;
|
import cn.iocoder.yudao.module.member.controller.admin.user.vo.MemberUserRespVO;
|
||||||
import cn.iocoder.yudao.module.member.controller.admin.user.vo.MemberUserUpdateReqVO;
|
import cn.iocoder.yudao.module.member.controller.admin.user.vo.MemberUserUpdateReqVO;
|
||||||
import cn.iocoder.yudao.module.member.controller.app.user.vo.AppMemberUserInfoRespVO;
|
import cn.iocoder.yudao.module.member.controller.app.user.vo.AppMemberUserInfoRespVO;
|
||||||
|
import cn.iocoder.yudao.module.member.convert.address.AddressConvert;
|
||||||
import cn.iocoder.yudao.module.member.dal.dataobject.tag.MemberTagDO;
|
import cn.iocoder.yudao.module.member.dal.dataobject.tag.MemberTagDO;
|
||||||
import cn.iocoder.yudao.module.member.dal.dataobject.user.MemberUserDO;
|
import cn.iocoder.yudao.module.member.dal.dataobject.user.MemberUserDO;
|
||||||
import org.mapstruct.Mapper;
|
import org.mapstruct.Mapper;
|
||||||
|
import org.mapstruct.Mapping;
|
||||||
import org.mapstruct.factory.Mappers;
|
import org.mapstruct.factory.Mappers;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -16,7 +18,7 @@ import java.util.Map;
|
|||||||
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList;
|
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertList;
|
||||||
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertMap;
|
import static cn.iocoder.yudao.framework.common.util.collection.CollectionUtils.convertMap;
|
||||||
|
|
||||||
@Mapper
|
@Mapper(uses = {AddressConvert.class})
|
||||||
public interface MemberUserConvert {
|
public interface MemberUserConvert {
|
||||||
|
|
||||||
MemberUserConvert INSTANCE = Mappers.getMapper(MemberUserConvert.class);
|
MemberUserConvert INSTANCE = Mappers.getMapper(MemberUserConvert.class);
|
||||||
@ -31,6 +33,7 @@ public interface MemberUserConvert {
|
|||||||
|
|
||||||
PageResult<MemberUserRespVO> convertPage(PageResult<MemberUserDO> page);
|
PageResult<MemberUserRespVO> convertPage(PageResult<MemberUserDO> page);
|
||||||
|
|
||||||
|
@Mapping(source = "areaId", target = "areaName", qualifiedByName = "convertAreaIdToAreaName")
|
||||||
MemberUserRespVO convert03(MemberUserDO bean);
|
MemberUserRespVO convert03(MemberUserDO bean);
|
||||||
|
|
||||||
default PageResult<MemberUserRespVO> convertPage(PageResult<MemberUserDO> pageResult,
|
default PageResult<MemberUserRespVO> convertPage(PageResult<MemberUserDO> pageResult,
|
||||||
|
Loading…
Reference in New Issue
Block a user