Commit 3a899d88 authored by 董建华's avatar 董建华

调整一下代码结构

parent 21413db6
...@@ -60,13 +60,17 @@ public class UserExtInfoSaveEventListener implements ApplicationListener<UserExt ...@@ -60,13 +60,17 @@ public class UserExtInfoSaveEventListener implements ApplicationListener<UserExt
if (null != occupationEnum) { if (null != occupationEnum) {
send(UserBaseInfoEvent.SubEventType.user_occupation, uuid, String.valueOf(occupationEnum.ordinal())); send(UserBaseInfoEvent.SubEventType.user_occupation, uuid, String.valueOf(occupationEnum.ordinal()));
} }
log.info("用户保存扩展信息结束userExtInfo:{}", userExtInfo);
} }
private void send(UserBaseInfoEvent.SubEventType eventType, String uuid, String val) { private void send(UserBaseInfoEvent.SubEventType eventType, String uuid, String val) {
UserBaseInfoEvent.UserBaseInfoEventBuilder builder = UserBaseInfoEvent.builder(); UserBaseInfoEvent.UserBaseInfoEventBuilder builder
= UserBaseInfoEvent.builder();
BusinessEventBaseInfo.BusinessEventBaseInfoBuilder baseInfoBuilder
= BusinessEventBaseInfo.builder();
BusinessEventBaseInfo.BusinessEventBaseInfoBuilder baseInfoBuilder = BusinessEventBaseInfo.builder();
baseInfoBuilder.userId(uuid); baseInfoBuilder.userId(uuid);
builder.subEventType(eventType); builder.subEventType(eventType);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment