Merge branch 'master' of http://47.109.37.87:3000/by2025/admin-vben5
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 6m15s

This commit is contained in:
2025-06-25 09:28:32 +08:00
13 changed files with 1833 additions and 29 deletions

View File

@@ -0,0 +1,61 @@
import type { PersonLibVO, PersonLibForm, PersonLibQuery } from './model';
import type { ID, IDS } from '#/api/common';
import type { PageResult } from '#/api/common';
import { commonExport } from '#/api/helper';
import { requestClient } from '#/api/request';
/**
* 查询人像库列表
* @param params
* @returns 人像库列表
*/
export function personLibList(params?: PersonLibQuery) {
return requestClient.get<PageResult<PersonLibVO>>('/sis/personLib/list', { params });
}
/**
* 导出人像库列表
* @param params
* @returns 人像库列表
*/
export function personLibExport(params?: PersonLibQuery) {
return commonExport('/sis/personLib/export', params ?? {});
}
/**
* 查询人像库详情
* @param id id
* @returns 人像库详情
*/
export function personLibInfo(id: ID) {
return requestClient.get<PersonLibVO>(`/sis/personLib/${id}`);
}
/**
* 新增人像库
* @param data
* @returns void
*/
export function personLibAdd(data: PersonLibForm) {
return requestClient.postWithMsg<void>('/sis/personLib', data);
}
/**
* 更新人像库
* @param data
* @returns void
*/
export function personLibUpdate(data: PersonLibForm) {
return requestClient.putWithMsg<void>('/sis/personLib', data);
}
/**
* 删除人像库
* @param id id
* @returns void
*/
export function personLibRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/sis/personLib/${id}`);
}

View File

@@ -0,0 +1,144 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface PersonLibVO {
/**
* 主键id
*/
id: string | number;
/**
* 人员库编码
*/
libCode: string;
/**
* 人员库名称
*/
libName: string;
/**
* 人员库描述
*/
libDesc: string;
/**
* 库类型1人员库2工服库
*/
libType: number;
/**
* 库的业务类型 1: 门禁库2: 黑名单库
*/
busiType: number;
/**
* 创建人id
*/
createById: string | number;
/**
* 更新人id
*/
updateById: string | number;
/**
* 搜索值
*/
searchValue: string;
}
export interface PersonLibForm extends BaseEntity {
/**
* 主键id
*/
id?: string | number;
/**
* 人员库编码
*/
libCode?: string;
/**
* 人员库名称
*/
libName?: string;
/**
* 人员库描述
*/
libDesc?: string;
/**
* 库类型1人员库2工服库
*/
libType?: number;
/**
* 库的业务类型 1: 门禁库2: 黑名单库
*/
busiType?: number;
/**
* 创建人id
*/
createById?: string | number;
/**
* 更新人id
*/
updateById?: string | number;
/**
* 搜索值
*/
searchValue?: string;
}
export interface PersonLibQuery extends PageQuery {
/**
* 人员库编码
*/
libCode?: string;
/**
* 人员库名称
*/
libName?: string;
/**
* 人员库描述
*/
libDesc?: string;
/**
* 库类型1人员库2工服库
*/
libType?: number;
/**
* 库的业务类型 1: 门禁库2: 黑名单库
*/
busiType?: number;
/**
* 创建人id
*/
createById?: string | number;
/**
* 更新人id
*/
updateById?: string | number;
/**
* 搜索值
*/
searchValue?: string;
/**
* 日期范围参数
*/
params?: any;
}

View File

@@ -0,0 +1,61 @@
import type { PersonLibImgVO, PersonLibImgForm, PersonLibImgQuery } from './model';
import type { ID, IDS } from '#/api/common';
import type { PageResult } from '#/api/common';
import { commonExport } from '#/api/helper';
import { requestClient } from '#/api/request';
/**
* 查询人像信息列表
* @param params
* @returns 人像信息列表
*/
export function personLibImgList(params?: PersonLibImgQuery) {
return requestClient.get<PageResult<PersonLibImgVO>>('/sis/personLibImg/list', { params });
}
/**
* 导出人像信息列表
* @param params
* @returns 人像信息列表
*/
export function personLibImgExport(params?: PersonLibImgQuery) {
return commonExport('/sis/personLibImg/export', params ?? {});
}
/**
* 查询人像信息详情
* @param id id
* @returns 人像信息详情
*/
export function personLibImgInfo(id: ID) {
return requestClient.get<PersonLibImgVO>(`/sis/personLibImg/${id}`);
}
/**
* 新增人像信息
* @param data
* @returns void
*/
export function personLibImgAdd(data: PersonLibImgForm) {
return requestClient.postWithMsg<void>('/sis/personLibImg', data);
}
/**
* 更新人像信息
* @param data
* @returns void
*/
export function personLibImgUpdate(data: PersonLibImgForm) {
return requestClient.putWithMsg<void>('/sis/personLibImg', data);
}
/**
* 删除人像信息
* @param id id
* @returns void
*/
export function personLibImgRemove(id: ID | IDS) {
return requestClient.deleteWithMsg<void>(`/sis/personLibImg/${id}`);
}

View File

@@ -0,0 +1,228 @@
import type { PageQuery, BaseEntity } from '#/api/common';
export interface PersonLibImgVO {
/**
* 主键id
*/
id: string | number;
/**
* 人员库编码
*/
libCode: string;
/**
* 人像名称
*/
imgName: string;
/**
* 图片编码
*/
imgCode: string;
/**
* 图片的存储地址
*/
imgUrl: string;
/**
* 性别 1
2女 99未说明
*/
sex: number;
/**
* 邮箱
*/
email: string;
/**
* 联系方式
*/
tel: string;
/**
* 证件类型
1身份证 2护照
3行驶证 99其它
*/
certificateType: number;
/**
* 证件号码
*/
certificateNo: string;
/**
* 出生日期
*/
birthDate: string;
/**
* 创建人id
*/
createById: string | number;
/**
* 更新人id
*/
updateById: string | number;
/**
* 搜索值
*/
searchValue: string;
}
export interface PersonLibImgForm extends BaseEntity {
/**
* 主键id
*/
id?: string | number;
/**
* 人员库编码
*/
libCode?: string;
/**
* 人像名称
*/
imgName?: string;
/**
* 图片编码
*/
imgCode?: string;
/**
* 图片的存储地址
*/
imgUrl?: string;
/**
* 性别 1
2女 99未说明
*/
sex?: number;
/**
* 邮箱
*/
email?: string;
/**
* 联系方式
*/
tel?: string;
/**
* 证件类型
1身份证 2护照
3行驶证 99其它
*/
certificateType?: number;
/**
* 证件号码
*/
certificateNo?: string;
/**
* 出生日期
*/
birthDate?: string;
/**
* 创建人id
*/
createById?: string | number;
/**
* 更新人id
*/
updateById?: string | number;
/**
* 搜索值
*/
searchValue?: string;
}
export interface PersonLibImgQuery extends PageQuery {
/**
* 人员库编码
*/
libCode?: string;
/**
* 人像名称
*/
imgName?: string;
/**
* 图片编码
*/
imgCode?: string;
/**
* 图片的存储地址
*/
imgUrl?: string;
/**
* 性别 1
2女 99未说明
*/
sex?: number;
/**
* 邮箱
*/
email?: string;
/**
* 联系方式
*/
tel?: string;
/**
* 证件类型
1身份证 2护照
3行驶证 99其它
*/
certificateType?: number;
/**
* 证件号码
*/
certificateNo?: string;
/**
* 出生日期
*/
birthDate?: string;
/**
* 创建人id
*/
createById?: string | number;
/**
* 更新人id
*/
updateById?: string | number;
/**
* 搜索值
*/
searchValue?: string;
/**
* 日期范围参数
*/
params?: any;
}