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,6 +21,9 @@ public class MpUserPageReqVO extends PageParam { | ||
| 21 | @Schema(description = "公众号粉丝标识,模糊匹配", example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M") | 21 | @Schema(description = "公众号粉丝标识,模糊匹配", example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M") |
| 22 | private String openid; | 22 | private String openid; |
| 23 | 23 | ||
| 24 | + @Schema(description = "微信生态唯一标识,模糊匹配", example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M") | ||
| 25 | + private String unionId; | ||
| 26 | + | ||
| 24 | @Schema(description = "公众号粉丝昵称,模糊匹配", example = "芋艿") | 27 | @Schema(description = "公众号粉丝昵称,模糊匹配", example = "芋艿") |
| 25 | private String nickname; | 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,7 +4,6 @@ import io.swagger.v3.oas.annotations.media.Schema; | ||
| 4 | import lombok.Data; | 4 | import lombok.Data; |
| 5 | 5 | ||
| 6 | import java.time.LocalDateTime; | 6 | import java.time.LocalDateTime; |
| 7 | -import java.util.Date; | ||
| 8 | import java.util.List; | 7 | import java.util.List; |
| 9 | 8 | ||
| 10 | @Schema(description = "管理后台 - 公众号粉丝 Response VO") | 9 | @Schema(description = "管理后台 - 公众号粉丝 Response VO") |
| @@ -17,6 +16,9 @@ public class MpUserRespVO { | @@ -17,6 +16,9 @@ public class MpUserRespVO { | ||
| 17 | @Schema(description = "公众号粉丝标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M") | 16 | @Schema(description = "公众号粉丝标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M") |
| 18 | private String openid; | 17 | private String openid; |
| 19 | 18 | ||
| 19 | + @Schema(description = "微信生态唯一标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M") | ||
| 20 | + private String unionId; | ||
| 21 | + | ||
| 20 | @Schema(description = "关注状态 参见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") | 22 | @Schema(description = "关注状态 参见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
| 21 | private Integer subscribeStatus; | 23 | private Integer subscribeStatus; |
| 22 | @Schema(description = "关注时间", requiredMode = Schema.RequiredMode.REQUIRED) | 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,6 +29,7 @@ public interface MpUserConvert { | ||
| 29 | 29 | ||
| 30 | @Mappings(value = { | 30 | @Mappings(value = { |
| 31 | @Mapping(source = "openId", target = "openid"), | 31 | @Mapping(source = "openId", target = "openid"), |
| 32 | + @Mapping(source = "unionId", target = "unionId"), | ||
| 32 | @Mapping(source = "headImgUrl", target = "headImageUrl"), | 33 | @Mapping(source = "headImgUrl", target = "headImageUrl"), |
| 33 | @Mapping(target = "subscribeTime", ignore = true), // 单独转换 | 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
| @@ -39,6 +39,10 @@ public class MpUserDO extends BaseDO { | @@ -39,6 +39,10 @@ public class MpUserDO extends BaseDO { | ||
| 39 | */ | 39 | */ |
| 40 | private String openid; | 40 | private String openid; |
| 41 | /** | 41 | /** |
| 42 | + * 微信生态唯一标识 | ||
| 43 | + */ | ||
| 44 | + private String unionId; | ||
| 45 | + /** | ||
| 42 | * 关注状态 | 46 | * 关注状态 |
| 43 | * | 47 | * |
| 44 | * 枚举 {@link CommonStatusEnum} | 48 | * 枚举 {@link CommonStatusEnum} |