mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-01-31 09:30:05 +08:00
member: 增加用户编号返回,分享海报有用
This commit is contained in:
parent
4c05bd340e
commit
52b972907a
@ -11,6 +11,9 @@ import lombok.NoArgsConstructor;
|
|||||||
@AllArgsConstructor
|
@AllArgsConstructor
|
||||||
public class AppMemberUserInfoRespVO {
|
public class AppMemberUserInfoRespVO {
|
||||||
|
|
||||||
|
@Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
@Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
|
@Schema(description = "用户昵称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
|
||||||
private String nickname;
|
private String nickname;
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ 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.Mapping;
|
||||||
|
import org.mapstruct.Mappings;
|
||||||
import org.mapstruct.factory.Mappers;
|
import org.mapstruct.factory.Mappers;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -27,8 +28,12 @@ public interface MemberUserConvert {
|
|||||||
|
|
||||||
AppMemberUserInfoRespVO convert(MemberUserDO bean);
|
AppMemberUserInfoRespVO convert(MemberUserDO bean);
|
||||||
|
|
||||||
@Mapping(source = "level", target = "level")
|
|
||||||
@Mapping(source = "bean.experience", target = "experience")
|
@Mappings({
|
||||||
|
@Mapping(source = "level", target = "level"),
|
||||||
|
@Mapping(source = "bean.id", target = "id"),
|
||||||
|
@Mapping(source = "bean.experience", target = "experience")
|
||||||
|
})
|
||||||
AppMemberUserInfoRespVO convert(MemberUserDO bean, MemberLevelDO level);
|
AppMemberUserInfoRespVO convert(MemberUserDO bean, MemberLevelDO level);
|
||||||
|
|
||||||
MemberUserRespDTO convert2(MemberUserDO bean);
|
MemberUserRespDTO convert2(MemberUserDO bean);
|
||||||
|
Loading…
Reference in New Issue
Block a user