Skip to content

Commit

Permalink
Merge pull request #164 from Team-INSERT/feat/meister-private
Browse files Browse the repository at this point in the history
마이스터역량인증제 비공개 설정 기능
  • Loading branch information
kimsiyeon0223 authored Jan 10, 2024
2 parents 8e3422f + fd1c4b5 commit d96e0ca
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/apis/httpClient/httpClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ export class HttpClient {
});
}

putPrivateMeister(data: unknown, requestConfig?: AxiosRequestConfig) {
return this.api.put("", data, {
...HttpClient.clientConfig,
...requestConfig,
});
}

putByTitle(data: unknown, requestConfig?: AxiosRequestConfig) {
return this.api.put("/:title", data, {
...HttpClient.clientConfig,
Expand Down Expand Up @@ -182,4 +189,5 @@ export default {
meister: new HttpClient("/api/meister", axiosConfig),
ranking: new HttpClient("/api/meister/ranking", axiosConfig),
main: new HttpClient("/api/main", axiosConfig),
private: new HttpClient("/api/meister/privateRanking", axiosConfig),
};
7 changes: 7 additions & 0 deletions src/templates/meister/services/api.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,10 @@ export const getMeisterDetail = async (student: string) => {
});
return data;
};

export const putMeisterRankingPrivate = async (flag: boolean) => {
const { data } = await httpClient.private.putPrivateMeister({
privateRanking: flag,
});
return data;
};

0 comments on commit d96e0ca

Please sign in to comment.