//TODO此代码没用

// // 假设这些类型定义在其他文件中，需要根据实际情况导入
// //import { AttachFile, PicpCheckRecords, PicpCheckResInfo, Types } from './your-entity-types';

// import TransitEntity from '../ServiceFunction/TransitEntity';
// import ServiceManager from '../ServiceFunction/ServiceManager';
// import CommonFunction from '../CommonFunction';
// import FilesHandle from '../ServiceHelper/FilesHandle'
// export class PicpHandle {
//     public static async PicpCommonRequest(msgStr: string): Promise<Uint8Array | null> {
//         let tradeReturn: Uint8Array | null = null;
//         try {
//             const entity: TransitEntity = {
//                 ServiceName: "PicpService",
//                 FuncName: "PicpCommonRequest",
//                 Parameters: { "1": msgStr }
//             };
//             const tmpresult = await ServiceManager.GetInstance().Commit(entity);
//             if (tmpresult && tmpresult.length === 1) {
//                 tradeReturn = tmpresult[0].AttachValue as Uint8Array;
//             }
//         } catch (e) {
//             throw e;
//         }
//         return tradeReturn;
//     }

//     public static async PicpCheckRequest(picpCheckRecords: PicpCheckRecords): Promise<PicpCheckResInfo | null> {
//         let tradeReturn: PicpCheckResInfo | null = null;
//         try {
//             const entity: TransitEntity = {
//                 ServiceName: "PicpService",
//                 FuncName: "PicpCheckRequest",
//                 Parameters: {},
//                 AttachFiles: []
//             };
//             const attcheds: AttachFile = {
//                 AttachIndex: "1",
//                 AttachType: Types.TableType,
//                 //  AttachValue: CommonFunction.ChangeEntityTable<PicpCheckRecords[], any>([picpCheckRecords])
//             };
//             entity.AttachFiles.push(attcheds);
//             const tmpresult = await ServiceManager.GetInstance().Commit(entity);
//             if (tmpresult && tmpresult.length === 1) {
//                 //tradeReturn = CommonFunction.ChangeEntityTable<any, PicpCheckResInfo>(tmpresult[0].AttachValue as any);
//                 if (tradeReturn) {
//                     tradeReturn.photoData = tmpresult[1].AttachValue as Uint8Array;
//                 }
//             }
//         } catch (e) {
//             throw e;
//         }
//         return tradeReturn;
//     }

//     public static async GenCheckReqMessage(picpCheckRecords: PicpCheckRecords): Promise<string | null> {
//         let tradeReturn: string | null = null;
//         try {
//             const entity: TransitEntity = {
//                 ServiceName: "PicpService",
//                 FuncName: "GenCheckReqMessage",
//                 AttachFiles: []
//             };
//             const attcheds: AttachFile = {
//                 AttachIndex: "1",
//                 AttachType: Types.TableType,
//                 AttachValue: CommonFunction.ChangeEntityTable<PicpCheckRecords[], any>([picpCheckRecords])
//             };
//             entity.AttachFiles.push(attcheds);
//             const tmpresult = await ServiceManager.GetInstance().Commit(entity);
//             if (tmpresult && tmpresult.length === 1) {
//                 tradeReturn = tmpresult[0].AttachValue.toString();
//             }
//         } catch (e) {
//             throw e;
//         }
//         return tradeReturn;
//     }

//     public static async AnalyzeCheckResMessage(recvData: Uint8Array): Promise<PicpCheckResInfo | null> {
//         let tradeReturn: PicpCheckResInfo | null = null;
//         try {
//             const entity: TransitEntity = {
//                 ServiceName: "PicpService",
//                 FuncName: "AnalyzeCheckResMessage",
//                 AttachFiles: []
//             };
//             const attcheds2: AttachFile = {
//                 AttachIndex: "1",
//                 AttachType: Types.ByteType,
//                 AttachValue: recvData
//             };
//             entity.AttachFiles.push(attcheds2);
//             const tmpresult = await ServiceManager.GetInstance().Commit(entity);
//             if (tmpresult && tmpresult.length === 1) {
//                 tradeReturn = CommonFunction.ChangeEntityTable<any, PicpCheckResInfo>(tmpresult[0].AttachValue as any);
//                 if (tradeReturn) {
//                     tradeReturn.photoData = tmpresult[1].AttachValue as Uint8Array;
//                 }
//             }
//         } catch (e) {
//             throw e;
//         }
//         return tradeReturn;
//     }
// }
