企业用户账号管理功能开发
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:
48
src/services/cms/company.ts
Normal file
48
src/services/cms/company.ts
Normal file
@@ -0,0 +1,48 @@
|
||||
import { request } from '@umijs/max';
|
||||
|
||||
/**
|
||||
* 分页查询企业用户管理列表
|
||||
* GET /cms/company/adminCompanyList
|
||||
*/
|
||||
export async function getAdminCompanyList(
|
||||
params?: API.CmsCompany.Params & {
|
||||
current?: number;
|
||||
pageSize?: number;
|
||||
},
|
||||
) {
|
||||
return request<API.CmsCompany.CompanyUserResult>(
|
||||
'/api/cms/company/adminCompanyList',
|
||||
{
|
||||
method: 'GET',
|
||||
params,
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 切换企业用户启用/停用状态
|
||||
* POST /cms/appUser/changeLcCompanyStatus
|
||||
*/
|
||||
export async function changeLcCompanyStatus(data: {
|
||||
userId: number;
|
||||
status: string;
|
||||
}) {
|
||||
return request('/api/cms/appUser/changeLcCompanyStatus', {
|
||||
method: 'POST',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 浪潮修改密码
|
||||
* POST /cms/appUser/resetLcPsw
|
||||
*/
|
||||
export async function resetLcPsw(data: {
|
||||
userId: number;
|
||||
password: string;
|
||||
}) {
|
||||
return request('/api/cms/appUser/resetLcPsw', {
|
||||
method: 'POST',
|
||||
data,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user