增加unionid,sql需要自己加一下unionid字段

Signed-off-by: Fanjc <271366833@qq.com>
This commit is contained in:
Fanjc 2024-03-21 03:12:08 +00:00 committed by Gitee
parent 148adb4e31
commit 3b3de4b189
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,9 @@ public class MpUserPageReqVO extends PageParam {
@Schema(description = "公众号粉丝标识,模糊匹配", example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M")
private String openid;
@Schema(description = "微信生态唯一标识,模糊匹配", example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M")
private String unionid;
@Schema(description = "公众号粉丝昵称,模糊匹配", example = "芋艿")
private String nickname;

View File

@ -17,6 +17,9 @@ public class MpUserRespVO {
@Schema(description = "公众号粉丝标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M")
private String openid;
@Schema(description = "微信生态唯一标识", requiredMode = Schema.RequiredMode.REQUIRED, example = "o6_bmjrPTlm6_2sgVt7hMZOPfL2M")
private String unionid;
@Schema(description = "关注状态 参见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private Integer subscribeStatus;
@Schema(description = "关注时间", requiredMode = Schema.RequiredMode.REQUIRED)

View File

@ -29,6 +29,7 @@ public interface MpUserConvert {
@Mappings(value = {
@Mapping(source = "openId", target = "openid"),
@Mapping(source = "unionId", target = "unionid"),
@Mapping(source = "headImgUrl", target = "headImageUrl"),
@Mapping(target = "subscribeTime", ignore = true), // 单独转换
})

View File

@ -38,6 +38,11 @@ public class MpUserDO extends BaseDO {
* 粉丝标识
*/
private String openid;
/**
* 微信生态唯一标识
*/
private String unionid;
/**
* 关注状态
*