feat: 그룹 관리 > 그룹 수정 작업
This commit is contained in:
@@ -4,7 +4,7 @@ import type {
|
||||
GroupService,
|
||||
GroupSearchParams,
|
||||
GroupList,
|
||||
GroupDetailResponse,
|
||||
GroupResponseDto,
|
||||
GroupFormData,
|
||||
} from "../model/groups-interface";
|
||||
|
||||
@@ -19,16 +19,16 @@ export class GroupsApiService implements GroupService {
|
||||
}
|
||||
|
||||
// 그룹 단건 조회
|
||||
public async findById(groupId: string): Promise<GroupDetailResponse> {
|
||||
const response = await client.get<GroupDetailResponse>(
|
||||
public async findGroupById(groupId: string): Promise<GroupResponseDto> {
|
||||
const response = await client.get<GroupResponseDto>(
|
||||
`${ENDPOINT.CMS_SERVICE.GROUPS}/${groupId}`,
|
||||
);
|
||||
return response.data;
|
||||
}
|
||||
|
||||
// 그룹 저장
|
||||
public async saveGroup(data: GroupFormData): Promise<GroupDetailResponse> {
|
||||
const response = await client.post<GroupDetailResponse>(
|
||||
public async saveGroup(data: GroupFormData): Promise<GroupResponseDto> {
|
||||
const response = await client.post<GroupResponseDto>(
|
||||
`${ENDPOINT.CMS_SERVICE.GROUPS}`,
|
||||
data,
|
||||
);
|
||||
@@ -39,8 +39,8 @@ export class GroupsApiService implements GroupService {
|
||||
public async updateGroup(
|
||||
groupId: string,
|
||||
data: GroupFormData,
|
||||
): Promise<GroupDetailResponse> {
|
||||
const response = await client.put<GroupDetailResponse>(
|
||||
): Promise<GroupResponseDto> {
|
||||
const response = await client.put<GroupResponseDto>(
|
||||
`${ENDPOINT.CMS_SERVICE.GROUPS}/${groupId}`,
|
||||
data,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user