parent
29bb05994a
commit
74b530fedb
@ -0,0 +1,19 @@
|
||||
package com.luoo.user.dao;
|
||||
|
||||
import com.luoo.user.pojo.ArtistUser;
|
||||
import org.springframework.data.jpa.repository.JpaRepository;
|
||||
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
|
||||
|
||||
/**
|
||||
* @Author: yawei.huang
|
||||
* @Package: com.luoo.user.dao
|
||||
* @Project: luoo_parent
|
||||
* @Date: 2024/4/25 16:02
|
||||
* @Filename: ArtistUserDao
|
||||
* @Describe:
|
||||
*/
|
||||
public interface ArtistUserDao extends JpaRepository<ArtistUser,String>, JpaSpecificationExecutor<ArtistUser> {
|
||||
|
||||
public ArtistUser findArtistUserByArtistIdAndUserId(String artist, String userId);
|
||||
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package com.luoo.user.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
import javax.validation.constraints.NotNull;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author: yawei.huang
|
||||
* @Package: com.luoo.user.dto
|
||||
* @Project: luoo_parent
|
||||
* @Date: 2024/4/25 16:06
|
||||
* @Filename: ArtistUserBindDto
|
||||
* @Describe: 音乐人与成员绑定/解绑用
|
||||
*/
|
||||
@Data
|
||||
public class ArtistUserBindDto implements Serializable {
|
||||
@ApiModelProperty(name = "音乐人id")
|
||||
@NotNull(message = "音乐人id必填")
|
||||
private String artistId;
|
||||
|
||||
@ApiModelProperty(name = "成员id")
|
||||
@NotNull(message = "成员id必填")
|
||||
private String UserId;
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package com.luoo.user.pojo;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.*;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Author: yawei.huang
|
||||
* @Package: com.luoo.user.pojo
|
||||
* @Project: luoo_parent
|
||||
* @Date: 2024/4/25 15:53
|
||||
* @Filename: ArtistUser
|
||||
* @Describe: 音乐人与成员绑定对象
|
||||
*/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode
|
||||
@Builder
|
||||
@Entity
|
||||
@Table(name="tb_artist_user")
|
||||
public class ArtistUser implements Serializable {
|
||||
|
||||
@Id
|
||||
@ApiModelProperty("id")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty("音乐人id")
|
||||
private String artistId;
|
||||
|
||||
@ApiModelProperty("成员id")
|
||||
private String userId;
|
||||
}
|
Loading…
Reference in new issue