Repository navigation
[Feature/#95] 캠페인 목록 조회 및 전체 캠페인 제어 API 연동 #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 16 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
8b3c9c4
feat: 조직 전체 조회/캠페인 목록 조회 API 연동
YermIm f9eefed
Merge branch 'develop' of https://github.com/WhereYouAd/WhereYouAd-Fr…
YermIm d3d8387
feat: 캠페인 목록 interface 수정 및 데이터 연동
YermIm baf64ca
fix: 테이블 속성 비율 조정
YermIm 3099c08
feat: 캠페인 운영 상태별 처리
YermIm 9c243c3
feat: 전체 캠페인 중단/재개 API 연동
YermIm 6dd5ffe
Merge branch 'develop' of https://github.com/WhereYouAd/WhereYouAd-Fr…
YermIm 5ed6a7c
fix: CampaignRow 사용하지 않는 변수 제거
YermIm 29f29d3
fix: 로딩 처리 추가
YermIm b6c1d72
fix: 인터페이스 수정
YermIm 8338fd4
fix: 캠페인 목록 필터링 버그 수정 및 HTML 구조 개선
YermIm 028ffcb
feat: 캠페인 없을 시 전체 캠페인 controlBox 숨김
YermIm 6ba9e5c
fix: IApiResult 삭제 및 ICommonResponse 교체
YermIm abb86cf
Merge branch 'develop' of https://github.com/WhereYouAd/WhereYouAd-Fr…
YermIm de89045
fix: provider 소문자 변환
YermIm b5d4f9d
fix: 필드 비율 수정
YermIm 1f6eaed
fix: 충돌 해결
YermIm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,20 @@ | ||
| import type { ICampaign } from "@/types/ads/campaign"; | ||
| import type { ICommonResponse } from "@/types/common/common"; | ||
|
|
||
| import { axiosInstance } from "@/lib/axiosInstance"; | ||
|
|
||
| export const getCampaignList = async (orgId: number): Promise<ICampaign[]> => { | ||
| const { data } = await axiosInstance.get< | ||
| ICommonResponse<{ projects: ICampaign[] }> | ||
| >(`/api/project/${orgId}`); | ||
| return data.data.projects; | ||
| }; | ||
|
|
||
| export const updateAllCampaignStatus = async ( | ||
| orgId: number, | ||
| status: "ON_GOING" | "PAUSED", | ||
| ): Promise<void> => { | ||
| await axiosInstance.patch(`/api/project/${orgId}/status`, null, { | ||
| params: { status }, | ||
| }); | ||
| }; |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.