release- 歌曲新增上传人类型

release-2024-08-08
pikaqiudeshujia 6 months ago
parent 00e65c8b75
commit 3f13c0a2d5

@ -126,4 +126,6 @@ public class UserInfoDTO {
private int onlineStatus;
private String badges;
private Integer type;
}

@ -622,7 +622,8 @@ public class AlbumService {
songInfo.setId(String.valueOf(idWorker.nextId()));
songInfo.setAlbum(albumName);
songInfo.setState(SongInfoStateEnum.NO_USE.getCode());
songInfo.setUserType(UserTypeEnum.ARTIST_BAND.getCode());
UserInfoDTO userInfoDTO = userClient.findByUserId(user.getUserId());
songInfo.setUserType(String.valueOf(userInfoDTO.getType()));
songInfo.setArtist(artistName);
if (user != null) {
artistAlbum.setCreateUser(user.getUserId());

@ -1,19 +1,15 @@
package com.luoo.user.pojo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.luoo.user.util.EmojiConverterUtil;
import lombok.*;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.luoo.user.util.EmojiConverterUtil;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.util.Date;
@Getter
@ -185,6 +181,11 @@ public class UserInfo implements Serializable {
*
*/
private String userName;
/**
* type
*/
private Integer type;
}

@ -81,6 +81,7 @@ public class ArtistService {
.thumbnail(Constants.DEFAULT_USER_THUMBNAIL)
.signature(Constants.DEFAULT_USER_SIGNATURE)
.userName(artistRegisterDto.getUserName())
.type(artistRegisterDto.getType())
.password(encoder.encode(artistRegisterDto.getPassword()))
.build();
userInfoDao.save(userInfo);

Loading…
Cancel
Save