szpt-driver-api 1.0.21 → 1.0.23
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/accident.d.ts +59 -4
- package/accident.js +1 -1
- package/accident.js.map +1 -1
- package/auth.d.ts +476 -214
- package/auth.js +1 -1
- package/auth.js.map +1 -1
- package/authBpmn.d.ts +56 -2
- package/authBpmn.js +1 -1
- package/authBpmn.js.map +1 -1
- package/authBpmnQuery.d.ts +12 -4
- package/authBpmnQuery.js +1 -1
- package/authBpmnQuery.js.map +1 -1
- package/authDuty.d.ts +525 -66
- package/authDuty.js +1 -1
- package/authDuty.js.map +1 -1
- package/authV2.d.ts +14 -0
- package/authV2.js.map +1 -1
- package/common.d.ts +60 -10
- package/common.js +1 -1
- package/common.js.map +1 -1
- package/external.d.ts +125 -4
- package/external.js +1 -1
- package/external.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/oss.d.ts +208 -22
- package/oss.js +1 -1
- package/oss.js.map +1 -1
- package/package.json +1 -1
- package/query.d.ts +371 -129
- package/query.js +1 -1
- package/query.js.map +1 -1
- package/szAccident.d.ts +1029 -132
- package/szAccident.js +1 -1
- package/szAccident.js.map +1 -1
- package/szAccidentPublic.d.ts +1059 -0
- package/szAccidentPublic.js +2 -0
- package/szAccidentPublic.js.map +1 -0
- package/szStatistic.d.ts +9 -7
- package/szStatistic.js.map +1 -1
- package/szTraffic.d.ts +2155 -146
- package/szTraffic.js +1 -1
- package/szTraffic.js.map +1 -1
- package/violation.d.ts +522 -20
- package/violation.js +1 -1
- package/violation.js.map +1 -1
package/authV2.d.ts
CHANGED
|
@@ -59,6 +59,8 @@ export declare class MenuItem {
|
|
|
59
59
|
label: string;
|
|
60
60
|
/** 所需权限 */
|
|
61
61
|
needPermissions: string[];
|
|
62
|
+
/** query参数 */
|
|
63
|
+
queryParams: string;
|
|
62
64
|
/** 菜单目标内容。根据菜单类型,可以是组件名/外部链接/iframe链接 */
|
|
63
65
|
target: string;
|
|
64
66
|
/** 菜单类型 */
|
|
@@ -233,6 +235,8 @@ export declare class UserSimpleEx {
|
|
|
233
235
|
departmentLevel: "DaDui" | "ZhiDui" | "ZhongDui" | "ZongDui";
|
|
234
236
|
/** 部门名称 */
|
|
235
237
|
departmentName: string;
|
|
238
|
+
/** 部门行政区划 */
|
|
239
|
+
departmentXzqh: string;
|
|
236
240
|
/**
|
|
237
241
|
* 用户ID
|
|
238
242
|
* @format int64
|
|
@@ -246,10 +250,14 @@ export declare class UserSimpleEx {
|
|
|
246
250
|
policeBzlx: string;
|
|
247
251
|
/** 警员编号 */
|
|
248
252
|
policeCode: string;
|
|
253
|
+
/** 警员职位 */
|
|
254
|
+
policePosition: string;
|
|
249
255
|
/** 警员类型 */
|
|
250
256
|
policeType: string;
|
|
251
257
|
/** 姓名 */
|
|
252
258
|
realName: string;
|
|
259
|
+
/** 角色显示名称 */
|
|
260
|
+
roleDisplayName: string;
|
|
253
261
|
/**
|
|
254
262
|
* 角色ID
|
|
255
263
|
* @format int64
|
|
@@ -269,6 +277,8 @@ export declare class UserSimpleWithAuth {
|
|
|
269
277
|
departmentLevel: "DaDui" | "ZhiDui" | "ZhongDui" | "ZongDui";
|
|
270
278
|
/** 部门名称 */
|
|
271
279
|
departmentName: string;
|
|
280
|
+
/** 部门行政区划 */
|
|
281
|
+
departmentXzqh: string;
|
|
272
282
|
/**
|
|
273
283
|
* 过期时间
|
|
274
284
|
* @format int64
|
|
@@ -296,10 +306,14 @@ export declare class UserSimpleWithAuth {
|
|
|
296
306
|
policeBzlx: string;
|
|
297
307
|
/** 警员编号 */
|
|
298
308
|
policeCode: string;
|
|
309
|
+
/** 警员职位 */
|
|
310
|
+
policePosition: string;
|
|
299
311
|
/** 警员类型 */
|
|
300
312
|
policeType: string;
|
|
301
313
|
/** 姓名 */
|
|
302
314
|
realName: string;
|
|
315
|
+
/** 角色显示名称 */
|
|
316
|
+
roleDisplayName: string;
|
|
303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IAAK,+BACLC,OAAQ,OACRC,KAAMyB,GACH7B,IAgBP8B,uBAAwB,CAACC,EAAyC/B,EAAkC,CAAC,IACnGC,KAAKH,KAAK3D,QAAO,eACf+D,IAAK,qCACLC,OAAQ,OACRC,KAAM2B,GACH/B,KAlZPC,KAAKH,KAAOA,CACd,GAwZ+B,I","sources":["webpack://nestjs-vue3-ssr/./dist/modules/api/_request.ts","webpack://nestjs-vue3-ssr/webpack/bootstrap","webpack://nestjs-vue3-ssr/webpack/runtime/define property getters","webpack://nestjs-vue3-ssr/webpack/runtime/hasOwnProperty shorthand","webpack://nestjs-vue3-ssr/webpack/runtime/make namespace object","webpack://nestjs-vue3-ssr/./dist/modules/api/authV2.ts"],"sourcesContent":["\nimport { AxiosRequestConfig, AxiosResponse } from 'axios'\n\nlet isSetup = false\n\ninterface HttpClient {\n\trequest: <T = any, _E = any>(config: AxiosRequestConfig) => Promise<T>\n}\n\n//@ts-ignore\nexport const httpClient: HttpClient = {\n\trequest(config: AxiosRequestConfig):any {\n\t\tif (!isSetup) {\n\t\t\tthrow new Error('please setup http client first')\n\t\t}\n\t},\n}\n\nexport const setupApi = (request: HttpClient['request']) => {\n\thttpClient.request = request\n\tisSetup = true\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export class BindUserRequest {\n department?: string;\n idCardNumber?: string;\n phone?: string;\n verifyCode?: string;\n verifyRequestId?: string;\n}\n\nexport class DeleteMenuTreeRequest {\n /** 部门代码 */\n department?: string;\n\n /** 菜单树 */\n name?: string;\n}\n\nexport class DepartmentMenuTree {\n /** 部门代码 */\n department: string;\n\n /** 是否启用 */\n enable: boolean;\n\n /** 是否继承自上级部门 */\n inherit: boolean;\n\n /** 菜单项目 */\n menuItems: MenuItem[];\n\n /** 菜单组名称 */\n name: string;\n}\n\nexport class ForgotPasswordRequest {\n password?: string;\n phone?: string;\n username?: string;\n verifyCode?: string;\n verifyRequestId?: string;\n}\n\nexport class IdCardLoginForm {\n /** 部门代码 */\n department?: string;\n\n /** 身份证明号码 */\n idCardNumber?: string;\n\n /** 短信验证码 */\n messageCode?: string;\n\n /** 短信验证码请求ID */\n messageRequestId?: string;\n\n /** 手机号码 */\n phone?: string;\n}\n\nexport class LoginResponse {\n token: Token;\n user: UserSimpleWithAuth;\n}\n\nexport class MenuItem {\n /** 下级菜单 */\n children: MenuItem[];\n\n /** 是否启用 */\n enable: boolean;\n\n /** 图标 */\n icon: string;\n\n /** 标识 */\n key: string;\n\n /** 菜单名称 */\n label: string;\n\n /** 所需权限 */\n needPermissions: string[];\n\n /** 菜单目标内容。根据菜单类型,可以是组件名/外部链接/iframe链接 */\n target: string;\n\n /** 菜单类型 */\n type: \"Component\" | \"Iframe\" | \"TargetBlank\";\n\n /** 是否可见 */\n visible: boolean;\n}\n\nexport class MenuTree {\n /** 是否启用 */\n enable?: boolean;\n\n /** 菜单项目 */\n menuItems?: MenuItem[];\n\n /** 菜单组名称 */\n name?: string;\n}\n\nexport class PhoneLoginForm {\n /** 短信验证码 */\n messageCode?: string;\n\n /** 短信验证码请求ID */\n messageRequestId?: string;\n\n /** 手机号码 */\n phone?: string;\n}\n\nexport class PhoneLoginResponse {\n /** 所有绑定该手机号的用户 */\n bindUsers: UserSimpleWithAuth[];\n token: Token;\n user: UserSimpleWithAuth;\n}\n\nexport class Point {\n /** @format double */\n accuracy: number;\n\n /** @format double */\n direction: number;\n\n /** @format double */\n height: number;\n\n /** @format double */\n latitude: number;\n\n /** @format double */\n longitude: number;\n\n /** @format double */\n speed: number;\n\n /** @format int64 */\n time: number;\n}\n\nexport class SaveMenuTreeRequest {\n /** 部门代码 */\n department?: string;\n\n /** 菜单树 */\n menuTree?: MenuTree;\n}\n\nexport class SetInheritMenuTreeRequest {\n /** 部门代码 */\n department?: string;\n\n /** 是否继承 */\n inherit?: boolean;\n}\n\nexport class SwitchUserRequest {\n /** 目标用户名 */\n username?: string;\n}\n\nexport class ThirdPlatformLoginRequest {\n /** 应用ID */\n appId: string;\n\n /** 票据(Ticket/Code) */\n code: string;\n\n /** 是否为外部用户 */\n external?: boolean;\n}\n\nexport class ThirdPlatformLoginResponse {\n /** 外部平台openId */\n openId: string;\n token: Token;\n user: UserSimpleWithAuth;\n}\n\nexport class Token {\n appId: string;\n external: boolean;\n refreshToken: string;\n\n /** @format int64 */\n refreshTokenExpire: number;\n token: string;\n\n /** @format int64 */\n tokenExpire: number;\n}\n\nexport class UserCurrent {\n online: boolean;\n working: Working[];\n}\n\nexport class UserInfo {\n /** 实时状态 */\n current: UserCurrent;\n\n /** 基本信息 */\n info: UserSimpleEx;\n\n /** 定位信息 */\n location: Point;\n\n /** 用户名 */\n username: string;\n}\n\nexport class UserQueryBeanV2 {\n /** 根据可管理部门id查询。支持多选 */\n adminDepartmentId?: number[];\n\n /** 根据部门代码查询。支持多选 */\n department?: string[];\n\n /** 根据部门id查询。支持多选 */\n departmentId?: number[];\n\n /** 根据Email查询 */\n email?: string;\n emailLike?: string;\n\n /** 是否根据当前用户的管理部门进行过滤 */\n filterByAdminDepartment?: boolean;\n\n /** 根据id查询。支持多选 */\n id?: number[];\n\n /** 身份证号查询。支持多选 */\n idCardNumber?: string[];\n idCardNumberLike?: string;\n\n /** 是否包含子部门(根据department参数,自动补充子部门) */\n includeSubDepartment?: boolean;\n\n /** 是否为已删除用户 */\n isDeleted?: boolean;\n orderBy?: string[];\n\n /** @format int32 */\n pageIndex?: number;\n\n /** @format int32 */\n pageSize?: number;\n\n /** 根据权限code查询 */\n permissionCode?: string;\n\n /**\n * 根据权限id查询\n * @format int64\n */\n permissionId?: number;\n\n /** 根据手机号查询 */\n phone?: string;\n phoneLike?: string;\n\n /** 根据警号模糊查询 */\n policeCodeLike?: string;\n\n /**\n * 根据警员id查询\n * @format int64\n */\n policeId?: number;\n\n /** 根据警员类型查询 */\n policeType?: string;\n\n /** 根据姓名查询 */\n realName?: string;\n realNameLike?: string;\n\n /**\n * 根据角色id查询\n * @format int64\n */\n roleId?: number;\n\n /** 根据角色id查询 */\n roleIdIn?: number[];\n\n /** 根据角色名称查询 */\n roleName?: string;\n\n /** 根据角色名称批量查询 */\n roleNameIn?: string[];\n\n /** 根据用户名查询。支持多选 */\n username?: string[];\n\n /** 用户名模糊查询 */\n usernameLike?: string;\n\n /** 是否包含基本信息 */\n withInfo?: boolean;\n\n /** 是否包含定位信息 */\n withLocation?: boolean;\n}\n\nexport class UserSimpleEx {\n /** 部门代码 */\n departmentCode: string;\n\n /** 部门级别 */\n departmentLevel: \"DaDui\" | \"ZhiDui\" | \"ZhongDui\" | \"ZongDui\";\n\n /** 部门名称 */\n departmentName: string;\n\n /**\n * 用户ID\n * @format int64\n */\n id: number;\n\n /** 身份证号 */\n idCardNumber: string;\n\n /** 手机号 */\n phone: string;\n\n /** 警员编制 */\n policeBzlx: string;\n\n /** 警员编号 */\n policeCode: string;\n\n /** 警员类型 */\n policeType: string;\n\n /** 姓名 */\n realName: string;\n\n /**\n * 角色ID\n * @format int64\n */\n roleId: number;\n\n /** 角色名称 */\n roleName: string;\n\n /** 用户名 */\n username: string;\n}\n\nexport class UserSimpleWithAuth {\n /** 管理部门列表 */\n adminDepartments: string[];\n\n /** 部门代码 */\n departmentCode: string;\n\n /** 部门级别 */\n departmentLevel: \"DaDui\" | \"ZhiDui\" | \"ZhongDui\" | \"ZongDui\";\n\n /** 部门名称 */\n departmentName: string;\n\n /**\n * 过期时间\n * @format int64\n */\n expire: number;\n\n /**\n * 用户ID\n * @format int64\n */\n id: number;\n\n /** 身份证号 */\n idCardNumber: string;\n\n /** 是否被锁定 */\n isLocked: boolean;\n\n /**\n * 密码过期时间\n * @format int64\n */\n passwordExpire: number;\n\n /** 权限列表 */\n permissions: string[];\n\n /** 手机号 */\n phone: string;\n\n /** 警员编制 */\n policeBzlx: string;\n\n /** 警员编号 */\n policeCode: string;\n\n /** 警员类型 */\n policeType: string;\n\n /** 姓名 */\n realName: string;\n\n /**\n * 角色ID\n * @format int64\n */\n roleId: number;\n\n /** 角色名称 */\n roleName: string;\n\n /** 用户名 */\n username: string;\n}\n\nexport class UserWorking {\n name?: string;\n}\n\nexport class UsernamePasswordLoginForm {\n password?: string;\n username?: string;\n}\n\nexport class Working {\n /** 是否有效 */\n active: boolean;\n\n /** 名称 */\n name: string;\n\n /**\n * 更新时间\n * @format int64\n */\n time: number;\n}\n\nexport class DesensitizePageResultUserInfo {\n list: UserInfo[];\n\n /** @format int64 */\n total: number;\n}\n\nexport class JwtInfoParams {\n /** jwt */\n jwt: string;\n}\n\nexport class GetMenuParams {\n /** 部门代码 */\n department: string;\n}\n\nexport type UserSetCurrentWorkingsPayload = UserWorking[];\n\nimport { AxiosRequestConfig, ResponseType } from \"axios\";\n\nexport type QueryParamsType = Record<string | number, any>;\n\nexport interface FullRequestParams extends Omit<AxiosRequestConfig, \"data\" | \"params\" | \"url\" | \"responseType\"> {\n /** set parameter to `true` for call `securityWorker` for this request */\n secure?: boolean;\n /** request path */\n url: string;\n /** content type of request body */\n type?: ContentType;\n /** query params */\n params?: QueryParamsType;\n /** format of response (i.e. response.json() -> format: \"json\") */\n ResponseType?: ResponseType;\n /** request body */\n body?: unknown;\n}\n\nexport type RequestParams = Omit<FullRequestParams, \"body\" | \"method\" | \"query\" | \"path\">;\n\nexport interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, \"data\" | \"cancelToken\"> {\n securityWorker?: (\n securityData: SecurityDataType | null,\n ) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;\n secure?: boolean;\n ResponseType?: ResponseType;\n}\n\nexport enum ContentType {\n Json = \"application/json\",\n FormData = \"multipart/form-data\",\n UrlEncoded = \"application/x-www-form-urlencoded\",\n}\n\ninterface HttpClient {\n request: <T = any, _E = any>(config: AxiosRequestConfig) => Promise<T>;\n}\n\n/**\n * @title 授权服务\n * @version 1.0\n * @baseUrl //192.168.200.12:5000\n *\n * 授权服务\n */\nclass Api {\n private http: HttpClient;\n\n constructor(http: HttpClient) {\n this.http = http;\n }\n\n bindUser = {\n /**\n * No description\n *\n * @tags bindUser\n * @name BindUser\n * @summary 绑定用户\n * @request POST:/auth/v2/bind-user\n * @response `200` `LoginResponse` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n bindUser: (request: BindUserRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<LoginResponse, void>({\n url: `/auth/v2/bind-user`,\n method: \"POST\",\n data: request,\n ...axiosConfig,\n }),\n };\n forgotPassword = {\n /**\n * No description\n *\n * @tags forgotPassword\n * @name ForgotPassword\n * @summary 忘记密码找回\n * @request POST:/auth/v2/forgot-password\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n forgotPassword: (form: ForgotPasswordRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/auth/v2/forgot-password`,\n method: \"POST\",\n data: form,\n ...axiosConfig,\n }),\n };\n jwt = {\n /**\n * No description\n *\n * @tags jwt\n * @name Jwt\n * @summary 获取包含个人信息的JWT\n * @request GET:/auth/v2/jwt\n * @response `200` `string` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n jwt: (axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<string, void>({\n url: `/auth/v2/jwt`,\n method: \"GET\",\n ...axiosConfig,\n }),\n };\n jwtInfo = {\n /**\n * No description\n *\n * @tags jwtInfo\n * @name JwtInfo\n * @summary 根据JWT获取个人信息\n * @request GET:/auth/v2/jwt-info\n * @response `200` `UserSimpleWithAuth` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n jwtInfo: (query: JwtInfoParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<UserSimpleWithAuth, void>({\n url: `/auth/v2/jwt-info`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n };\n login = {\n /**\n * No description\n *\n * @tags login\n * @name Login\n * @summary 用户登录\n * @request POST:/auth/v2/login\n * @response `200` `LoginResponse` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n login: (form: UsernamePasswordLoginForm, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<LoginResponse, void>({\n url: `/auth/v2/login`,\n method: \"POST\",\n data: form,\n ...axiosConfig,\n }),\n };\n loginByPhone = {\n /**\n * No description\n *\n * @tags loginByPhone\n * @name LoginByPhone\n * @summary 手机号登录\n * @request POST:/auth/v2/login-by-phone\n * @response `200` `PhoneLoginResponse` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n loginByPhone: (form: PhoneLoginForm, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<PhoneLoginResponse, void>({\n url: `/auth/v2/login-by-phone`,\n method: \"POST\",\n data: form,\n ...axiosConfig,\n }),\n };\n loginByThirdPlatformCode = {\n /**\n * No description\n *\n * @tags loginByThirdPlatformCode\n * @name LoginByThirdPlatformCode\n * @summary 第三方平台票据登陆\n * @request POST:/auth/v2/login-by-third-platform-code\n * @response `200` `ThirdPlatformLoginResponse` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n loginByThirdPlatformCode: (form: ThirdPlatformLoginRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<ThirdPlatformLoginResponse, void>({\n url: `/auth/v2/login-by-third-platform-code`,\n method: \"POST\",\n data: form,\n ...axiosConfig,\n }),\n };\n logout = {\n /**\n * No description\n *\n * @tags logout\n * @name Logout\n * @summary 用户注销\n * @request POST:/auth/v2/logout\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n logout: (axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/auth/v2/logout`,\n method: \"POST\",\n ...axiosConfig,\n }),\n };\n me = {\n /**\n * No description\n *\n * @tags me\n * @name Me\n * @summary 获取个人信息\n * @request GET:/auth/v2/me\n * @response `200` `UserSimpleWithAuth` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n me: (axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<UserSimpleWithAuth, void>({\n url: `/auth/v2/me`,\n method: \"GET\",\n ...axiosConfig,\n }),\n };\n menu = {\n /**\n * @description 所需权限:department:config:read\n *\n * @tags menu\n * @name GetMenu\n * @summary 获取菜单树列表\n * @request GET:/auth/v2/menu\n * @response `200` `(DepartmentMenuTree)[]` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n getMenu: (query: GetMenuParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<DepartmentMenuTree[], void>({\n url: `/auth/v2/menu`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * @description 所需权限:department:config:write\n *\n * @tags menu\n * @name PostMenu\n * @summary 保存菜单树\n * @request POST:/auth/v2/menu\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n postMenu: (request: SaveMenuTreeRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/auth/v2/menu`,\n method: \"POST\",\n data: request,\n ...axiosConfig,\n }),\n\n /**\n * @description 所需权限:department:config:write\n *\n * @tags menu\n * @name DeleteMenu\n * @summary 删除菜单树\n * @request DELETE:/auth/v2/menu\n * @response `200` `void` OK\n * @response `204` `void` No Content\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n */\n deleteMenu: (request: DeleteMenuTreeRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/auth/v2/menu`,\n method: \"DELETE\",\n data: request,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags menu\n * @name MenuCurrentUser\n * @summary 获取当前用户的菜单树列表\n * @request GET:/auth/v2/menu/current-user\n * @response `200` `(DepartmentMenuTree)[]` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n menuCurrentUser: (axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<DepartmentMenuTree[], void>({\n url: `/auth/v2/menu/current-user`,\n method: \"GET\",\n ...axiosConfig,\n }),\n\n /**\n * @description 所需权限:department:config:write\n *\n * @tags menu\n * @name MenuSetInherit\n * @summary 设置部门菜单树是否继承自上级部门\n * @request POST:/auth/v2/menu/set-inherit\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n menuSetInherit: (request: SetInheritMenuTreeRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/auth/v2/menu/set-inherit`,\n method: \"POST\",\n data: request,\n ...axiosConfig,\n }),\n };\n policeLogin = {\n /**\n * No description\n *\n * @tags policeLogin\n * @name PoliceLogin\n * @summary 身份证登录\n * @request POST:/auth/v2/police-login\n * @response `200` `LoginResponse` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n policeLogin: (form: IdCardLoginForm, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<LoginResponse, void>({\n url: `/auth/v2/police-login`,\n method: \"POST\",\n data: form,\n ...axiosConfig,\n }),\n };\n switchUser = {\n /**\n * @description 绑定了相同手机号、或相同身份证号的用户可以直接切换\n *\n * @tags switchUser\n * @name SwitchUser\n * @summary 切换用户\n * @request POST:/auth/v2/switch-user\n * @response `200` `LoginResponse` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n switchUser: (request: SwitchUserRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<LoginResponse, void>({\n url: `/auth/v2/switch-user`,\n method: \"POST\",\n data: request,\n ...axiosConfig,\n }),\n };\n thirdPlatform = {\n /**\n * No description\n *\n * @tags thirdPlatform\n * @name ThirdPlatformUnbindByAppId\n * @summary 与指定外部平台解绑\n * @request POST:/auth/v2/third-platform/{appId}/unbind\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n thirdPlatformUnbindByAppId: (appId: string, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/auth/v2/third-platform/${appId}/unbind`,\n method: \"POST\",\n ...axiosConfig,\n }),\n };\n user = {\n /**\n * No description\n *\n * @tags user\n * @name UserListBaseInfo\n * @summary 列出用户基本信息\n * @request POST:/auth/v2/user/list-base-info\n * @response `200` `DesensitizePageResultUserInfo` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n userListBaseInfo: (queryBean: UserQueryBeanV2, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<DesensitizePageResultUserInfo, void>({\n url: `/auth/v2/user/list-base-info`,\n method: \"POST\",\n data: queryBean,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags user\n * @name UserSetCurrentWorkings\n * @summary 设置当前正在进行的工作\n * @request POST:/auth/v2/user/set-current-workings\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n userSetCurrentWorkings: (workings: UserSetCurrentWorkingsPayload, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/auth/v2/user/set-current-workings`,\n method: \"POST\",\n data: workings,\n ...axiosConfig,\n }),\n };\n}\n\nimport { httpClient } from \"./_request\";\n\nexport const authV2Api = new Api(httpClient);\n"],"names":["httpClient","request","config","Error","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","ContentType","BindUserRequest","DeleteMenuTreeRequest","DepartmentMenuTree","ForgotPasswordRequest","IdCardLoginForm","LoginResponse","MenuItem","MenuTree","PhoneLoginForm","PhoneLoginResponse","Point","SaveMenuTreeRequest","SetInheritMenuTreeRequest","SwitchUserRequest","ThirdPlatformLoginRequest","ThirdPlatformLoginResponse","Token","UserCurrent","UserInfo","UserQueryBeanV2","UserSimpleEx","UserSimpleWithAuth","UserWorking","UsernamePasswordLoginForm","Working","DesensitizePageResultUserInfo","JwtInfoParams","GetMenuParams","authV2Api","constructor","http","bindUser","axiosConfig","this","url","method","data","forgotPassword","form","jwt","jwtInfo","query","params","login","loginByPhone","loginByThirdPlatformCode","logout","me","menu","getMenu","postMenu","deleteMenu","menuCurrentUser","menuSetInherit","policeLogin","switchUser","thirdPlatform","thirdPlatformUnbindByAppId","appId","user","userListBaseInfo","queryBean","userSetCurrentWorkings","workings"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"authV2.js","mappings":"yDAUO,MAAMA,EAAyB,CACrCC,QAAQC,GAEN,MAAM,IAAIC,MAAM,iCAElB,E,GCdGC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaE,QAGrB,IAAIC,EAASN,EAAyBE,GAAY,CAGjDG,QAAS,CAAC,GAOX,OAHAE,EAAoBL,GAAUI,EAAQA,EAAOD,QAASJ,GAG/CK,EAAOD,OACf,CCrBAJ,EAAoBO,EAAI,CAACH,EAASI,KACjC,IAAI,IAAIC,KAAOD,EACXR,EAAoBU,EAAEF,EAAYC,KAAST,EAAoBU,EAAEN,EAASK,IAC5EE,OAAOC,eAAeR,EAASK,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDT,EAAoBU,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,GCClFhB,EAAoBoB,EAAKhB,IACH,oBAAXiB,QAA0BA,OAAOC,aAC1CX,OAAOC,eAAeR,EAASiB,OAAOC,YAAa,CAAEC,MAAO,WAE7DZ,OAAOC,eAAeR,EAAS,aAAc,CAAEmB,OAAO,GAAO,E,4rBC+flDC,E,SApgBL,MAAMC,GAQN,MAAMC,GAQN,MAAMC,GAiBN,MAAMC,GAQN,MAAMC,GAiBN,MAAMC,GAKN,MAAMC,GAgCN,MAAMC,GAWN,MAAMC,GAWN,MAAMC,GAON,MAAMC,GAuBN,MAAMC,GAQN,MAAMC,GAQN,MAAMC,G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IAAK,2BAA2BwB,WAChCvB,OAAQ,QACLH,KAGT,KAAA2B,KAAO,CAcLC,iBAAkB,CAACC,EAA4B7B,EAAkC,CAAC,IAChFC,KAAKH,KAAK3D,QAAO,eACf+D,IAAK,+BACLC,OAAQ,OACRC,KAAMyB,GACH7B,IAgBP8B,uBAAwB,CAACC,EAAyC/B,EAAkC,CAAC,IACnGC,KAAKH,KAAK3D,QAAO,eACf+D,IAAK,qCACLC,OAAQ,OACRC,KAAM2B,GACH/B,KAlZPC,KAAKH,KAAOA,CACd,GAwZ+B,I","sources":["webpack://nestjs-vue3-ssr/./dist/modules/api/_request.ts","webpack://nestjs-vue3-ssr/webpack/bootstrap","webpack://nestjs-vue3-ssr/webpack/runtime/define property getters","webpack://nestjs-vue3-ssr/webpack/runtime/hasOwnProperty shorthand","webpack://nestjs-vue3-ssr/webpack/runtime/make namespace object","webpack://nestjs-vue3-ssr/./dist/modules/api/authV2.ts"],"sourcesContent":["\nimport { AxiosRequestConfig, AxiosResponse } from 'axios'\n\nlet isSetup = false\n\ninterface HttpClient {\n\trequest: <T = any, _E = any>(config: AxiosRequestConfig) => Promise<T>\n}\n\n//@ts-ignore\nexport const httpClient: HttpClient = {\n\trequest(config: AxiosRequestConfig):any {\n\t\tif (!isSetup) {\n\t\t\tthrow new Error('please setup http client first')\n\t\t}\n\t},\n}\n\nexport const setupApi = (request: HttpClient['request']) => {\n\thttpClient.request = request\n\tisSetup = true\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","export class BindUserRequest {\n department?: string;\n idCardNumber?: string;\n phone?: string;\n verifyCode?: string;\n verifyRequestId?: string;\n}\n\nexport class DeleteMenuTreeRequest {\n /** 部门代码 */\n department?: string;\n\n /** 菜单树 */\n name?: string;\n}\n\nexport class DepartmentMenuTree {\n /** 部门代码 */\n department: string;\n\n /** 是否启用 */\n enable: boolean;\n\n /** 是否继承自上级部门 */\n inherit: boolean;\n\n /** 菜单项目 */\n menuItems: MenuItem[];\n\n /** 菜单组名称 */\n name: string;\n}\n\nexport class ForgotPasswordRequest {\n password?: string;\n phone?: string;\n username?: string;\n verifyCode?: string;\n verifyRequestId?: string;\n}\n\nexport class IdCardLoginForm {\n /** 部门代码 */\n department?: string;\n\n /** 身份证明号码 */\n idCardNumber?: string;\n\n /** 短信验证码 */\n messageCode?: string;\n\n /** 短信验证码请求ID */\n messageRequestId?: string;\n\n /** 手机号码 */\n phone?: string;\n}\n\nexport class LoginResponse {\n token: Token;\n user: UserSimpleWithAuth;\n}\n\nexport class MenuItem {\n /** 下级菜单 */\n children: MenuItem[];\n\n /** 是否启用 */\n enable: boolean;\n\n /** 图标 */\n icon: string;\n\n /** 标识 */\n key: string;\n\n /** 菜单名称 */\n label: string;\n\n /** 所需权限 */\n needPermissions: string[];\n\n /** query参数 */\n queryParams: string;\n\n /** 菜单目标内容。根据菜单类型,可以是组件名/外部链接/iframe链接 */\n target: string;\n\n /** 菜单类型 */\n type: \"Component\" | \"Iframe\" | \"TargetBlank\";\n\n /** 是否可见 */\n visible: boolean;\n}\n\nexport class MenuTree {\n /** 是否启用 */\n enable?: boolean;\n\n /** 菜单项目 */\n menuItems?: MenuItem[];\n\n /** 菜单组名称 */\n name?: string;\n}\n\nexport class PhoneLoginForm {\n /** 短信验证码 */\n messageCode?: string;\n\n /** 短信验证码请求ID */\n messageRequestId?: string;\n\n /** 手机号码 */\n phone?: string;\n}\n\nexport class PhoneLoginResponse {\n /** 所有绑定该手机号的用户 */\n bindUsers: UserSimpleWithAuth[];\n token: Token;\n user: UserSimpleWithAuth;\n}\n\nexport class Point {\n /** @format double */\n accuracy: number;\n\n /** @format double */\n direction: number;\n\n /** @format double */\n height: number;\n\n /** @format double */\n latitude: number;\n\n /** @format double */\n longitude: number;\n\n /** @format double */\n speed: number;\n\n /** @format int64 */\n time: number;\n}\n\nexport class SaveMenuTreeRequest {\n /** 部门代码 */\n department?: string;\n\n /** 菜单树 */\n menuTree?: MenuTree;\n}\n\nexport class SetInheritMenuTreeRequest {\n /** 部门代码 */\n department?: string;\n\n /** 是否继承 */\n inherit?: boolean;\n}\n\nexport class SwitchUserRequest {\n /** 目标用户名 */\n username?: string;\n}\n\nexport class ThirdPlatformLoginRequest {\n /** 应用ID */\n appId: string;\n\n /** 票据(Ticket/Code) */\n code: string;\n\n /** 是否为外部用户 */\n external?: boolean;\n}\n\nexport class ThirdPlatformLoginResponse {\n /** 外部平台openId */\n openId: string;\n token: Token;\n user: UserSimpleWithAuth;\n}\n\nexport class Token {\n appId: string;\n external: boolean;\n refreshToken: string;\n\n /** @format int64 */\n refreshTokenExpire: number;\n token: string;\n\n /** @format int64 */\n tokenExpire: number;\n}\n\nexport class UserCurrent {\n online: boolean;\n working: Working[];\n}\n\nexport class UserInfo {\n /** 实时状态 */\n current: UserCurrent;\n\n /** 基本信息 */\n info: UserSimpleEx;\n\n /** 定位信息 */\n location: Point;\n\n /** 用户名 */\n username: string;\n}\n\nexport class UserQueryBeanV2 {\n /** 根据可管理部门id查询。支持多选 */\n adminDepartmentId?: number[];\n\n /** 根据部门代码查询。支持多选 */\n department?: string[];\n\n /** 根据部门id查询。支持多选 */\n departmentId?: number[];\n\n /** 根据Email查询 */\n email?: string;\n emailLike?: string;\n\n /** 是否根据当前用户的管理部门进行过滤 */\n filterByAdminDepartment?: boolean;\n\n /** 根据id查询。支持多选 */\n id?: number[];\n\n /** 身份证号查询。支持多选 */\n idCardNumber?: string[];\n idCardNumberLike?: string;\n\n /** 是否包含子部门(根据department参数,自动补充子部门) */\n includeSubDepartment?: boolean;\n\n /** 是否为已删除用户 */\n isDeleted?: boolean;\n orderBy?: string[];\n\n /** @format int32 */\n pageIndex?: number;\n\n /** @format int32 */\n pageSize?: number;\n\n /** 根据权限code查询 */\n permissionCode?: string;\n\n /**\n * 根据权限id查询\n * @format int64\n */\n permissionId?: number;\n\n /** 根据手机号查询 */\n phone?: string;\n phoneLike?: string;\n\n /** 根据警号模糊查询 */\n policeCodeLike?: string;\n\n /**\n * 根据警员id查询\n * @format int64\n */\n policeId?: number;\n\n /** 根据警员类型查询 */\n policeType?: string;\n\n /** 根据姓名查询 */\n realName?: string;\n realNameLike?: string;\n\n /**\n * 根据角色id查询\n * @format int64\n */\n roleId?: number;\n\n /** 根据角色id查询 */\n roleIdIn?: number[];\n\n /** 根据角色名称查询 */\n roleName?: string;\n\n /** 根据角色名称批量查询 */\n roleNameIn?: string[];\n\n /** 根据用户名查询。支持多选 */\n username?: string[];\n\n /** 用户名模糊查询 */\n usernameLike?: string;\n\n /** 是否包含基本信息 */\n withInfo?: boolean;\n\n /** 是否包含定位信息 */\n withLocation?: boolean;\n}\n\nexport class UserSimpleEx {\n /** 部门代码 */\n departmentCode: string;\n\n /** 部门级别 */\n departmentLevel: \"DaDui\" | \"ZhiDui\" | \"ZhongDui\" | \"ZongDui\";\n\n /** 部门名称 */\n departmentName: string;\n\n /** 部门行政区划 */\n departmentXzqh: string;\n\n /**\n * 用户ID\n * @format int64\n */\n id: number;\n\n /** 身份证号 */\n idCardNumber: string;\n\n /** 手机号 */\n phone: string;\n\n /** 警员编制 */\n policeBzlx: string;\n\n /** 警员编号 */\n policeCode: string;\n\n /** 警员职位 */\n policePosition: string;\n\n /** 警员类型 */\n policeType: string;\n\n /** 姓名 */\n realName: string;\n\n /** 角色显示名称 */\n roleDisplayName: string;\n\n /**\n * 角色ID\n * @format int64\n */\n roleId: number;\n\n /** 角色名称 */\n roleName: string;\n\n /** 用户名 */\n username: string;\n}\n\nexport class UserSimpleWithAuth {\n /** 管理部门列表 */\n adminDepartments: string[];\n\n /** 部门代码 */\n departmentCode: string;\n\n /** 部门级别 */\n departmentLevel: \"DaDui\" | \"ZhiDui\" | \"ZhongDui\" | \"ZongDui\";\n\n /** 部门名称 */\n departmentName: string;\n\n /** 部门行政区划 */\n departmentXzqh: string;\n\n /**\n * 过期时间\n * @format int64\n */\n expire: number;\n\n /**\n * 用户ID\n * @format int64\n */\n id: number;\n\n /** 身份证号 */\n idCardNumber: string;\n\n /** 是否被锁定 */\n isLocked: boolean;\n\n /**\n * 密码过期时间\n * @format int64\n */\n passwordExpire: number;\n\n /** 权限列表 */\n permissions: string[];\n\n /** 手机号 */\n phone: string;\n\n /** 警员编制 */\n policeBzlx: string;\n\n /** 警员编号 */\n policeCode: string;\n\n /** 警员职位 */\n policePosition: string;\n\n /** 警员类型 */\n policeType: string;\n\n /** 姓名 */\n realName: string;\n\n /** 角色显示名称 */\n roleDisplayName: string;\n\n /**\n * 角色ID\n * @format int64\n */\n roleId: number;\n\n /** 角色名称 */\n roleName: string;\n\n /** 用户名 */\n username: string;\n}\n\nexport class UserWorking {\n name?: string;\n}\n\nexport class UsernamePasswordLoginForm {\n password?: string;\n username?: string;\n}\n\nexport class Working {\n /** 是否有效 */\n active: boolean;\n\n /** 名称 */\n name: string;\n\n /**\n * 更新时间\n * @format int64\n */\n time: number;\n}\n\nexport class DesensitizePageResultUserInfo {\n list: UserInfo[];\n\n /** @format int64 */\n total: number;\n}\n\nexport class JwtInfoParams {\n /** jwt */\n jwt: string;\n}\n\nexport class GetMenuParams {\n /** 部门代码 */\n department: string;\n}\n\nexport type UserSetCurrentWorkingsPayload = UserWorking[];\n\nimport { AxiosRequestConfig, ResponseType } from \"axios\";\n\nexport type QueryParamsType = Record<string | number, any>;\n\nexport interface FullRequestParams extends Omit<AxiosRequestConfig, \"data\" | \"params\" | \"url\" | \"responseType\"> {\n /** set parameter to `true` for call `securityWorker` for this request */\n secure?: boolean;\n /** request path */\n url: string;\n /** content type of request body */\n type?: ContentType;\n /** query params */\n params?: QueryParamsType;\n /** format of response (i.e. response.json() -> format: \"json\") */\n ResponseType?: ResponseType;\n /** request body */\n body?: unknown;\n}\n\nexport type RequestParams = Omit<FullRequestParams, \"body\" | \"method\" | \"query\" | \"path\">;\n\nexport interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, \"data\" | \"cancelToken\"> {\n securityWorker?: (\n securityData: SecurityDataType | null,\n ) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;\n secure?: boolean;\n ResponseType?: ResponseType;\n}\n\nexport enum ContentType {\n Json = \"application/json\",\n FormData = \"multipart/form-data\",\n UrlEncoded = \"application/x-www-form-urlencoded\",\n}\n\ninterface HttpClient {\n request: <T = any, _E = any>(config: AxiosRequestConfig) => Promise<T>;\n}\n\n/**\n * @title 授权服务\n * @version 1.0\n * @baseUrl //192.168.200.12:5000\n *\n * 授权服务\n */\nclass Api {\n private http: HttpClient;\n\n constructor(http: HttpClient) {\n this.http = http;\n }\n\n bindUser = {\n /**\n * No description\n *\n * @tags bindUser\n * @name BindUser\n * @summary 绑定用户\n * @request POST:/auth/v2/bind-user\n * @response `200` `LoginResponse` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n bindUser: (request: BindUserRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<LoginResponse, void>({\n url: `/auth/v2/bind-user`,\n method: \"POST\",\n data: request,\n ...axiosConfig,\n }),\n };\n forgotPassword = {\n /**\n * No description\n *\n * @tags forgotPassword\n * @name ForgotPassword\n * @summary 忘记密码找回\n * @request POST:/auth/v2/forgot-password\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n forgotPassword: (form: ForgotPasswordRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/auth/v2/forgot-password`,\n method: \"POST\",\n data: form,\n ...axiosConfig,\n }),\n };\n jwt = {\n /**\n * No description\n *\n * @tags jwt\n * @name Jwt\n * @summary 获取包含个人信息的JWT\n * @request GET:/auth/v2/jwt\n * @response `200` `string` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n jwt: (axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<string, void>({\n url: `/auth/v2/jwt`,\n method: \"GET\",\n ...axiosConfig,\n }),\n };\n jwtInfo = {\n /**\n * No description\n *\n * @tags jwtInfo\n * @name JwtInfo\n * @summary 根据JWT获取个人信息\n * @request GET:/auth/v2/jwt-info\n * @response `200` `UserSimpleWithAuth` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n jwtInfo: (query: JwtInfoParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<UserSimpleWithAuth, void>({\n url: `/auth/v2/jwt-info`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n };\n login = {\n /**\n * No description\n *\n * @tags login\n * @name Login\n * @summary 用户登录\n * @request POST:/auth/v2/login\n * @response `200` `LoginResponse` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n login: (form: UsernamePasswordLoginForm, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<LoginResponse, void>({\n url: `/auth/v2/login`,\n method: \"POST\",\n data: form,\n ...axiosConfig,\n }),\n };\n loginByPhone = {\n /**\n * No description\n *\n * @tags loginByPhone\n * @name LoginByPhone\n * @summary 手机号登录\n * @request POST:/auth/v2/login-by-phone\n * @response `200` `PhoneLoginResponse` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n loginByPhone: (form: PhoneLoginForm, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<PhoneLoginResponse, void>({\n url: `/auth/v2/login-by-phone`,\n method: \"POST\",\n data: form,\n ...axiosConfig,\n }),\n };\n loginByThirdPlatformCode = {\n /**\n * No description\n *\n * @tags loginByThirdPlatformCode\n * @name LoginByThirdPlatformCode\n * @summary 第三方平台票据登陆\n * @request POST:/auth/v2/login-by-third-platform-code\n * @response `200` `ThirdPlatformLoginResponse` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n loginByThirdPlatformCode: (form: ThirdPlatformLoginRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<ThirdPlatformLoginResponse, void>({\n url: `/auth/v2/login-by-third-platform-code`,\n method: \"POST\",\n data: form,\n ...axiosConfig,\n }),\n };\n logout = {\n /**\n * No description\n *\n * @tags logout\n * @name Logout\n * @summary 用户注销\n * @request POST:/auth/v2/logout\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n logout: (axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/auth/v2/logout`,\n method: \"POST\",\n ...axiosConfig,\n }),\n };\n me = {\n /**\n * No description\n *\n * @tags me\n * @name Me\n * @summary 获取个人信息\n * @request GET:/auth/v2/me\n * @response `200` `UserSimpleWithAuth` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n me: (axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<UserSimpleWithAuth, void>({\n url: `/auth/v2/me`,\n method: \"GET\",\n ...axiosConfig,\n }),\n };\n menu = {\n /**\n * @description 所需权限:department:config:read\n *\n * @tags menu\n * @name GetMenu\n * @summary 获取菜单树列表\n * @request GET:/auth/v2/menu\n * @response `200` `(DepartmentMenuTree)[]` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n getMenu: (query: GetMenuParams, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<DepartmentMenuTree[], void>({\n url: `/auth/v2/menu`,\n method: \"GET\",\n params: query,\n ...axiosConfig,\n }),\n\n /**\n * @description 所需权限:department:config:write\n *\n * @tags menu\n * @name PostMenu\n * @summary 保存菜单树\n * @request POST:/auth/v2/menu\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n postMenu: (request: SaveMenuTreeRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/auth/v2/menu`,\n method: \"POST\",\n data: request,\n ...axiosConfig,\n }),\n\n /**\n * @description 所需权限:department:config:write\n *\n * @tags menu\n * @name DeleteMenu\n * @summary 删除菜单树\n * @request DELETE:/auth/v2/menu\n * @response `200` `void` OK\n * @response `204` `void` No Content\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n */\n deleteMenu: (request: DeleteMenuTreeRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/auth/v2/menu`,\n method: \"DELETE\",\n data: request,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags menu\n * @name MenuCurrentUser\n * @summary 获取当前用户的菜单树列表\n * @request GET:/auth/v2/menu/current-user\n * @response `200` `(DepartmentMenuTree)[]` OK\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n menuCurrentUser: (axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<DepartmentMenuTree[], void>({\n url: `/auth/v2/menu/current-user`,\n method: \"GET\",\n ...axiosConfig,\n }),\n\n /**\n * @description 所需权限:department:config:write\n *\n * @tags menu\n * @name MenuSetInherit\n * @summary 设置部门菜单树是否继承自上级部门\n * @request POST:/auth/v2/menu/set-inherit\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n menuSetInherit: (request: SetInheritMenuTreeRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/auth/v2/menu/set-inherit`,\n method: \"POST\",\n data: request,\n ...axiosConfig,\n }),\n };\n policeLogin = {\n /**\n * No description\n *\n * @tags policeLogin\n * @name PoliceLogin\n * @summary 身份证登录\n * @request POST:/auth/v2/police-login\n * @response `200` `LoginResponse` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n policeLogin: (form: IdCardLoginForm, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<LoginResponse, void>({\n url: `/auth/v2/police-login`,\n method: \"POST\",\n data: form,\n ...axiosConfig,\n }),\n };\n switchUser = {\n /**\n * @description 绑定了相同手机号、或相同身份证号的用户可以直接切换\n *\n * @tags switchUser\n * @name SwitchUser\n * @summary 切换用户\n * @request POST:/auth/v2/switch-user\n * @response `200` `LoginResponse` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n switchUser: (request: SwitchUserRequest, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<LoginResponse, void>({\n url: `/auth/v2/switch-user`,\n method: \"POST\",\n data: request,\n ...axiosConfig,\n }),\n };\n thirdPlatform = {\n /**\n * No description\n *\n * @tags thirdPlatform\n * @name ThirdPlatformUnbindByAppId\n * @summary 与指定外部平台解绑\n * @request POST:/auth/v2/third-platform/{appId}/unbind\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n thirdPlatformUnbindByAppId: (appId: string, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/auth/v2/third-platform/${appId}/unbind`,\n method: \"POST\",\n ...axiosConfig,\n }),\n };\n user = {\n /**\n * No description\n *\n * @tags user\n * @name UserListBaseInfo\n * @summary 列出用户基本信息\n * @request POST:/auth/v2/user/list-base-info\n * @response `200` `DesensitizePageResultUserInfo` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n userListBaseInfo: (queryBean: UserQueryBeanV2, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<DesensitizePageResultUserInfo, void>({\n url: `/auth/v2/user/list-base-info`,\n method: \"POST\",\n data: queryBean,\n ...axiosConfig,\n }),\n\n /**\n * No description\n *\n * @tags user\n * @name UserSetCurrentWorkings\n * @summary 设置当前正在进行的工作\n * @request POST:/auth/v2/user/set-current-workings\n * @response `200` `void` OK\n * @response `201` `void` Created\n * @response `401` `void` Unauthorized\n * @response `403` `void` Forbidden\n * @response `404` `void` Not Found\n */\n userSetCurrentWorkings: (workings: UserSetCurrentWorkingsPayload, axiosConfig: AxiosRequestConfig = {}) =>\n this.http.request<void, void>({\n url: `/auth/v2/user/set-current-workings`,\n method: \"POST\",\n data: workings,\n ...axiosConfig,\n }),\n };\n}\n\nimport { httpClient } from \"./_request\";\n\nexport const authV2Api = new Api(httpClient);\n"],"names":["httpClient","request","config","Error","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","ContentType","BindUserRequest","DeleteMenuTreeRequest","DepartmentMenuTree","ForgotPasswordRequest","IdCardLoginForm","LoginResponse","MenuItem","MenuTree","PhoneLoginForm","PhoneLoginResponse","Point","SaveMenuTreeRequest","SetInheritMenuTreeRequest","SwitchUserRequest","ThirdPlatformLoginRequest","ThirdPlatformLoginResponse","Token","UserCurrent","UserInfo","UserQueryBeanV2","UserSimpleEx","UserSimpleWithAuth","UserWorking","UsernamePasswordLoginForm","Working","DesensitizePageResultUserInfo","JwtInfoParams","GetMenuParams","authV2Api","constructor","http","bindUser","axiosConfig","this","url","method","data","forgotPassword","form","jwt","jwtInfo","query","params","login","loginByPhone","loginByThirdPlatformCode","logout","me","menu","getMenu","postMenu","deleteMenu","menuCurrentUser","menuSetInherit","policeLogin","switchUser","thirdPlatform","thirdPlatformUnbindByAppId","appId","user","userListBaseInfo","queryBean","userSetCurrentWorkings","workings"],"sourceRoot":""}
|
package/common.d.ts
CHANGED
|
@@ -92,6 +92,8 @@ export declare class EntityDigest {
|
|
|
92
92
|
valid: boolean;
|
|
93
93
|
}
|
|
94
94
|
export declare class Evidence {
|
|
95
|
+
/** 证据类型 */
|
|
96
|
+
category: string;
|
|
95
97
|
/** 内容 */
|
|
96
98
|
content: string;
|
|
97
99
|
/** 描述 */
|
|
@@ -110,7 +112,7 @@ export declare class Evidence {
|
|
|
110
112
|
* @format int64
|
|
111
113
|
*/
|
|
112
114
|
time: number;
|
|
113
|
-
/**
|
|
115
|
+
/** 证据文件类型 */
|
|
114
116
|
type: string;
|
|
115
117
|
/** 上传人 */
|
|
116
118
|
user: string;
|
|
@@ -268,6 +270,12 @@ export declare class InnerContent {
|
|
|
268
270
|
/** 模版配置key */
|
|
269
271
|
templateConfigName?: string;
|
|
270
272
|
}
|
|
273
|
+
export declare class ListEvidenceRequest {
|
|
274
|
+
/** 文书编号 */
|
|
275
|
+
code?: string;
|
|
276
|
+
/** 文书类型 */
|
|
277
|
+
codeType?: "ACCIDENT" | "FORCE" | "IMMEDIATE" | "INSURANCE" | "POLICE_JJD" | "PROCESS" | "SERIAL" | "SURVEIL" | "VIOLATION" | "VIO_NOTIFY";
|
|
278
|
+
}
|
|
271
279
|
export declare class NoticeInfoRequest {
|
|
272
280
|
/** 业务编号 */
|
|
273
281
|
code?: string;
|
|
@@ -521,9 +529,9 @@ export declare class VehicleParams {
|
|
|
521
529
|
* @format binary
|
|
522
530
|
*/
|
|
523
531
|
export declare type DrivingLicenseBody = File;
|
|
524
|
-
export declare class
|
|
532
|
+
export declare class DrivingLicenseParams8 {
|
|
525
533
|
/** method */
|
|
526
|
-
method?: "Ali" | "Baidu" | "Dahua";
|
|
534
|
+
method?: "Ali" | "Baidu" | "Dahua" | "Lujing";
|
|
527
535
|
}
|
|
528
536
|
/**
|
|
529
537
|
* @format binary
|
|
@@ -531,7 +539,7 @@ export declare class DrivingLicenseParams4 {
|
|
|
531
539
|
export declare type IdCardPayload = File;
|
|
532
540
|
export declare class IdCardParams {
|
|
533
541
|
/** method */
|
|
534
|
-
method?: "Ali" | "Baidu" | "Dahua";
|
|
542
|
+
method?: "Ali" | "Baidu" | "Dahua" | "Lujing";
|
|
535
543
|
}
|
|
536
544
|
/**
|
|
537
545
|
* @format binary
|
|
@@ -539,7 +547,7 @@ export declare class IdCardParams {
|
|
|
539
547
|
export declare type VehicleLicensePayload = File;
|
|
540
548
|
export declare class VehicleLicenseParams {
|
|
541
549
|
/** method */
|
|
542
|
-
method?: "Ali" | "Baidu" | "Dahua";
|
|
550
|
+
method?: "Ali" | "Baidu" | "Dahua" | "Lujing";
|
|
543
551
|
}
|
|
544
552
|
/**
|
|
545
553
|
* @format binary
|
|
@@ -547,7 +555,7 @@ export declare class VehicleLicenseParams {
|
|
|
547
555
|
export declare type VehiclePlatePayload = File;
|
|
548
556
|
export declare class VehiclePlateParams {
|
|
549
557
|
/** method */
|
|
550
|
-
method?: "Ali" | "Baidu" | "Dahua";
|
|
558
|
+
method?: "Ali" | "Baidu" | "Dahua" | "Lujing";
|
|
551
559
|
}
|
|
552
560
|
export declare class DepartmentUsersByCategoryParams {
|
|
553
561
|
/** department */
|
|
@@ -696,7 +704,7 @@ declare class Api {
|
|
|
696
704
|
*
|
|
697
705
|
* @tags document
|
|
698
706
|
* @name Use
|
|
699
|
-
* @summary
|
|
707
|
+
* @summary 标记文书编号为已使用
|
|
700
708
|
* @request POST:/accident-service/document/use
|
|
701
709
|
* @response `200` `UseDocumentCodeResult` OK
|
|
702
710
|
* @response `201` `void` Created
|
|
@@ -761,7 +769,7 @@ declare class Api {
|
|
|
761
769
|
*/
|
|
762
770
|
postEvidence: (data: SaveEvidenceRequest, axiosConfig?: AxiosRequestConfig) => Promise<number[]>;
|
|
763
771
|
/**
|
|
764
|
-
*
|
|
772
|
+
* No description
|
|
765
773
|
*
|
|
766
774
|
* @tags evidence
|
|
767
775
|
* @name GetById
|
|
@@ -774,7 +782,7 @@ declare class Api {
|
|
|
774
782
|
*/
|
|
775
783
|
getById: (id: number, axiosConfig?: AxiosRequestConfig) => Promise<Evidence>;
|
|
776
784
|
/**
|
|
777
|
-
*
|
|
785
|
+
* No description
|
|
778
786
|
*
|
|
779
787
|
* @tags evidence
|
|
780
788
|
* @name PutById
|
|
@@ -868,6 +876,48 @@ declare class Api {
|
|
|
868
876
|
* @response `403` `void` Forbidden
|
|
869
877
|
*/
|
|
870
878
|
deleteRemindById: (id: number, axiosConfig?: AxiosRequestConfig) => Promise<void>;
|
|
879
|
+
/**
|
|
880
|
+
* No description
|
|
881
|
+
*
|
|
882
|
+
* @tags evidence
|
|
883
|
+
* @name SyncTransfer
|
|
884
|
+
* @summary 按业务同步证据信息
|
|
885
|
+
* @request POST:/accident-service/evidence/sync/transfer
|
|
886
|
+
* @response `200` `void` OK
|
|
887
|
+
* @response `201` `void` Created
|
|
888
|
+
* @response `401` `void` Unauthorized
|
|
889
|
+
* @response `403` `void` Forbidden
|
|
890
|
+
* @response `404` `void` Not Found
|
|
891
|
+
*/
|
|
892
|
+
syncTransfer: (data: ListEvidenceRequest, axiosConfig?: AxiosRequestConfig) => Promise<void>;
|
|
893
|
+
/**
|
|
894
|
+
* No description
|
|
895
|
+
*
|
|
896
|
+
* @tags evidence
|
|
897
|
+
* @name SyncTransferResourceByResourceId
|
|
898
|
+
* @summary 同步资源
|
|
899
|
+
* @request POST:/accident-service/evidence/sync/transfer-resource/{resourceId}
|
|
900
|
+
* @response `200` `void` OK
|
|
901
|
+
* @response `201` `void` Created
|
|
902
|
+
* @response `401` `void` Unauthorized
|
|
903
|
+
* @response `403` `void` Forbidden
|
|
904
|
+
* @response `404` `void` Not Found
|
|
905
|
+
*/
|
|
906
|
+
syncTransferResourceByResourceId: (resourceId: string, axiosConfig?: AxiosRequestConfig) => Promise<void>;
|
|
907
|
+
/**
|
|
908
|
+
* No description
|
|
909
|
+
*
|
|
910
|
+
* @tags evidence
|
|
911
|
+
* @name SyncTransferById
|
|
912
|
+
* @summary 按ID同步证据信息
|
|
913
|
+
* @request POST:/accident-service/evidence/sync/{id}/transfer
|
|
914
|
+
* @response `200` `void` OK
|
|
915
|
+
* @response `201` `void` Created
|
|
916
|
+
* @response `401` `void` Unauthorized
|
|
917
|
+
* @response `403` `void` Forbidden
|
|
918
|
+
* @response `404` `void` Not Found
|
|
919
|
+
*/
|
|
920
|
+
syncTransferById: (id: number, axiosConfig?: AxiosRequestConfig) => Promise<void>;
|
|
871
921
|
};
|
|
872
922
|
fieldChangeRecord: {
|
|
873
923
|
/**
|
|
@@ -997,7 +1047,7 @@ declare class Api {
|
|
|
997
1047
|
* @response `403` `void` Forbidden
|
|
998
1048
|
* @response `404` `void` Not Found
|
|
999
1049
|
*/
|
|
1000
|
-
drivingLicense: (query:
|
|
1050
|
+
drivingLicense: (query: DrivingLicenseParams8, data: DrivingLicenseBody, axiosConfig?: AxiosRequestConfig) => Promise<DrivingLicenseMeta>;
|
|
1001
1051
|
/**
|
|
1002
1052
|
* No description
|
|
1003
1053
|
*
|
package/common.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(()=>{"use strict";var e={289:(e,t,s)=>{s.d(t,{M:()=>a});const a={request(e){throw new Error("please setup http client first")}}}},t={};function s(a){var r=t[a];if(void 0!==r)return r.exports;var c=t[a]={exports:{}};return e[a](c,c.exports,s),c.exports}s.d=(e,t)=>{for(var a in t)s.o(t,a)&&!s.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{s.r(a),s.d(a,{AccidentAlarm:()=>c,ConfigTemplateRequest:()=>i,ContentType:()=>e,CurrentParams:()=>k,DepartmentUsers:()=>n,DepartmentUsersByCategoryParams:()=>te,DocumentCodeResponse:()=>d,DocumentCodeVerifyResponse:()=>o,DrivingLicense:()=>m,DrivingLicenseMeta:()=>l,DrivingLicenseParams:()=>J,DrivingLicenseParams4:()=>X,EntityDigest:()=>h,Evidence:()=>u,EvidenceDeleteRequest:()=>p,EvidenceNonstandardRemindDTOReq:()=>v,EvidenceNonstandardRemindDTORes:()=>g,ExcelContent:()=>O,FieldChangeDTO:()=>y,FieldChangeRecordParams:()=>F,GetEvidenceParams:()=>_,GetTemplateParams:()=>ce,HangzhouNextParams:()=>W,HtmlToPdfRequest:()=>T,IdCardMeta:()=>b,IdCardParams:()=>Y,InnerContent:()=>P,MultiDepartmentUsersByCategoryParams:()=>se,MultiUserDepartmentsByCategoryParams:()=>ae,NextParams:()=>V,NoticeInfoRequest:()=>q,PageResultEvidenceNonstandardRemindDTO:()=>j,PageResultTemplateDTO:()=>f,PutSetSeedParams:()=>A,RemindParams:()=>z,ReplacementRenderRequest:()=>E,Rmb:()=>D,RmbChinese:()=>S,SaveEvidenceRequest:()=>C,SgParams:()=>K,Sheet:()=>R,StaticContentDTO:()=>B,TemplateDTO:()=>U,TemplateRequest:()=>G,UseDocumentCodeRequest:()=>$,UseDocumentCodeResult:()=>w,UserDepartments:()=>x,UserDepartmentsByCategoryParams:()=>re,Vehicle:()=>L,VehicleLicenseMeta:()=>M,VehicleLicenseParams:()=>Z,VehicleParams:()=>Q,VehiclePlateMeta:()=>I,VehiclePlateParams:()=>ee,VerifyCodeParams:()=>H,Weather:()=>N,WeatherNowParams:()=>ie,commonApi:()=>ne});var e,t=s(289),r=function(e,t){var s={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(s[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(s[a[r]]=e[a[r]])}return s};class c{}class i{}class n{}class d{}class o{}class m{}class l{}class h{}class u{}class p{}class v{}class g{}class O{}class y{}class T{}class b{}class P{}class q{}class j{}class f{}class E{}class D{}class S{}class C{}class R{}class B{}class U{}class G{}class ${}class w{}class x{}class L{}class M{}class I{}class N{}class k{}class V{}class A{}class H{}class _{}class z{}class F{}class W{}class J{}class K{}class Q{}class X{}class Y{}class Z{}class ee{}class te{}class se{}class ae{}class re{}class ce{}class ie{}!function(e){e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded"}(e||(e={}));const ne=new class{constructor(e){this.document={current:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/document/current",method:"GET",params:e},t)),next:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/document/next",method:"GET",params:e},t)),recall:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/document/recall",method:"POST",data:e},t)),putSetSeed:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/document/set-seed",method:"PUT",params:e},t)),use:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/document/use",method:"POST",data:e},t)),verifyCode:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/document/verify-code",method:"GET",params:e},t)),hangzhouNext:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/document/hangzhou/next",method:"GET",params:e},t))},this.evidence={getEvidence:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/evidence",method:"GET",params:e},t)),postEvidence:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/evidence",method:"POST",data:e},t)),getById:(e,t={})=>this.http.request(Object.assign({url:`/accident-service/evidence/${e}`,method:"GET"},t)),putById:(e,t,s={})=>this.http.request(Object.assign({url:`/accident-service/evidence/${e}`,method:"PUT",data:t},s)),deleteById:(e,t,s={})=>this.http.request(Object.assign({url:`/accident-service/evidence/${e}`,method:"DELETE",data:t},s)),putRecoverById:(e,t={})=>this.http.request(Object.assign({url:`/accident-service/evidence/${e}/recover`,method:"PUT"},t)),remind:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/evidence/remind",method:"GET",params:e},t)),remindModify:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/evidence/remind/modify",method:"POST",data:e},t)),remindSend:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/evidence/remind/send",method:"POST",data:e},t)),deleteRemindById:(e,t={})=>this.http.request(Object.assign({url:`/accident-service/evidence/remind/${e}`,method:"DELETE"},t))},this.fieldChangeRecord={fieldChangeRecord:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/field-change-record",method:"GET",params:e},t))},this.query={drivingLicense:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/query/driving-license",method:"GET",params:e},t)),sg:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/query/sg",method:"GET",params:e},t)),vehicle:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/query/vehicle",method:"GET",params:e},t))},this.templateRenderNodeVue={renderByConfig:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render-node-vue/render-by-config",method:"POST",data:e},t)),renderTemplate:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render-node-vue/render-template",method:"POST",data:e},t)),saveHtmlToPdf:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render-node-vue/save-html-to-pdf",method:"POST",data:e},t)),saveHtmlToPdfBase64:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render-node-vue/save-html-to-pdf-base64",method:"POST",data:e},t))},this.ocr={drivingLicense:(e,t,s={})=>this.http.request(Object.assign({url:"/accident-service/ocr/driving-license",method:"POST",params:e,data:t},s)),idCard:(e,t,s={})=>this.http.request(Object.assign({url:"/accident-service/ocr/id-card",method:"POST",params:e,data:t},s)),vehicleLicense:(e,t,s={})=>this.http.request(Object.assign({url:"/accident-service/ocr/vehicle-license",method:"POST",params:e,data:t},s)),vehiclePlate:(e,t,s={})=>this.http.request(Object.assign({url:"/accident-service/ocr/vehicle-plate",method:"POST",params:e,data:t},s))},this.replacementRender={batchRender:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/replacement-render/batch-render",method:"POST",data:e},t))},this.common={staticDocContent:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/common/static-doc-content",method:"POST",data:e},t)),staticDocContentByKey:(e,t={})=>this.http.request(Object.assign({url:`/accident-service/common/static-doc-content/${e}`,method:"GET"},t)),weatherNow:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/common/weather/now",method:"GET",params:e},t))},this.taskDepartment={departmentUsersByCategory:(e,t)=>{var{category:s}=e,a=r(e,["category"]);return void 0===t&&(t={}),this.http.request(Object.assign({url:`/accident-service/task-department/${s}/department-users`,method:"GET",params:a},t))},putDepartmentUsersByCategoryAndDepartment:(e,t,s,a={})=>this.http.request(Object.assign({url:`/accident-service/task-department/${e}/department-users/${t}`,method:"PUT",data:s},a)),postDepartmentUsersByCategoryAndDepartment:(e,t,s,a={})=>this.http.request(Object.assign({url:`/accident-service/task-department/${e}/department-users/${t}`,method:"POST",data:s},a)),deleteDepartmentUsersByCategoryAndDepartment:(e,t,s,a={})=>this.http.request(Object.assign({url:`/accident-service/task-department/${e}/department-users/${t}`,method:"DELETE",data:s},a)),multiDepartmentUsersByCategory:(e,t)=>{var{category:s}=e,a=r(e,["category"]);return void 0===t&&(t={}),this.http.request(Object.assign({url:`/accident-service/task-department/${s}/multi-department-users`,method:"GET",params:a},t))},multiUserDepartmentsByCategory:(e,t)=>{var{category:s}=e,a=r(e,["category"]);return void 0===t&&(t={}),this.http.request(Object.assign({url:`/accident-service/task-department/${s}/multi-user-departments`,method:"GET",params:a},t))},userDepartmentsByCategory:(e,t)=>{var{category:s}=e,a=r(e,["category"]);return void 0===t&&(t={}),this.http.request(Object.assign({url:`/accident-service/task-department/${s}/user-departments`,method:"GET",params:a},t))},putUserDepartmentsByCategoryAndUser:(e,t,s,a={})=>this.http.request(Object.assign({url:`/accident-service/task-department/${e}/user-departments/${t}`,method:"PUT",data:s},a))},this.template={getTemplate:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template",method:"GET",params:e},t)),postTemplate:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template",method:"POST",data:e},t)),getById:(e,t={})=>this.http.request(Object.assign({url:`/accident-service/template/${e}`,method:"GET"},t)),deleteById:(e,t={})=>this.http.request(Object.assign({url:`/accident-service/template/${e}`,method:"DELETE"},t))},this.templateRender={amountToRmd:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render/amount-to-rmd",method:"POST",data:e},t)),renderByConfig:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render/render-by-config",method:"POST",data:e},t)),renderTemplate:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render/render-template",method:"POST",data:e},t)),saveHtmlToPdf:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render/save-html-to-pdf",method:"POST",data:e},t)),saveHtmlToPdfBase64:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render/save-html-to-pdf-base64",method:"POST",data:e},t))},this.http=e}}(t.M)})();var r=exports;for(var c in a)r[c]=a[c];a.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
|
|
1
|
+
(()=>{"use strict";var e={289:(e,t,s)=>{s.d(t,{M:()=>a});const a={request(e){throw new Error("please setup http client first")}}}},t={};function s(a){var r=t[a];if(void 0!==r)return r.exports;var c=t[a]={exports:{}};return e[a](c,c.exports,s),c.exports}s.d=(e,t)=>{for(var a in t)s.o(t,a)&&!s.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};(()=>{s.r(a),s.d(a,{AccidentAlarm:()=>c,ConfigTemplateRequest:()=>i,ContentType:()=>e,CurrentParams:()=>V,DepartmentUsers:()=>n,DepartmentUsersByCategoryParams:()=>se,DocumentCodeResponse:()=>d,DocumentCodeVerifyResponse:()=>o,DrivingLicense:()=>m,DrivingLicenseMeta:()=>l,DrivingLicenseParams:()=>K,DrivingLicenseParams8:()=>Y,EntityDigest:()=>h,Evidence:()=>u,EvidenceDeleteRequest:()=>p,EvidenceNonstandardRemindDTOReq:()=>v,EvidenceNonstandardRemindDTORes:()=>g,ExcelContent:()=>O,FieldChangeDTO:()=>y,FieldChangeRecordParams:()=>W,GetEvidenceParams:()=>z,GetTemplateParams:()=>ie,HangzhouNextParams:()=>J,HtmlToPdfRequest:()=>T,IdCardMeta:()=>b,IdCardParams:()=>Z,InnerContent:()=>P,ListEvidenceRequest:()=>q,MultiDepartmentUsersByCategoryParams:()=>ae,MultiUserDepartmentsByCategoryParams:()=>re,NextParams:()=>A,NoticeInfoRequest:()=>j,PageResultEvidenceNonstandardRemindDTO:()=>f,PageResultTemplateDTO:()=>E,PutSetSeedParams:()=>H,RemindParams:()=>F,ReplacementRenderRequest:()=>D,Rmb:()=>S,RmbChinese:()=>C,SaveEvidenceRequest:()=>R,SgParams:()=>Q,Sheet:()=>B,StaticContentDTO:()=>U,TemplateDTO:()=>$,TemplateRequest:()=>G,UseDocumentCodeRequest:()=>w,UseDocumentCodeResult:()=>x,UserDepartments:()=>I,UserDepartmentsByCategoryParams:()=>ce,Vehicle:()=>L,VehicleLicenseMeta:()=>M,VehicleLicenseParams:()=>ee,VehicleParams:()=>X,VehiclePlateMeta:()=>N,VehiclePlateParams:()=>te,VerifyCodeParams:()=>_,Weather:()=>k,WeatherNowParams:()=>ne,commonApi:()=>de});var e,t=s(289),r=function(e,t){var s={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(s[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(s[a[r]]=e[a[r]])}return s};class c{}class i{}class n{}class d{}class o{}class m{}class l{}class h{}class u{}class p{}class v{}class g{}class O{}class y{}class T{}class b{}class P{}class q{}class j{}class f{}class E{}class D{}class S{}class C{}class R{}class B{}class U{}class ${}class G{}class w{}class x{}class I{}class L{}class M{}class N{}class k{}class V{}class A{}class H{}class _{}class z{}class F{}class W{}class J{}class K{}class Q{}class X{}class Y{}class Z{}class ee{}class te{}class se{}class ae{}class re{}class ce{}class ie{}class ne{}!function(e){e.Json="application/json",e.FormData="multipart/form-data",e.UrlEncoded="application/x-www-form-urlencoded"}(e||(e={}));const de=new class{constructor(e){this.document={current:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/document/current",method:"GET",params:e},t)),next:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/document/next",method:"GET",params:e},t)),recall:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/document/recall",method:"POST",data:e},t)),putSetSeed:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/document/set-seed",method:"PUT",params:e},t)),use:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/document/use",method:"POST",data:e},t)),verifyCode:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/document/verify-code",method:"GET",params:e},t)),hangzhouNext:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/document/hangzhou/next",method:"GET",params:e},t))},this.evidence={getEvidence:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/evidence",method:"GET",params:e},t)),postEvidence:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/evidence",method:"POST",data:e},t)),getById:(e,t={})=>this.http.request(Object.assign({url:`/accident-service/evidence/${e}`,method:"GET"},t)),putById:(e,t,s={})=>this.http.request(Object.assign({url:`/accident-service/evidence/${e}`,method:"PUT",data:t},s)),deleteById:(e,t,s={})=>this.http.request(Object.assign({url:`/accident-service/evidence/${e}`,method:"DELETE",data:t},s)),putRecoverById:(e,t={})=>this.http.request(Object.assign({url:`/accident-service/evidence/${e}/recover`,method:"PUT"},t)),remind:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/evidence/remind",method:"GET",params:e},t)),remindModify:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/evidence/remind/modify",method:"POST",data:e},t)),remindSend:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/evidence/remind/send",method:"POST",data:e},t)),deleteRemindById:(e,t={})=>this.http.request(Object.assign({url:`/accident-service/evidence/remind/${e}`,method:"DELETE"},t)),syncTransfer:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/evidence/sync/transfer",method:"POST",data:e},t)),syncTransferResourceByResourceId:(e,t={})=>this.http.request(Object.assign({url:`/accident-service/evidence/sync/transfer-resource/${e}`,method:"POST"},t)),syncTransferById:(e,t={})=>this.http.request(Object.assign({url:`/accident-service/evidence/sync/${e}/transfer`,method:"POST"},t))},this.fieldChangeRecord={fieldChangeRecord:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/field-change-record",method:"GET",params:e},t))},this.query={drivingLicense:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/query/driving-license",method:"GET",params:e},t)),sg:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/query/sg",method:"GET",params:e},t)),vehicle:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/query/vehicle",method:"GET",params:e},t))},this.templateRenderNodeVue={renderByConfig:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render-node-vue/render-by-config",method:"POST",data:e},t)),renderTemplate:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render-node-vue/render-template",method:"POST",data:e},t)),saveHtmlToPdf:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render-node-vue/save-html-to-pdf",method:"POST",data:e},t)),saveHtmlToPdfBase64:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render-node-vue/save-html-to-pdf-base64",method:"POST",data:e},t))},this.ocr={drivingLicense:(e,t,s={})=>this.http.request(Object.assign({url:"/accident-service/ocr/driving-license",method:"POST",params:e,data:t},s)),idCard:(e,t,s={})=>this.http.request(Object.assign({url:"/accident-service/ocr/id-card",method:"POST",params:e,data:t},s)),vehicleLicense:(e,t,s={})=>this.http.request(Object.assign({url:"/accident-service/ocr/vehicle-license",method:"POST",params:e,data:t},s)),vehiclePlate:(e,t,s={})=>this.http.request(Object.assign({url:"/accident-service/ocr/vehicle-plate",method:"POST",params:e,data:t},s))},this.replacementRender={batchRender:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/replacement-render/batch-render",method:"POST",data:e},t))},this.common={staticDocContent:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/common/static-doc-content",method:"POST",data:e},t)),staticDocContentByKey:(e,t={})=>this.http.request(Object.assign({url:`/accident-service/common/static-doc-content/${e}`,method:"GET"},t)),weatherNow:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/common/weather/now",method:"GET",params:e},t))},this.taskDepartment={departmentUsersByCategory:(e,t)=>{var{category:s}=e,a=r(e,["category"]);return void 0===t&&(t={}),this.http.request(Object.assign({url:`/accident-service/task-department/${s}/department-users`,method:"GET",params:a},t))},putDepartmentUsersByCategoryAndDepartment:(e,t,s,a={})=>this.http.request(Object.assign({url:`/accident-service/task-department/${e}/department-users/${t}`,method:"PUT",data:s},a)),postDepartmentUsersByCategoryAndDepartment:(e,t,s,a={})=>this.http.request(Object.assign({url:`/accident-service/task-department/${e}/department-users/${t}`,method:"POST",data:s},a)),deleteDepartmentUsersByCategoryAndDepartment:(e,t,s,a={})=>this.http.request(Object.assign({url:`/accident-service/task-department/${e}/department-users/${t}`,method:"DELETE",data:s},a)),multiDepartmentUsersByCategory:(e,t)=>{var{category:s}=e,a=r(e,["category"]);return void 0===t&&(t={}),this.http.request(Object.assign({url:`/accident-service/task-department/${s}/multi-department-users`,method:"GET",params:a},t))},multiUserDepartmentsByCategory:(e,t)=>{var{category:s}=e,a=r(e,["category"]);return void 0===t&&(t={}),this.http.request(Object.assign({url:`/accident-service/task-department/${s}/multi-user-departments`,method:"GET",params:a},t))},userDepartmentsByCategory:(e,t)=>{var{category:s}=e,a=r(e,["category"]);return void 0===t&&(t={}),this.http.request(Object.assign({url:`/accident-service/task-department/${s}/user-departments`,method:"GET",params:a},t))},putUserDepartmentsByCategoryAndUser:(e,t,s,a={})=>this.http.request(Object.assign({url:`/accident-service/task-department/${e}/user-departments/${t}`,method:"PUT",data:s},a))},this.template={getTemplate:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template",method:"GET",params:e},t)),postTemplate:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template",method:"POST",data:e},t)),getById:(e,t={})=>this.http.request(Object.assign({url:`/accident-service/template/${e}`,method:"GET"},t)),deleteById:(e,t={})=>this.http.request(Object.assign({url:`/accident-service/template/${e}`,method:"DELETE"},t))},this.templateRender={amountToRmd:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render/amount-to-rmd",method:"POST",data:e},t)),renderByConfig:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render/render-by-config",method:"POST",data:e},t)),renderTemplate:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render/render-template",method:"POST",data:e},t)),saveHtmlToPdf:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render/save-html-to-pdf",method:"POST",data:e},t)),saveHtmlToPdfBase64:(e,t={})=>this.http.request(Object.assign({url:"/accident-service/template-render/save-html-to-pdf-base64",method:"POST",data:e},t))},this.http=e}}(t.M)})();var r=exports;for(var c in a)r[c]=a[c];a.__esModule&&Object.defineProperty(r,"__esModule",{value:!0})})();
|
|
2
2
|
//# sourceMappingURL=common.js.map
|