admin
2020-12-31 74196bcc835d9b76cdd1bc3d85b0dfbe0191fc00
service-daylucky/src/main/java/com/ks/daylucky/service/impl/remote/UserInfoExtraServiceImpl.java
@@ -5,12 +5,12 @@
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
@@ -20,6 +20,7 @@
    @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);