Commit c9b3cf9ed45adba43bf5595227d3ff8da59666a6
1 parent
0b916036
MP:增加 unionid
Showing
4 changed files
with
11 additions
and
1 deletions
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/user/vo/MpUserPageReqVO.java
| ... | ... | @@ -21,6 +21,9 @@ public class MpUserPageReqVO extends PageParam { |
| 21 | 21 | @Schema(description = "公众号粉丝标识,模糊匹配", example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M") |
| 22 | 22 | private String openid; |
| 23 | 23 | |
| 24 | + @Schema(description = "微信生态唯一标识,模糊匹配", example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M") | |
| 25 | + private String unionId; | |
| 26 | + | |
| 24 | 27 | @Schema(description = "公众号粉丝昵称,模糊匹配", example = "芋艿") |
| 25 | 28 | private String nickname; |
| 26 | 29 | ... | ... |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/controller/admin/user/vo/MpUserRespVO.java
| ... | ... | @@ -4,7 +4,6 @@ import io.swagger.v3.oas.annotations.media.Schema; |
| 4 | 4 | import lombok.Data; |
| 5 | 5 | |
| 6 | 6 | import java.time.LocalDateTime; |
| 7 | -import java.util.Date; | |
| 8 | 7 | import java.util.List; |
| 9 | 8 | |
| 10 | 9 | @Schema(description = "管理后台 - 公众号粉丝 Response VO") |
| ... | ... | @@ -17,6 +16,9 @@ public class MpUserRespVO { |
| 17 | 16 | @Schema(description = "公众号粉丝标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M") |
| 18 | 17 | private String openid; |
| 19 | 18 | |
| 19 | + @Schema(description = "微信生态唯一标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M") | |
| 20 | + private String unionId; | |
| 21 | + | |
| 20 | 22 | @Schema(description = "关注状态 参见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 21 | 23 | private Integer subscribeStatus; |
| 22 | 24 | @Schema(description = "关注时间", requiredMode = Schema.RequiredMode.REQUIRED) | ... | ... |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/convert/user/MpUserConvert.java
| ... | ... | @@ -29,6 +29,7 @@ public interface MpUserConvert { |
| 29 | 29 | |
| 30 | 30 | @Mappings(value = { |
| 31 | 31 | @Mapping(source = "openId", target = "openid"), |
| 32 | + @Mapping(source = "unionId", target = "unionId"), | |
| 32 | 33 | @Mapping(source = "headImgUrl", target = "headImageUrl"), |
| 33 | 34 | @Mapping(target = "subscribeTime", ignore = true), // 单独转换 |
| 34 | 35 | }) | ... | ... |
yudao-module-mp/yudao-module-mp-biz/src/main/java/cn/iocoder/yudao/module/mp/dal/dataobject/user/MpUserDO.java