forked from baron/baron-sso
i18n, adminfront, devfront: 'make code-check' 통과를 위한 번역 싱크 엔진 개선, 룰 오브 훅 정합성 교정 및 테스트 레이스 컨디션 해결
This commit is contained in:
@@ -541,20 +541,14 @@ export async function fetchSystemRelations() {
|
||||
return data.items;
|
||||
}
|
||||
|
||||
export async function addSystemRelation(
|
||||
userId: string,
|
||||
relation: string,
|
||||
) {
|
||||
export async function addSystemRelation(userId: string, relation: string) {
|
||||
await apiClient.post(`/v1/admin/system/relations`, {
|
||||
userId,
|
||||
relation,
|
||||
});
|
||||
}
|
||||
|
||||
export async function removeSystemRelation(
|
||||
userId: string,
|
||||
relation: string,
|
||||
) {
|
||||
export async function removeSystemRelation(userId: string, relation: string) {
|
||||
await apiClient.delete(`/v1/admin/system/relations`, {
|
||||
data: { userId, relation },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user