-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ feat: add admin music recommend view (#429)
- Loading branch information
1 parent
0b24776
commit eecc7aa
Showing
7 changed files
with
175 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...c/main/java/com/depromeet/domains/recommend/search/dto/SearchRecommendAllResponseDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package com.depromeet.domains.recommend.search.dto; | ||
|
||
import com.depromeet.common.dto.PageMetaData; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Getter | ||
public class SearchRecommendAllResponseDto { | ||
private List<SearchRecommendResponseDto> data; | ||
private PageMetaData meta; | ||
} |
19 changes: 19 additions & 0 deletions
19
.../src/main/java/com/depromeet/domains/recommend/search/dto/SearchRecommendResponseDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.depromeet.domains.recommend.search.dto; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
@Getter | ||
public class SearchRecommendResponseDto { | ||
private Long id; | ||
private String title; | ||
private List<TextColorDto> description; | ||
private List<TextColorDto> terms; | ||
private boolean active; | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
...java/com/depromeet/domains/recommend/search/repository/SearchRecommendTermRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
package com.depromeet.domains.recommend.search.repository; | ||
|
||
import com.depromeet.recommend.search.SearchRecommendTerm; | ||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
|
||
public interface SearchRecommendTermRepository extends JpaRepository<SearchRecommendTerm, Long> { | ||
|
||
@Query(value = "SELECT * FROM search_recommend_term", | ||
nativeQuery = true, | ||
countQuery = "SELECT count(s) FROM search_recommend_term s") | ||
Page<SearchRecommendTerm> findAll(Pageable pageable); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
backend/streetdrop-admin/streetdrop-admin-web/src/api/domain/music/RecommendApi.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import {axiosAuthInstance} from "../../AxiosInstance"; | ||
|
||
|
||
const RecommendApi = { | ||
getMusicKeywordRecommend: (page, size) => { | ||
return axiosAuthInstance.get('/search-term/recommend', { | ||
params: { | ||
page: page, | ||
size: size | ||
} | ||
}) | ||
} | ||
} | ||
|
||
export default RecommendApi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters