szpt-driver-api 1.0.89 → 1.0.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/auth.d.ts CHANGED
@@ -659,11 +659,11 @@ export declare class IdCardLoginForm {
659
659
  /** 手机号码 */
660
660
  phone?: string;
661
661
  }
662
- export declare class ImportUserResult {
663
- failDetails: UserImportResultDetail[];
662
+ export declare class ImportUserProfileResult {
663
+ failDetails: UserProfileImportResultDetail[];
664
664
  /** @format int32 */
665
665
  failTotal: number;
666
- successDetails: UserImportResultDetail[];
666
+ successDetails: UserProfileImportResultDetail[];
667
667
  /** @format int32 */
668
668
  successTotal: number;
669
669
  /** @format int32 */
@@ -1273,7 +1273,7 @@ export declare class PersonEarlyWarnOverAge {
1273
1273
  */
1274
1274
  birthday: number;
1275
1275
  departmentCode: string;
1276
- /** 用工类型 */
1276
+ /** 员工类型 */
1277
1277
  employmentType: string;
1278
1278
  /** 身份证号 */
1279
1279
  idCardNumber: string;
@@ -1304,7 +1304,7 @@ export declare class PersonEarlyWarnYoungAge {
1304
1304
  */
1305
1305
  birthday: number;
1306
1306
  departmentCode: string;
1307
- /** 用工类型 */
1307
+ /** 员工类型 */
1308
1308
  employmentType: string;
1309
1309
  /** 身份证号 */
1310
1310
  idCardNumber: string;
@@ -2251,12 +2251,26 @@ export declare class UserImportBean {
2251
2251
  retiredRehire: string;
2252
2252
  valid: boolean;
2253
2253
  }
2254
- export declare class UserImportResultDetail {
2255
- detail: UserImportBean;
2256
- message: string;
2254
+ export declare class UserImportDetails {
2255
+ errors: string[];
2256
+ insert: boolean;
2257
2257
  /** @format int32 */
2258
2258
  rowNumber: number;
2259
- success: boolean;
2259
+ sheetName: string;
2260
+ update: boolean;
2261
+ /** @format int64 */
2262
+ userId: number;
2263
+ username: string;
2264
+ valid: boolean;
2265
+ }
2266
+ export declare class UserImportResult {
2267
+ details: UserImportDetails[];
2268
+ /** @format int32 */
2269
+ failedRows: number;
2270
+ /** @format int32 */
2271
+ successRows: number;
2272
+ /** @format int32 */
2273
+ totalRows: number;
2260
2274
  }
2261
2275
  export declare class UserLocation {
2262
2276
  /** @format double */
@@ -2487,7 +2501,7 @@ export declare class UserProfileAdditional {
2487
2501
  emergencyContactPhone: string;
2488
2502
  /** 员工编号 */
2489
2503
  employeeNumber: string;
2490
- /** 用工类型 */
2504
+ /** 员工类型 */
2491
2505
  employeeType: string;
2492
2506
  /**
2493
2507
  * 入伍时间
@@ -2615,6 +2629,13 @@ export declare class UserProfileExtraDetail {
2615
2629
  /** 体检表 */
2616
2630
  userProfilePhysicalExaminations: UserProfilePhysicalExamination[];
2617
2631
  }
2632
+ export declare class UserProfileImportResultDetail {
2633
+ detail: UserImportBean;
2634
+ message: string;
2635
+ /** @format int32 */
2636
+ rowNumber: number;
2637
+ success: boolean;
2638
+ }
2618
2639
  export declare class UserProfileLanguageAbility {
2619
2640
  /** 语言能力描述 */
2620
2641
  languageAbility: string;
@@ -2658,66 +2679,34 @@ export declare class UserProfileTrainingExperience {
2658
2679
  export declare class UserProfileUpdateBean {
2659
2680
  /** 头像 */
2660
2681
  avatar?: string;
2661
- /**
2662
- * 出生日期
2663
- * @format int64
2664
- */
2665
- birthDate?: number;
2666
2682
  /** 用户证书信息 */
2667
2683
  certificates?: UserProfileCertificate[];
2668
2684
  /** 用户合同信息 */
2669
2685
  contracts?: UserProfileContracts[];
2670
- /** 学历 */
2671
- educationalBackground?: string;
2672
- /** Email */
2673
- email?: string;
2674
- /** 用工类型 */
2675
- employeeType?: string;
2686
+ /** 部门编号 */
2687
+ departmentCode?: string;
2676
2688
  /**
2677
- * 入伍时间
2678
- * @format int64
2679
- */
2680
- enlistmentTime?: number;
2681
- /**
2682
- * 入职日期
2689
+ * 部门ID
2683
2690
  * @format int64
2684
2691
  */
2685
- entryDate?: number;
2692
+ departmentId?: number;
2693
+ /** Email */
2694
+ email?: string;
2686
2695
  /** 性别 */
2687
2696
  gender?: "Female" | "Male" | "Other" | "Unknown";
2688
- /**
2689
- * 身高(厘米)
2690
- * @format int32
2691
- */
2692
- height?: number;
2693
2697
  /** @format int64 */
2694
2698
  id?: number;
2695
2699
  /** 身份证号 */
2696
2700
  idCardNumber?: string;
2697
- /** 人员职务 */
2698
- jobTitle?: string;
2699
- /**
2700
- * 离职日期
2701
- * @format int64
2702
- */
2703
- leaveDate?: number;
2704
- /**
2705
- * 军龄
2706
- * @format int32
2707
- */
2708
- militaryAge?: number;
2709
- /** 民族 */
2710
- nation?: string;
2711
- /** 人员状态 */
2712
- personnelStatus?: string;
2713
2701
  /** 手机号 */
2714
2702
  phone?: string;
2715
- /** 政治面貌 */
2716
- politicalStatus?: string;
2717
2703
  /** 姓名 */
2718
2704
  realName?: string;
2719
- /** 保安证等级 */
2720
- securityGuardCertificateLevel?: string;
2705
+ /**
2706
+ * 角色
2707
+ * @format int64
2708
+ */
2709
+ roleId?: number;
2721
2710
  /** 用户额外信息 */
2722
2711
  userProfileAdditional?: UserProfileAdditional;
2723
2712
  /** 用户工作经历以及技能 */
@@ -2726,8 +2715,7 @@ export declare class UserProfileUpdateBean {
2726
2715
  userProfileNoCriminalRecords?: UserProfileNoCriminalRecord[];
2727
2716
  /** 用户体检表 */
2728
2717
  userProfilePhysicalExaminations?: UserProfilePhysicalExamination[];
2729
- /** 退伍证号 */
2730
- veteransCertificateNumber?: string;
2718
+ username?: string;
2731
2719
  }
2732
2720
  export declare class UserProfileWorkExperience {
2733
2721
  /** 工作经历描述 */
@@ -3094,77 +3082,35 @@ export declare class UserTrackQuery {
3094
3082
  export declare class UserUpdateBean {
3095
3083
  /** 头像 */
3096
3084
  avatar?: string;
3097
- /**
3098
- * 出生日期
3099
- * @format int64
3100
- */
3101
- birthDate?: number;
3102
3085
  /** 用户证书信息 */
3103
3086
  certificates?: UserProfileCertificate[];
3104
3087
  /** 用户合同信息 */
3105
3088
  contracts?: UserProfileContracts[];
3089
+ /** 部门编号 */
3090
+ departmentCode?: string;
3106
3091
  /** @format int64 */
3107
3092
  departmentId?: number;
3108
- /** 学历 */
3109
- educationalBackground?: string;
3110
3093
  /** Email */
3111
3094
  email?: string;
3112
- /** 用工类型 */
3113
- employeeType?: string;
3114
- /**
3115
- * 入伍时间
3116
- * @format int64
3117
- */
3118
- enlistmentTime?: number;
3119
- /**
3120
- * 入职日期
3121
- * @format int64
3122
- */
3123
- entryDate?: number;
3124
3095
  /** @format int64 */
3125
3096
  expire?: number;
3126
3097
  /** 性别 */
3127
3098
  gender?: "Female" | "Male" | "Other" | "Unknown";
3128
- /**
3129
- * 身高(厘米)
3130
- * @format int32
3131
- */
3132
- height?: number;
3133
3099
  /** @format int64 */
3134
3100
  id?: number;
3135
3101
  /** 身份证号 */
3136
3102
  idCardNumber?: string;
3137
- /** 人员职务 */
3138
- jobTitle?: string;
3139
- /**
3140
- * 离职日期
3141
- * @format int64
3142
- */
3143
- leaveDate?: number;
3144
3103
  loginName?: string;
3145
- /**
3146
- * 军龄
3147
- * @format int32
3148
- */
3149
- militaryAge?: number;
3150
- /** 民族 */
3151
- nation?: string;
3152
3104
  /** @format int64 */
3153
3105
  passwordExpire?: number;
3154
- /** 人员状态 */
3155
- personnelStatus?: string;
3156
3106
  /** 手机号 */
3157
3107
  phone?: string;
3158
3108
  /** @format int64 */
3159
3109
  policeId?: number;
3160
- /** 政治面貌 */
3161
- politicalStatus?: string;
3162
3110
  /** 姓名 */
3163
3111
  realName?: string;
3164
3112
  /** @format int64 */
3165
3113
  roleId?: number;
3166
- /** 保安证等级 */
3167
- securityGuardCertificateLevel?: string;
3168
3114
  /** 用户额外信息 */
3169
3115
  userProfileAdditional?: UserProfileAdditional;
3170
3116
  /** 用户工作经历以及技能 */
@@ -3173,8 +3119,7 @@ export declare class UserUpdateBean {
3173
3119
  userProfileNoCriminalRecords?: UserProfileNoCriminalRecord[];
3174
3120
  /** 用户体检表 */
3175
3121
  userProfilePhysicalExaminations?: UserProfilePhysicalExamination[];
3176
- /** 退伍证号 */
3177
- veteransCertificateNumber?: string;
3122
+ username?: string;
3178
3123
  }
3179
3124
  export declare class UsernamePasswordLoginForm {
3180
3125
  /** 用户登录名 */
@@ -4001,6 +3946,9 @@ export declare class PoliceFindByJybhParams {
4001
3946
  /** type */
4002
3947
  type: string;
4003
3948
  }
3949
+ export declare class PoliceImportPayload {
3950
+ file?: File;
3951
+ }
4004
3952
  export declare class PoliceImportParams {
4005
3953
  autoCreateUser?: boolean;
4006
3954
  defaultPassword?: string;
@@ -4305,7 +4253,7 @@ export declare class ToOssParams {
4305
4253
  export declare class UploadPayload {
4306
4254
  file?: File;
4307
4255
  }
4308
- export declare class ByIdParams3 {
4256
+ export declare class ByIdParams6 {
4309
4257
  /** format */
4310
4258
  format?: string;
4311
4259
  /** id */
@@ -4633,7 +4581,7 @@ export declare class CacheClearParams {
4633
4581
  /** username */
4634
4582
  username: string;
4635
4583
  }
4636
- export declare class ExistParams10 {
4584
+ export declare class ExistParams8 {
4637
4585
  /** 根据可管理部门id查询。支持多选 */
4638
4586
  adminDepartmentId?: number[];
4639
4587
  /** 基于业务部门业务标识匹配 */
@@ -4746,6 +4694,16 @@ export declare class FindByUsernameSimpleByUsernameParams {
4746
4694
  /** username */
4747
4695
  username: string;
4748
4696
  }
4697
+ export declare class ImportPayload {
4698
+ file?: File;
4699
+ }
4700
+ export declare class ImportParams {
4701
+ defaultPassword?: string;
4702
+ department?: string;
4703
+ errorPolicy?: "override" | "rollback" | "skip";
4704
+ loginNamePrefix?: string;
4705
+ updateIfExist?: boolean;
4706
+ }
4749
4707
  export declare class GetListParams {
4750
4708
  /** 根据可管理部门id查询。支持多选 */
4751
4709
  adminDepartmentId?: number[];
@@ -4848,6 +4806,9 @@ export declare class GetListParams {
4848
4806
  usernameLike?: string;
4849
4807
  }
4850
4808
  export declare type ListSimpleByRealnamePayload = string[];
4809
+ export declare class ProfileImportPayload {
4810
+ file?: File;
4811
+ }
4851
4812
  export declare type PutResetPasswordPayload = number[];
4852
4813
  export declare type PutAdminDepartmentByIdPayload = number[];
4853
4814
  export declare type PutPermissionsByIdPayload = string[];
@@ -6849,6 +6810,7 @@ declare class Api {
6849
6810
  * @name GetPolice
6850
6811
  * @summary 列出警员
6851
6812
  * @request GET:/auth/organization/police
6813
+ * @deprecated
6852
6814
  * @response `200` `DesensitizePageResultPolice` OK
6853
6815
  * @response `401` `void` Unauthorized
6854
6816
  * @response `403` `void` Forbidden
@@ -6862,6 +6824,7 @@ declare class Api {
6862
6824
  * @name PostPolice
6863
6825
  * @summary 创建警员
6864
6826
  * @request POST:/auth/organization/police
6827
+ * @deprecated
6865
6828
  * @response `200` `Police` OK
6866
6829
  * @response `201` `void` Created
6867
6830
  * @response `401` `void` Unauthorized
@@ -6876,6 +6839,7 @@ declare class Api {
6876
6839
  * @name PoliceExist
6877
6840
  * @summary 查询指定条件的警员是否存在
6878
6841
  * @request GET:/auth/organization/police/exist
6842
+ * @deprecated
6879
6843
  * @response `200` `boolean` OK
6880
6844
  * @response `401` `void` Unauthorized
6881
6845
  * @response `403` `void` Forbidden
@@ -6889,6 +6853,7 @@ declare class Api {
6889
6853
  * @name PoliceFindByJybh
6890
6854
  * @summary 根据警号和类型获取警员信息
6891
6855
  * @request GET:/auth/organization/police/find-by-jybh
6856
+ * @deprecated
6892
6857
  * @response `200` `Police` OK
6893
6858
  * @response `401` `void` Unauthorized
6894
6859
  * @response `403` `void` Forbidden
@@ -6902,13 +6867,14 @@ declare class Api {
6902
6867
  * @name PoliceImport
6903
6868
  * @summary 导入警员
6904
6869
  * @request POST:/auth/organization/police/import
6870
+ * @deprecated
6905
6871
  * @response `200` `ImportResultPoliceImportResultDetail` OK
6906
6872
  * @response `201` `void` Created
6907
6873
  * @response `401` `void` Unauthorized
6908
6874
  * @response `403` `void` Forbidden
6909
6875
  * @response `404` `void` Not Found
6910
6876
  */
6911
- policeImport: (query: PoliceImportParams, file: any, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<ImportResultPoliceImportResultDetail>;
6877
+ policeImport: (query: PoliceImportParams, data: PoliceImportPayload, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<ImportResultPoliceImportResultDetail>;
6912
6878
  /**
6913
6879
  * @description 所需权限:police:list
6914
6880
  *
@@ -6916,6 +6882,7 @@ declare class Api {
6916
6882
  * @name PoliceList
6917
6883
  * @summary 列出警员
6918
6884
  * @request POST:/auth/organization/police/list
6885
+ * @deprecated
6919
6886
  * @response `200` `DesensitizePageResultPolice` OK
6920
6887
  * @response `201` `void` Created
6921
6888
  * @response `401` `void` Unauthorized
@@ -6930,6 +6897,7 @@ declare class Api {
6930
6897
  * @name PutPoliceSyncBatch
6931
6898
  * @summary 批量同步指定警员信息
6932
6899
  * @request PUT:/auth/organization/police/sync-batch
6900
+ * @deprecated
6933
6901
  * @response `200` `void` OK
6934
6902
  * @response `201` `void` Created
6935
6903
  * @response `401` `void` Unauthorized
@@ -6944,6 +6912,7 @@ declare class Api {
6944
6912
  * @name PutPoliceSyncCurrentUserPolice
6945
6913
  * @summary 同步当前用户绑定的警员信息
6946
6914
  * @request PUT:/auth/organization/police/sync-current-user-police
6915
+ * @deprecated
6947
6916
  * @response `200` `Police` OK
6948
6917
  * @response `201` `void` Created
6949
6918
  * @response `401` `void` Unauthorized
@@ -6958,6 +6927,7 @@ declare class Api {
6958
6927
  * @name GetPoliceById
6959
6928
  * @summary 根据id获取警员信息
6960
6929
  * @request GET:/auth/organization/police/{id}
6930
+ * @deprecated
6961
6931
  * @response `200` `Police` OK
6962
6932
  * @response `401` `void` Unauthorized
6963
6933
  * @response `403` `void` Forbidden
@@ -6971,6 +6941,7 @@ declare class Api {
6971
6941
  * @name PutPoliceById
6972
6942
  * @summary 修改警员信息
6973
6943
  * @request PUT:/auth/organization/police/{id}
6944
+ * @deprecated
6974
6945
  * @response `200` `Police` OK
6975
6946
  * @response `201` `void` Created
6976
6947
  * @response `401` `void` Unauthorized
@@ -6985,6 +6956,7 @@ declare class Api {
6985
6956
  * @name DeletePoliceById
6986
6957
  * @summary 删除警员
6987
6958
  * @request DELETE:/auth/organization/police/{id}
6959
+ * @deprecated
6988
6960
  * @response `200` `void` OK
6989
6961
  * @response `204` `void` No Content
6990
6962
  * @response `401` `void` Unauthorized
@@ -6998,6 +6970,7 @@ declare class Api {
6998
6970
  * @name PutPoliceSyncById
6999
6971
  * @summary 同步指定警员信息
7000
6972
  * @request PUT:/auth/organization/police/{id}/sync
6973
+ * @deprecated
7001
6974
  * @response `200` `void` OK
7002
6975
  * @response `201` `void` Created
7003
6976
  * @response `401` `void` Unauthorized
@@ -7126,6 +7099,7 @@ declare class Api {
7126
7099
  * @name PoliceUser
7127
7100
  * @summary 创建警员用户
7128
7101
  * @request POST:/auth/police-user
7102
+ * @deprecated
7129
7103
  * @response `200` `User` OK
7130
7104
  * @response `201` `void` Created
7131
7105
  * @response `401` `void` Unauthorized
@@ -7140,6 +7114,7 @@ declare class Api {
7140
7114
  * @name PutById
7141
7115
  * @summary 修改警员用户信息
7142
7116
  * @request PUT:/auth/police-user/{id}
7117
+ * @deprecated
7143
7118
  * @response `200` `User` OK
7144
7119
  * @response `201` `void` Created
7145
7120
  * @response `401` `void` Unauthorized
@@ -7154,6 +7129,7 @@ declare class Api {
7154
7129
  * @name PutDeleteById
7155
7130
  * @summary 删除警员用户(软删除)
7156
7131
  * @request PUT:/auth/police-user/{id}/delete
7132
+ * @deprecated
7157
7133
  * @response `200` `void` OK
7158
7134
  * @response `201` `void` Created
7159
7135
  * @response `401` `void` Unauthorized
@@ -7168,6 +7144,7 @@ declare class Api {
7168
7144
  * @name PutRestoreById
7169
7145
  * @summary 恢复警员用户
7170
7146
  * @request PUT:/auth/police-user/{id}/restore
7147
+ * @deprecated
7171
7148
  * @response `200` `void` OK
7172
7149
  * @response `201` `void` Created
7173
7150
  * @response `401` `void` Unauthorized
@@ -8052,7 +8029,7 @@ declare class Api {
8052
8029
  * @response `403` `void` Forbidden
8053
8030
  * @response `404` `void` Not Found
8054
8031
  */
8055
- byId: ({ id, ...query }: ByIdParams3, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<Resource>;
8032
+ byId: ({ id, ...query }: ByIdParams6, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<Resource>;
8056
8033
  /**
8057
8034
  * No description
8058
8035
  *
@@ -8816,7 +8793,7 @@ declare class Api {
8816
8793
  * @response `403` `void` Forbidden
8817
8794
  * @response `404` `void` Not Found
8818
8795
  */
8819
- exist: (query: ExistParams10, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<boolean>;
8796
+ exist: (query: ExistParams8, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<boolean>;
8820
8797
  /**
8821
8798
  * @description 所需权限:user:admin
8822
8799
  *
@@ -8884,6 +8861,20 @@ declare class Api {
8884
8861
  * @response `404` `void` Not Found
8885
8862
  */
8886
8863
  findByUsernameSimpleByUsername: ({ username, ...query }: FindByUsernameSimpleByUsernameParams, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<UserSimpleEx>;
8864
+ /**
8865
+ * @description 所需权限:user:admin
8866
+ *
8867
+ * @tags user
8868
+ * @name Import
8869
+ * @summary 导入用户[excel]
8870
+ * @request POST:/auth/user/import
8871
+ * @response `200` `UserImportResult` OK
8872
+ * @response `201` `void` Created
8873
+ * @response `401` `void` Unauthorized
8874
+ * @response `403` `void` Forbidden
8875
+ * @response `404` `void` Not Found
8876
+ */
8877
+ import: (query: ImportParams, data: ImportPayload, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<UserImportResult>;
8887
8878
  /**
8888
8879
  * @description 所需权限:user:list
8889
8880
  *
@@ -9032,13 +9023,13 @@ declare class Api {
9032
9023
  * @name ProfileImport
9033
9024
  * @summary 导入用户信息[excel]
9034
9025
  * @request POST:/auth/user/profile-import
9035
- * @response `200` `ImportUserResult` OK
9026
+ * @response `200` `ImportUserProfileResult` OK
9036
9027
  * @response `201` `void` Created
9037
9028
  * @response `401` `void` Unauthorized
9038
9029
  * @response `403` `void` Forbidden
9039
9030
  * @response `404` `void` Not Found
9040
9031
  */
9041
- profileImport: (file: any, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<ImportUserResult>;
9032
+ profileImport: (data: ProfileImportPayload, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<ImportUserProfileResult>;
9042
9033
  /**
9043
9034
  * @description 所需权限:user:profile-warning:find
9044
9035
  *