增加人像库
增加人像库图片
This commit is contained in:
61
apps/web-antd/src/api/sis/personLib/index.ts
Normal file
61
apps/web-antd/src/api/sis/personLib/index.ts
Normal 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}`);
|
||||
}
|
144
apps/web-antd/src/api/sis/personLib/model.d.ts
vendored
Normal file
144
apps/web-antd/src/api/sis/personLib/model.d.ts
vendored
Normal 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;
|
||||
}
|
61
apps/web-antd/src/api/sis/personLibImg/index.ts
Normal file
61
apps/web-antd/src/api/sis/personLibImg/index.ts
Normal 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}`);
|
||||
}
|
228
apps/web-antd/src/api/sis/personLibImg/model.d.ts
vendored
Normal file
228
apps/web-antd/src/api/sis/personLibImg/model.d.ts
vendored
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user