企业用户账号管理功能开发
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:
francis-fh
2026-07-12 13:59:52 +08:00
parent 9f5c3c2c10
commit 6311f5a051
3 changed files with 360 additions and 0 deletions

View 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,
});
}