增加转发对象配置,工作人员管理页面
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
This commit is contained in:
28
src/services/application/GroupManagement.ts
Normal file
28
src/services/application/GroupManagement.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { request } from '@umijs/max';
|
||||
|
||||
export async function getCmsWechatGroupList(params?: API.GroupManagement.Params) {
|
||||
return request<API.GroupManagement.Result>(`/api/cms/wechatGroup/list`, {
|
||||
method: 'GET',
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
export async function addCmsWechatGroup(params?: API.GroupManagement.Params) {
|
||||
return request<API.GroupManagement.Result>(`/api/cms/wechatGroup`, {
|
||||
method: 'POST',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
export async function putCmsWechatGroup(params?: API.GroupManagement.Params) {
|
||||
return request<API.GroupManagement.Result>(`/api/cms/wechatGroup`, {
|
||||
method: 'PUT',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
export async function delCmsWechatGroup(ids?: string) {
|
||||
return request<API.GroupManagement.Result>(`/api/cms/wechatGroup/${ids}`, {
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
28
src/services/application/Msmanagement.ts
Normal file
28
src/services/application/Msmanagement.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { request } from '@umijs/max';
|
||||
|
||||
export async function getCmsCommunityUserList(params?: API.GroupManagement.Params) {
|
||||
return request<API.GroupManagement.Result>(`/api/cms/communityUser`, {
|
||||
method: 'GET',
|
||||
params: params,
|
||||
});
|
||||
}
|
||||
|
||||
export async function addCmsCommunityUser(params?: API.GroupManagement.Params) {
|
||||
return request<API.GroupManagement.Result>(`/api/cms/communityUser`, {
|
||||
method: 'POST',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
export async function putCmsCommunityUser(params?: API.GroupManagement.Params) {
|
||||
return request<API.GroupManagement.Result>(`/api/cms/communityUser`, {
|
||||
method: 'PUT',
|
||||
data: params,
|
||||
});
|
||||
}
|
||||
|
||||
export async function delCmsCommunityUser(ids?: string) {
|
||||
return request<API.GroupManagement.Result>(`/api/cms/communityUser/${ids}`, {
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user