release- 歌曲新增上传人类型

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

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

@ -622,7 +622,8 @@ public class AlbumService {
songInfo.setId(String.valueOf(idWorker.nextId())); songInfo.setId(String.valueOf(idWorker.nextId()));
songInfo.setAlbum(albumName); songInfo.setAlbum(albumName);
songInfo.setState(SongInfoStateEnum.NO_USE.getCode()); 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); songInfo.setArtist(artistName);
if (user != null) { if (user != null) {
artistAlbum.setCreateUser(user.getUserId()); artistAlbum.setCreateUser(user.getUserId());

@ -1,19 +1,15 @@
package com.luoo.user.pojo; package com.luoo.user.pojo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.luoo.user.util.EmojiConverterUtil;
import lombok.*; import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.Table; 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.io.Serializable;
import java.util.Date;
@Getter @Getter
@ -186,5 +182,10 @@ public class UserInfo implements Serializable {
*/ */
private String userName; private String userName;
/**
* type
*/
private Integer type;
} }

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

Loading…
Cancel
Save