szpt-driver-api 1.0.74 → 1.0.76

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
@@ -1001,6 +1001,8 @@ export declare class Permission {
1001
1001
  code: string;
1002
1002
  /** 说明 */
1003
1003
  description: string;
1004
+ /** 数据完整性摘要 */
1005
+ digest: EntityDigest;
1004
1006
  /**
1005
1007
  * ID
1006
1008
  * @format int64
@@ -1440,6 +1442,8 @@ export declare class Resource {
1440
1442
  url: string;
1441
1443
  }
1442
1444
  export declare class Role {
1445
+ /** 所属部门 */
1446
+ department: string;
1443
1447
  /** 说明 */
1444
1448
  description: string;
1445
1449
  digest: EntityDigest;
@@ -1454,6 +1458,8 @@ export declare class Role {
1454
1458
  name: string;
1455
1459
  /** 父角色 */
1456
1460
  parentRoles: Role[];
1461
+ /** 权限是否被篡改 */
1462
+ permissionValid: boolean;
1457
1463
  /** 拥有权限 */
1458
1464
  permissions: Permission[];
1459
1465
  /**
@@ -1473,6 +1479,7 @@ export declare class Role {
1473
1479
  sortIndex: number;
1474
1480
  }
1475
1481
  export declare class RoleCreateBean {
1482
+ department?: string;
1476
1483
  description?: string;
1477
1484
  displayName?: string;
1478
1485
  name?: string;
@@ -1547,6 +1554,7 @@ export declare class RoleTransDTO {
1547
1554
  sortIndex?: number;
1548
1555
  }
1549
1556
  export declare class RoleUpdateBean {
1557
+ department?: string;
1550
1558
  description?: string;
1551
1559
  displayName?: string;
1552
1560
  /** @format int64 */
@@ -1820,8 +1828,14 @@ export declare class UserCreateBean {
1820
1828
  * @format int64
1821
1829
  */
1822
1830
  roleId?: number;
1831
+ /** 用户的证书信息 */
1832
+ userCertificate?: UserProfileCertificate[];
1823
1833
  /** 用户额外信息 */
1824
1834
  userProfileAdditional?: UserProfileAdditional;
1835
+ /** 用户合同信息 */
1836
+ userProfileContracts?: UserProfileContracts[];
1837
+ /** 技能和工作经历 */
1838
+ userProfileExperienceAndSkills?: UserProfileExperienceAndSkills;
1825
1839
  }
1826
1840
  export declare class UserLocation {
1827
1841
  /** @format double */
@@ -2021,17 +2035,93 @@ export declare class UserProfileAdditional {
2021
2035
  /** 身份证正面照片 */
2022
2036
  idCardFrontPicture: string;
2023
2037
  }
2038
+ export declare class UserProfileCertificate {
2039
+ /** 证书电子件 */
2040
+ certFileUrl: string;
2041
+ /** 证书名称 */
2042
+ certName: string;
2043
+ /**
2044
+ * 证书获得时间
2045
+ * @format int64
2046
+ */
2047
+ obtainDate: number;
2048
+ }
2049
+ export declare class UserProfileComputerSkill {
2050
+ /** 电脑技能描述 */
2051
+ computerSkill: string;
2052
+ }
2053
+ export declare class UserProfileContracts {
2054
+ /** 电子合同 */
2055
+ contractFileUrl: string;
2056
+ /** 合同类型 */
2057
+ contractType: string;
2058
+ /**
2059
+ * 合同结束时间
2060
+ * @format int64
2061
+ */
2062
+ endDate: number;
2063
+ /**
2064
+ * 合同开始时间
2065
+ * @format int64
2066
+ */
2067
+ startDate: number;
2068
+ }
2069
+ export declare class UserProfileExperienceAndSkills {
2070
+ /** 电脑技能 */
2071
+ userProfileComputerSkillsList: UserProfileComputerSkill[];
2072
+ /** 语言技能 */
2073
+ userProfileLanguageAbilityList: UserProfileLanguageAbility[];
2074
+ /** 培训经历 */
2075
+ userProfileTrainingExperienceList: UserProfileTrainingExperience[];
2076
+ /** 工作经历 */
2077
+ userProfileWorkExperienceList: UserProfileWorkExperience[];
2078
+ }
2079
+ /**
2080
+ * 用户合同、证书等信息
2081
+ */
2082
+ export declare class UserProfileExtraDetail {
2083
+ /** 证书信息 */
2084
+ certificates: UserProfileCertificate[];
2085
+ /** 合同信息 */
2086
+ contracts: UserProfileContracts[];
2087
+ /** 工作经历和技能 */
2088
+ userProfileExperienceAndSkills: UserProfileExperienceAndSkills;
2089
+ }
2090
+ export declare class UserProfileLanguageAbility {
2091
+ /** 语言能力描述 */
2092
+ languageAbility: string;
2093
+ }
2094
+ export declare class UserProfileTrainingExperience {
2095
+ /** 培训经历描述 */
2096
+ trainingExperienceDesc: string;
2097
+ }
2024
2098
  export declare class UserProfileUpdateBean {
2099
+ /** 头像 */
2025
2100
  avatar?: string;
2101
+ /** 用户证书信息 */
2102
+ certificates?: UserProfileCertificate[];
2103
+ /** 用户合同信息 */
2104
+ contracts?: UserProfileContracts[];
2105
+ /** Email */
2026
2106
  email?: string;
2107
+ /** 性别 */
2027
2108
  gender?: "Female" | "Male" | "Other" | "Unknown";
2028
2109
  /** @format int64 */
2029
2110
  id?: number;
2111
+ /** 身份证号 */
2030
2112
  idCardNumber?: string;
2113
+ /** 手机号 */
2031
2114
  phone?: string;
2115
+ /** 姓名 */
2032
2116
  realName?: string;
2033
2117
  /** 用户额外信息 */
2034
2118
  userProfileAdditional?: UserProfileAdditional;
2119
+ /** 用户工作经历以及技能 */
2120
+ userProfileExperienceAndSkills?: UserProfileExperienceAndSkills;
2121
+ }
2122
+ export declare class UserProfileWorkExperience {
2123
+ /** 工作经历描述 */
2124
+ workExperience: string;
2035
2125
  }
2036
2126
  export declare class UserPublicInfo {
2037
2127
  /** 部门代码 */
@@ -2386,27 +2476,39 @@ export declare class UserTrackQuery {
2386
2476
  username?: string;
2387
2477
  }
2388
2478
  export declare class UserUpdateBean {
2479
+ /** 头像 */
2389
2480
  avatar?: string;
2481
+ /** 用户证书信息 */
2482
+ certificates?: UserProfileCertificate[];
2483
+ /** 用户合同信息 */
2484
+ contracts?: UserProfileContracts[];
2390
2485
  /** @format int64 */
2391
2486
  departmentId?: number;
2487
+ /** Email */
2392
2488
  email?: string;
2393
2489
  /** @format int64 */
2394
2490
  expire?: number;
2491
+ /** 性别 */
2395
2492
  gender?: "Female" | "Male" | "Other" | "Unknown";
2396
2493
  /** @format int64 */
2397
2494
  id?: number;
2495
+ /** 身份证号 */
2398
2496
  idCardNumber?: string;
2399
2497
  loginName?: string;
2400
2498
  /** @format int64 */
2401
2499
  passwordExpire?: number;
2500
+ /** 手机号 */
2402
2501
  phone?: string;
2403
2502
  /** @format int64 */
2404
2503
  policeId?: number;
2504
+ /** 姓名 */
2405
2505
  realName?: string;
2406
2506
  /** @format int64 */
2407
2507
  roleId?: number;
2408
2508
  /** 用户额外信息 */
2409
2509
  userProfileAdditional?: UserProfileAdditional;
2510
+ /** 用户工作经历以及技能 */
2511
+ userProfileExperienceAndSkills?: UserProfileExperienceAndSkills;
2410
2512
  }
2411
2513
  export declare class UsernamePasswordLoginForm {
2412
2514
  /** 用户登录名 */
@@ -3282,8 +3384,11 @@ export declare class RequestShortAuthenticationParams {
3282
3384
  export declare class GetRoleParams {
3283
3385
  /** @format int64 */
3284
3386
  createUser?: number;
3387
+ department?: string;
3285
3388
  descriptionLike?: string;
3286
3389
  idIn?: number[];
3390
+ includeParentDepartment?: boolean;
3391
+ includeSubDepartment?: boolean;
3287
3392
  name?: string;
3288
3393
  nameLike?: string;
3289
3394
  orderBy?: string[];
@@ -3299,106 +3404,37 @@ export declare class GetRoleParams {
3299
3404
  scope?: string;
3300
3405
  type?: "Auditing" | "Common" | "Security" | "System" | "Work";
3301
3406
  }
3302
- export declare class ExistParams3 {
3303
- /** 根据可管理部门id查询。支持多选 */
3304
- adminDepartmentId?: number[];
3305
- /** 基于业务部门业务标识匹配 */
3306
- business?: string[];
3307
- /** 基于业务部门代码匹配 */
3308
- businessDepartment?: string[];
3309
- /** 根据部门代码查询。支持多选 */
3310
- department?: string[];
3311
- /** 根据部门id查询。支持多选 */
3312
- departmentId?: number[];
3313
- /** 根据Email查询 */
3314
- email?: string;
3315
- emailLike?: string;
3316
- /** 是否根据当前用户的管理部门进行过滤 */
3317
- filterByAdminDepartment?: boolean;
3318
- /** 根据id查询。支持多选 */
3319
- id?: number[];
3320
- /** 身份证号查询。支持多选 */
3321
- idCardNumber?: string[];
3322
- idCardNumberLike?: string;
3323
- /** 是否关联查询管理部门 */
3324
- includeAdminDepartment?: boolean;
3325
- /** 是否关联查询业务部门 */
3326
- includeBusinessDepartment?: boolean;
3327
- /** 是否关联查询权限 */
3328
- includePermissionDetail?: boolean;
3329
- /** 是否包含子部门(根据department参数,自动补充子部门) */
3407
+ export declare class ExistParams2 {
3408
+ /** @format int64 */
3409
+ createUser?: number;
3410
+ department?: string;
3411
+ descriptionLike?: string;
3412
+ idIn?: number[];
3413
+ includeParentDepartment?: boolean;
3330
3414
  includeSubDepartment?: boolean;
3331
- /** 是否为已删除用户 */
3332
- isDeleted?: boolean;
3333
- /** 是否被锁定 */
3334
- isLocked?: boolean;
3335
- /** 最近登录IP */
3336
- lastLoginIp?: string;
3337
- /**
3338
- * 最近登录时间大于
3339
- * @format int64
3340
- */
3341
- lastLoginTimeGte?: number;
3342
- /**
3343
- * 最近登录时间小于
3344
- * @format int64
3345
- */
3346
- lastLoginTimeLt?: number;
3347
- loginName?: string;
3415
+ name?: string;
3416
+ nameLike?: string;
3348
3417
  orderBy?: string[];
3349
3418
  /** @format int32 */
3350
3419
  pageIndex?: number;
3351
3420
  /** @format int32 */
3352
3421
  pageSize?: number;
3353
- /** 根据权限code查询 */
3354
- permissionCode?: string;
3355
- /**
3356
- * 根据权限id查询
3357
- * @format int64
3358
- */
3422
+ /** @format int64 */
3423
+ parentId?: number;
3424
+ parentIdIn?: number[];
3425
+ /** @format int64 */
3359
3426
  permissionId?: number;
3360
- /** 根据手机号查询 */
3361
- phone?: string;
3362
- phoneLike?: string;
3363
- /** 根据警号批量查询 */
3364
- policeCodeIn?: string[];
3365
- /** 根据警号模糊查询 */
3366
- policeCodeLike?: string;
3367
- /**
3368
- * 根据警员id查询
3369
- * @format int64
3370
- */
3371
- policeId?: number;
3372
- /** 根据警员类型查询 */
3373
- policeType?: string;
3374
- /** 根据警员类型查询(批量) */
3375
- policeTypeIn?: string[];
3376
- /** 根据姓名查询 */
3377
- realName?: string;
3378
- /** 根据姓名批量查询 */
3379
- realNameIn?: string[];
3380
- realNameLike?: string;
3381
- /**
3382
- * 根据角色id查询
3383
- * @format int64
3384
- */
3385
- roleId?: number;
3386
- /** 根据角色id查询 */
3387
- roleIdIn?: number[];
3388
- /** 根据角色名称查询 */
3389
- roleName?: string;
3390
- /** 根据角色名称批量查询 */
3391
- roleNameIn?: string[];
3392
- /** 根据用户名查询。支持多选 */
3393
- username?: string[];
3394
- /** 用户名模糊查询 */
3395
- usernameLike?: string;
3427
+ scope?: string;
3428
+ type?: "Auditing" | "Common" | "Security" | "System" | "Work";
3396
3429
  }
3397
3430
  export declare class ListParams {
3398
3431
  /** @format int64 */
3399
3432
  createUser?: number;
3433
+ department?: string;
3400
3434
  descriptionLike?: string;
3401
3435
  idIn?: number[];
3436
+ includeParentDepartment?: boolean;
3437
+ includeSubDepartment?: boolean;
3402
3438
  name?: string;
3403
3439
  nameLike?: string;
3404
3440
  orderBy?: string[];
@@ -3417,8 +3453,11 @@ export declare class ListParams {
3417
3453
  export declare class ListCreateByMeParams {
3418
3454
  /** @format int64 */
3419
3455
  createUser?: number;
3456
+ department?: string;
3420
3457
  descriptionLike?: string;
3421
3458
  idIn?: number[];
3459
+ includeParentDepartment?: boolean;
3460
+ includeSubDepartment?: boolean;
3422
3461
  name?: string;
3423
3462
  nameLike?: string;
3424
3463
  orderBy?: string[];
@@ -3437,8 +3476,11 @@ export declare class ListCreateByMeParams {
3437
3476
  export declare class ListSimpleParams {
3438
3477
  /** @format int64 */
3439
3478
  createUser?: number;
3479
+ department?: string;
3440
3480
  descriptionLike?: string;
3441
3481
  idIn?: number[];
3482
+ includeParentDepartment?: boolean;
3483
+ includeSubDepartment?: boolean;
3442
3484
  name?: string;
3443
3485
  nameLike?: string;
3444
3486
  orderBy?: string[];
@@ -3558,7 +3600,7 @@ export declare class ToOssParams {
3558
3600
  export declare class UploadPayload {
3559
3601
  file?: File;
3560
3602
  }
3561
- export declare class ByIdParams8 {
3603
+ export declare class ByIdParams9 {
3562
3604
  /** format */
3563
3605
  format?: string;
3564
3606
  /** id */
@@ -3866,6 +3908,101 @@ export declare class PutBusinessDepartmentUserDepartmentsByUsernameParams {
3866
3908
  /** user */
3867
3909
  user: string;
3868
3910
  }
3911
+ export declare class ExistParams3 {
3912
+ /** 根据可管理部门id查询。支持多选 */
3913
+ adminDepartmentId?: number[];
3914
+ /** 基于业务部门业务标识匹配 */
3915
+ business?: string[];
3916
+ /** 基于业务部门代码匹配 */
3917
+ businessDepartment?: string[];
3918
+ /** 根据部门代码查询。支持多选 */
3919
+ department?: string[];
3920
+ /** 根据部门id查询。支持多选 */
3921
+ departmentId?: number[];
3922
+ /** 根据Email查询 */
3923
+ email?: string;
3924
+ emailLike?: string;
3925
+ /** 是否根据当前用户的管理部门进行过滤 */
3926
+ filterByAdminDepartment?: boolean;
3927
+ /** 根据id查询。支持多选 */
3928
+ id?: number[];
3929
+ /** 身份证号查询。支持多选 */
3930
+ idCardNumber?: string[];
3931
+ idCardNumberLike?: string;
3932
+ /** 是否关联查询管理部门 */
3933
+ includeAdminDepartment?: boolean;
3934
+ /** 是否关联查询业务部门 */
3935
+ includeBusinessDepartment?: boolean;
3936
+ /** 是否关联查询权限 */
3937
+ includePermissionDetail?: boolean;
3938
+ /** 是否包含子部门(根据department参数,自动补充子部门) */
3939
+ includeSubDepartment?: boolean;
3940
+ /** 是否为已删除用户 */
3941
+ isDeleted?: boolean;
3942
+ /** 是否被锁定 */
3943
+ isLocked?: boolean;
3944
+ /** 最近登录IP */
3945
+ lastLoginIp?: string;
3946
+ /**
3947
+ * 最近登录时间大于
3948
+ * @format int64
3949
+ */
3950
+ lastLoginTimeGte?: number;
3951
+ /**
3952
+ * 最近登录时间小于
3953
+ * @format int64
3954
+ */
3955
+ lastLoginTimeLt?: number;
3956
+ loginName?: string;
3957
+ orderBy?: string[];
3958
+ /** @format int32 */
3959
+ pageIndex?: number;
3960
+ /** @format int32 */
3961
+ pageSize?: number;
3962
+ /** 根据权限code查询 */
3963
+ permissionCode?: string;
3964
+ /**
3965
+ * 根据权限id查询
3966
+ * @format int64
3967
+ */
3968
+ permissionId?: number;
3969
+ /** 根据手机号查询 */
3970
+ phone?: string;
3971
+ phoneLike?: string;
3972
+ /** 根据警号批量查询 */
3973
+ policeCodeIn?: string[];
3974
+ /** 根据警号模糊查询 */
3975
+ policeCodeLike?: string;
3976
+ /**
3977
+ * 根据警员id查询
3978
+ * @format int64
3979
+ */
3980
+ policeId?: number;
3981
+ /** 根据警员类型查询 */
3982
+ policeType?: string;
3983
+ /** 根据警员类型查询(批量) */
3984
+ policeTypeIn?: string[];
3985
+ /** 根据姓名查询 */
3986
+ realName?: string;
3987
+ /** 根据姓名批量查询 */
3988
+ realNameIn?: string[];
3989
+ realNameLike?: string;
3990
+ /**
3991
+ * 根据角色id查询
3992
+ * @format int64
3993
+ */
3994
+ roleId?: number;
3995
+ /** 根据角色id查询 */
3996
+ roleIdIn?: number[];
3997
+ /** 根据角色名称查询 */
3998
+ roleName?: string;
3999
+ /** 根据角色名称批量查询 */
4000
+ roleNameIn?: string[];
4001
+ /** 根据用户名查询。支持多选 */
4002
+ username?: string[];
4003
+ /** 用户名模糊查询 */
4004
+ usernameLike?: string;
4005
+ }
3869
4006
  export declare class GetListParams {
3870
4007
  /** 根据可管理部门id查询。支持多选 */
3871
4008
  adminDepartmentId?: number[];
@@ -4013,7 +4150,7 @@ interface HttpClient {
4013
4150
  }
4014
4151
  /**
4015
4152
  * @title 授权服务
4016
- * @version 1.2.41
4153
+ * @version 1.2.42
4017
4154
  * @baseUrl //192.168.200.12:5000
4018
4155
  *
4019
4156
  * 授权服务
@@ -6409,7 +6546,7 @@ declare class Api {
6409
6546
  * @response `403` `void` Forbidden
6410
6547
  * @response `404` `void` Not Found
6411
6548
  */
6412
- exist: (query: ExistParams3, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<boolean>;
6549
+ exist: (query: ExistParams2, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<boolean>;
6413
6550
  /**
6414
6551
  * @description 所需权限:role:list
6415
6552
  *
@@ -7022,7 +7159,7 @@ declare class Api {
7022
7159
  * @response `403` `void` Forbidden
7023
7160
  * @response `404` `void` Not Found
7024
7161
  */
7025
- byId: ({ id, ...query }: ByIdParams8, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<Resource>;
7162
+ byId: ({ id, ...query }: ByIdParams9, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<Resource>;
7026
7163
  /**
7027
7164
  * No description
7028
7165
  *
@@ -7774,6 +7911,19 @@ declare class Api {
7774
7911
  * @response `404` `void` Not Found
7775
7912
  */
7776
7913
  findByUsernameByUsername: (username: string, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<User>;
7914
+ /**
7915
+ * @description 所需权限:user:find
7916
+ *
7917
+ * @tags user
7918
+ * @name FindByUsernameProfileExtraByUsername
7919
+ * @summary 根据用户名获取用户的合同等详细信息
7920
+ * @request GET:/auth/user/find-by-username/{username}/profile/extra
7921
+ * @response `200` `UserProfileExtraDetail` OK
7922
+ * @response `401` `void` Unauthorized
7923
+ * @response `403` `void` Forbidden
7924
+ * @response `404` `void` Not Found
7925
+ */
7926
+ findByUsernameProfileExtraByUsername: (username: string, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<UserProfileExtraDetail>;
7777
7927
  /**
7778
7928
  * @description 所需权限:user:find
7779
7929
  *
@@ -8065,6 +8215,33 @@ declare class Api {
8065
8215
  * @response `404` `void` Not Found
8066
8216
  */
8067
8217
  putPermissionsById: (id: number, permissions: PutPermissionsByIdPayload, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<void>;
8218
+ /**
8219
+ * @description 所需权限:user:update
8220
+ *
8221
+ * @tags user
8222
+ * @name PutProfileById
8223
+ * @summary 修改用户额外信息
8224
+ * @request PUT:/auth/user/{id}/profile
8225
+ * @response `200` `User` OK
8226
+ * @response `201` `void` Created
8227
+ * @response `401` `void` Unauthorized
8228
+ * @response `403` `void` Forbidden
8229
+ * @response `404` `void` Not Found
8230
+ */
8231
+ putProfileById: (id: number, body: UserProfileUpdateBean, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<User>;
8232
+ /**
8233
+ * @description 所需权限:user:list
8234
+ *
8235
+ * @tags user
8236
+ * @name ProfileExtraById
8237
+ * @summary 根据id获取用户的合同等详细信息
8238
+ * @request GET:/auth/user/{id}/profile/extra
8239
+ * @response `200` `UserProfileExtraDetail` OK
8240
+ * @response `401` `void` Unauthorized
8241
+ * @response `403` `void` Forbidden
8242
+ * @response `404` `void` Not Found
8243
+ */
8244
+ profileExtraById: (id: number, axiosConfig?: AxiosRequestConfig & Record<string, any>) => Promise<UserProfileExtraDetail>;
8068
8245
  /**
8069
8246
  * @description 所需权限:user:password:reset
8070
8247
  *