门禁授权操作优化

This commit is contained in:
15683799673
2025-07-01 08:44:21 +08:00
parent d24d03457a
commit bef5cc55e9
5 changed files with 37 additions and 20 deletions

View File

@@ -39,7 +39,7 @@ export function authRecordInfo(id: ID) {
* @returns void
*/
export function authRecordAdd(data: AuthRecordForm) {
return requestClient.postWithMsg<void>('/sis/authRecord', data);
return requestClient.postWithMsg<void>('/sis/authRecord/add', data);
}
/**

View File

@@ -1,4 +1,4 @@
import type { PageQuery, BaseEntity } from '#/api/common';
import type { BaseEntity, PageQuery } from '#/api/common';
export interface AuthRecordVO {
/**
@@ -15,25 +15,25 @@ export interface AuthRecordVO {
* 门禁id
*/
acdId: string | number;
}
export interface AuthRecordForm extends BaseEntity {
/**
* 主键id
*/
id?: string | number;
libId?: string | number;
/**
* 人像id
*/
imgId?: string | number;
imgIds?: string[] | number[];
/**
* 门禁id
*/
acdId?: string | number;
acIds?: string[] | number[];
issue: boolean;
}
export interface AuthRecordQuery extends PageQuery {
@@ -48,7 +48,7 @@ export interface AuthRecordQuery extends PageQuery {
acdId?: string | number;
/**
* 日期范围参数
*/
* 日期范围参数
*/
params?: any;
}