feat:log
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m41s

This commit is contained in:
sexygoat
2026-04-27 15:06:27 +08:00
parent 853c87b8a2
commit a055ff166a
7 changed files with 479 additions and 4 deletions

View File

@@ -19,7 +19,9 @@ import type {
AssetOrdersParams,
AssetOrdersResponse,
UpdateAssetRealnameStatusRequest,
DtoUpdateAssetRealnameStatusResponse
DtoUpdateAssetRealnameStatusResponse,
AssetOperationLogsResponse,
AssetOperationLogsParams
} from '@/types/api'
export class AssetService extends BaseService {
@@ -231,4 +233,22 @@ export class AssetService extends BaseService {
data
)
}
// ========== 资产操作审计日志 ==========
/**
* 查询资产操作审计日志
* GET /api/admin/assets/:identifier/operation-logs
* @param identifier 资产标识符
* @param params 查询参数
*/
static getOperationLogs(
identifier: string,
params?: AssetOperationLogsParams
): Promise<BaseResponse<AssetOperationLogsResponse>> {
return this.get<BaseResponse<AssetOperationLogsResponse>>(
`/api/admin/assets/${identifier}/operation-logs`,
params
)
}
}