| | |
| | | import com.ks.daylucky.pojo.DO.UserInfoExtra; |
| | | import com.ks.daylucky.pojo.DTO.UserMsgSettings; |
| | | import com.ks.daylucky.service.UserInfoExtraService; |
| | | import org.apache.dubbo.config.annotation.Service; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | |
| | | @Service(version = "1.0.0") |
| | | @Service |
| | | public class UserInfoExtraServiceImpl implements UserInfoExtraService { |
| | | |
| | | @Resource |
| | |
| | | @Override |
| | | public void init(Long uid) { |
| | | UserInfoExtra extra = new UserInfoExtra(); |
| | | extra.setUid(uid); |
| | | extra.setCreateTime(new Date()); |
| | | extra.setMsgSetting(new UserMsgSettings().toString()); |
| | | extra.setMsgUnreadCount(0); |