globals.d.ts 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815
  1. /* tslint:disable */
  2. /* eslint-disable */
  3. /**
  4. * Swagger Petstore - OpenAPI 3.0 - version 1.0.27
  5. *
  6. * This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about
  7. Swagger at [https://swagger.io](https://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
  8. You can now help us improve the API whether it's by making changes to the definition itself or to the code.
  9. That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
  10. Some useful links:
  11. - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)
  12. - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
  13. *
  14. * OpenAPI version: 3.0.4
  15. *
  16. * Contact:
  17. *
  18. * NOTE: This file is auto generated by the alova's vscode plugin.
  19. *
  20. * https://alova.js.org/devtools/vscode
  21. *
  22. * **Do not edit the file manually.**
  23. */
  24. import type {
  25. Alova,
  26. AlovaMethodCreateConfig,
  27. AlovaGenerics,
  28. Method,
  29. } from "alova";
  30. import type { $$userConfigMap, alovaInstance } from ".";
  31. import type apiDefinitions from "./apiDefinitions";
  32. type CollapsedAlova = typeof alovaInstance;
  33. type UserMethodConfigMap = typeof $$userConfigMap;
  34. type Alova2MethodConfig<Responded> =
  35. CollapsedAlova extends Alova<
  36. AlovaGenerics<
  37. any,
  38. any,
  39. infer RequestConfig,
  40. infer Response,
  41. infer ResponseHeader,
  42. infer L1Cache,
  43. infer L2Cache,
  44. infer SE
  45. >
  46. >
  47. ? Omit<
  48. AlovaMethodCreateConfig<
  49. AlovaGenerics<
  50. Responded,
  51. any,
  52. RequestConfig,
  53. Response,
  54. ResponseHeader,
  55. L1Cache,
  56. L2Cache,
  57. SE
  58. >,
  59. any,
  60. Responded
  61. >,
  62. "params"
  63. >
  64. : never;
  65. // Extract the return type of transform function that define in $$userConfigMap, if it not exists, use the default type.
  66. type ExtractUserDefinedTransformed<
  67. DefinitionKey extends keyof typeof apiDefinitions,
  68. Default,
  69. > = DefinitionKey extends keyof UserMethodConfigMap
  70. ? UserMethodConfigMap[DefinitionKey]["transform"] extends (
  71. ...args: any[]
  72. ) => any
  73. ? Awaited<ReturnType<UserMethodConfigMap[DefinitionKey]["transform"]>>
  74. : Default
  75. : Default;
  76. type Alova2Method<
  77. Responded,
  78. DefinitionKey extends keyof typeof apiDefinitions,
  79. CurrentConfig extends Alova2MethodConfig<any>,
  80. > =
  81. CollapsedAlova extends Alova<
  82. AlovaGenerics<
  83. any,
  84. any,
  85. infer RequestConfig,
  86. infer Response,
  87. infer ResponseHeader,
  88. infer L1Cache,
  89. infer L2Cache,
  90. infer SE
  91. >
  92. >
  93. ? Method<
  94. AlovaGenerics<
  95. CurrentConfig extends undefined
  96. ? ExtractUserDefinedTransformed<DefinitionKey, Responded>
  97. : CurrentConfig["transform"] extends (...args: any[]) => any
  98. ? Awaited<ReturnType<CurrentConfig["transform"]>>
  99. : ExtractUserDefinedTransformed<DefinitionKey, Responded>,
  100. any,
  101. RequestConfig,
  102. Response,
  103. ResponseHeader,
  104. L1Cache,
  105. L2Cache,
  106. SE
  107. >
  108. >
  109. : never;
  110. interface PaginationResponse<T> {
  111. orders: any[];
  112. pages: number;
  113. records: T;
  114. searchCount: boolean;
  115. size: number;
  116. total: number;
  117. current?: number; // 如果有当前页码
  118. }
  119. interface listData<T> {
  120. list: T[];
  121. }
  122. declare global {
  123. interface Apis {
  124. user: {
  125. loginUser<
  126. Config extends Alova2MethodConfig<any> & {
  127. params: {
  128. username: string;
  129. password: string;
  130. };
  131. },
  132. >(
  133. config: Config,
  134. ): Alova2Method<any, "user.loginUser", Config>;
  135. };
  136. sys: {
  137. staff<
  138. Config extends Alova2MethodConfig<{ records: sysStaff[] }> & {
  139. data: {
  140. page: number;
  141. pageSize: number;
  142. };
  143. },
  144. >(
  145. config: Config,
  146. ): Alova2Method<{ records: sysStaff[] }, "sys.staff", Config>;
  147. updateStatus<
  148. Config extends Alova2MethodConfig<any> & {
  149. data: { status: number; id: string };
  150. },
  151. >(
  152. config: Config,
  153. ): Alova2Method<any, "sys.updateStatus", Config>;
  154. userDel<
  155. Config extends Alova2MethodConfig<any> & {
  156. params: { id: string };
  157. },
  158. >(
  159. config: Config,
  160. ): Alova2Method<any, "sys.userDel", Config>;
  161. findByDeptTree<>(): Alova2Method<any, "sys.findByDeptTree", Config>;
  162. rolelist<>(): Alova2Method<any, "sys.rolelist", Config>;
  163. userAdd<
  164. Config extends Alova2MethodConfig<any> & {
  165. data: userAdd;
  166. },
  167. >(
  168. config: Config,
  169. ): Alova2Method<any, "sys.userAdd", Config>;
  170. queryById<
  171. Config extends Alova2MethodConfig<any> & {
  172. data: { id: string };
  173. },
  174. >(
  175. config: Config,
  176. ): Alova2Method<any, "sys.queryById", Config>;
  177. userEdit<
  178. Config extends Alova2MethodConfig<any> & {
  179. data: userAdd;
  180. },
  181. >(
  182. config: Config,
  183. ): Alova2Method<any, "sys.userEdit", Config>;
  184. getCurrentUserDeparts<
  185. Config extends Alova2MethodConfig<listData<deptart>> & {},
  186. >(
  187. config: Config,
  188. ): Alova2Method<listData<deptart>, "sys.getCurrentUserDeparts", Config>;
  189. };
  190. app: {
  191. appCategory<Config extends Alova2MethodConfig<any>>(): Alova2Method<
  192. any,
  193. "app.appCategory",
  194. Config
  195. >;
  196. /**
  197. * 拍照验课
  198. * @param config
  199. */
  200. getPageCourse<
  201. Config extends Alova2MethodConfig<
  202. PaginationResponse<GetPageCourseRes[]>
  203. > & {
  204. data: { pageNo: number; pageSize: number; orgCode: string };
  205. },
  206. >(
  207. config: Config,
  208. ): Alova2Method<
  209. PaginationResponse<GetPageCourseRes[]>,
  210. "app.getPageCourse",
  211. Config
  212. >;
  213. /**
  214. * 获取课程详情
  215. * @param config
  216. */
  217. getCourseInfo<
  218. Config extends Alova2MethodConfig<VerifyCourseInfoDTO[]> & {
  219. pathParams: { courseId };
  220. },
  221. >(
  222. config: Config,
  223. ): Alova2Method<VerifyCourseInfoDTO[], "app.getCourseInfo", Config>;
  224. /**
  225. * 查询补课补课表
  226. */
  227. queryMakeUpClassTable<
  228. Config extends Alova2MethodConfig<AppCoursesPriceRules> & {},
  229. >(
  230. config: Config,
  231. ): Alova2Method<
  232. AppCoursesPriceRules,
  233. "app.queryMakeUpClassTable",
  234. Config
  235. >;
  236. /**
  237. * 扫码核销详情
  238. * @param config
  239. */
  240. scanCodeQueryOrder<
  241. Config extends Alova2MethodConfig<ScanCodeQueryOrderVO> & {
  242. params: {
  243. orderId: string;
  244. };
  245. },
  246. >(
  247. config: Config,
  248. ): Alova2Method<ScanCodeQueryOrderVO, "app.scanCodeQueryOrder", Config>;
  249. /**
  250. * 确认核销
  251. * @param config
  252. */
  253. scanCodeVerification<
  254. Config extends Alova2MethodConfig<any> & {
  255. data: string[];
  256. },
  257. >(
  258. config: Config,
  259. ): Alova2Method<any, "app.scanCodeVerification", Config>;
  260. /**
  261. *
  262. * @param config
  263. * 评价管理
  264. */
  265. evaluateList<
  266. Config extends Alova2MethodConfig<PaginationResponse<Evaluate[]>> & {
  267. params: {
  268. pageNo: number;
  269. pageSize: number;
  270. };
  271. },
  272. >(
  273. config: Config,
  274. ): Alova2Method<
  275. PaginationResponse<Evaluate[]>,
  276. "app.evaluateList",
  277. Config
  278. >;
  279. evaluateEdit<
  280. Config extends Alova2MethodConfig<any> & {
  281. data: Evaluate;
  282. },
  283. >(
  284. config: Config,
  285. ): Alova2Method<any, "app.evaluateEdit", Config>;
  286. /**
  287. * 补课课表详情
  288. * @param config
  289. */
  290. queryListByCoursesId<
  291. Config extends Alova2MethodConfig<webMakeClass[]> & {
  292. params: {
  293. coursesType: number;
  294. id: string;
  295. };
  296. },
  297. >(
  298. config: Config,
  299. ): Alova2Method<webMakeClass[], "app.queryListByCoursesId", Config>;
  300. editPriceRules<
  301. Config extends Alova2MethodConfig<any> & {
  302. data: webMakeClass[];
  303. },
  304. >(
  305. config: Config,
  306. ): Alova2Method<any, "app.editPriceRules", Config>;
  307. /**
  308. * 消息通知
  309. * @param config
  310. */
  311. getMsg<Config extends Alova2MethodConfig<sysMsg[]> & {}>(
  312. config: Config,
  313. ): Alova2Method<sysMsg[], "app.getMsg", Config>;
  314. getMsgInfo<
  315. Config extends Alova2MethodConfig<sysMsg> & {
  316. params: {
  317. id: string;
  318. };
  319. },
  320. >(
  321. config: Config,
  322. ): Alova2Method<sysMsg, "app.getMsgInfo", Config>;
  323. queryKongfuZone<Config extends Alova2MethodConfig<sysRole[]> & {}>(
  324. config: Config,
  325. ): Alova2Method<sysRole[], "app.queryKongfuZone", Config>;
  326. };
  327. }
  328. var Apis: Apis;
  329. }
  330. export interface sysMsg {
  331. id: string;
  332. titile: string;
  333. imgUrl: string;
  334. sender: string;
  335. sendTime: string;
  336. msgContent: string;
  337. }
  338. export interface sysRole {
  339. id: string;
  340. name: string;
  341. iconUrl: null;
  342. route: string;
  343. orderNumber: number;
  344. izShow: string;
  345. delFlag: number;
  346. roleCode: string;
  347. }
  348. export interface sysStaff {
  349. id: string;
  350. username: string;
  351. realname: string;
  352. status: 0;
  353. departName: string;
  354. createTime: string;
  355. }
  356. export interface userAdd {
  357. id: string;
  358. username: string;
  359. backgroundImg: string;
  360. realname: string;
  361. status: string;
  362. password: string;
  363. selectedroles: string;
  364. selecteddeparts: string;
  365. orgCode: string;
  366. trainingPrograms: string;
  367. teachingPhilosophy: string;
  368. excelMsg: string;
  369. certificateInnocence: string;
  370. healthy: string;
  371. honor: string;
  372. }
  373. export interface GetPageCourseRes {
  374. /**
  375. * 课程ID
  376. */
  377. appCourseId?: string;
  378. /**
  379. * 课时数
  380. */
  381. classNum?: number;
  382. /**
  383. * 封面
  384. */
  385. cover?: string;
  386. /**
  387. * 结束时间
  388. */
  389. endTime?: string;
  390. /**
  391. * 产品名称
  392. */
  393. name?: string;
  394. /**
  395. * 上课地址
  396. */
  397. siteAddress?: string;
  398. /**
  399. * 开始时间
  400. */
  401. startTime?: string;
  402. /**
  403. * 教练id(关联用户表)
  404. */
  405. userId?: string;
  406. [property: string]: any;
  407. }
  408. export interface deptart {
  409. address?: string;
  410. createBy?: string;
  411. createTime?: string;
  412. delFlag?: string;
  413. departName?: string;
  414. departNameAbbr?: string;
  415. departNameEn?: string;
  416. departOrder?: number;
  417. description?: string;
  418. dingIdentifier?: string;
  419. directorUserIds?: string;
  420. fax?: string;
  421. id: string;
  422. izLeaf?: number;
  423. memo?: string;
  424. mobile?: string;
  425. oldDirectorUserIds?: string;
  426. orgCategory?: string;
  427. orgCode: string;
  428. orgType?: string;
  429. parentId?: string;
  430. qywxIdentifier?: string;
  431. status: string;
  432. tenantId?: number;
  433. }
  434. export interface VerifyCourseInfoDTO {
  435. coursesId?: string;
  436. /**
  437. * 课程类型(0-正常 1-补课)
  438. */
  439. coursesType?: number;
  440. /**
  441. * 结束时间
  442. */
  443. endTime?: string;
  444. /**
  445. * id
  446. */
  447. id?: string;
  448. /**
  449. * 名称
  450. */
  451. name?: string;
  452. /**
  453. * 是否今日
  454. */
  455. orToday?: boolean;
  456. /**
  457. * 延课人数
  458. */
  459. postponeNum?: number;
  460. /**
  461. * 开始时间
  462. */
  463. startTime?: string;
  464. /**
  465. * 上课人数
  466. */
  467. totalNum?: number;
  468. /**
  469. * 未核销人数
  470. */
  471. unwrittenOffNum?: number;
  472. /**
  473. * 已核销人数
  474. */
  475. writtenOffNum?: number;
  476. /**
  477. * 是否完成
  478. */
  479. orDone: boolean;
  480. }
  481. /**
  482. * 课程补课课表
  483. */
  484. export interface AppCoursesPriceRules {
  485. /**
  486. * 课时状态
  487. * 课时状态(0-正常 1-延期)
  488. */
  489. classStatus?: number;
  490. /**
  491. * 课程id
  492. */
  493. coursesId?: string;
  494. /**
  495. * 结束时间
  496. * 课程类型(0-正常 1-补课)
  497. */
  498. coursesType?: number;
  499. /**
  500. * 创建人;创建人
  501. */
  502. createBy?: string;
  503. /**
  504. * 创建时间;创建时间
  505. */
  506. createTime?: string;
  507. /**
  508. * 删除标志;删除状态(0-正常,1-已删除)
  509. */
  510. delFlag?: number;
  511. /**
  512. * 结束时间
  513. */
  514. endTime?: string;
  515. /**
  516. * id
  517. */
  518. id?: string;
  519. /**
  520. * 名称
  521. */
  522. name?: string;
  523. /**
  524. * 部门id
  525. */
  526. orgCode?: string;
  527. /**
  528. * 乐观锁
  529. */
  530. revision?: number;
  531. /**
  532. * 排序
  533. */
  534. sort?: number;
  535. /**
  536. * 开始时间
  537. */
  538. startTime?: string;
  539. /**
  540. * 系统状态;状态(0-正常,1-冻结)
  541. */
  542. status?: number;
  543. /**
  544. * 租户id
  545. */
  546. tenantId?: string;
  547. /**
  548. * 更新人;更新人
  549. */
  550. updateBy?: string;
  551. /**
  552. * 更新时间;更新时间
  553. */
  554. updateTime?: string;
  555. [property: string]: any;
  556. }
  557. /**
  558. * 扫码核销
  559. */
  560. export interface ScanCodeQueryOrderVO {
  561. /**
  562. * 商品数量
  563. */
  564. amount?: number;
  565. /**
  566. * 子订单信息
  567. */
  568. appOrderProInfoVerifyVOS?: AppOrderProInfoVerifyVO[];
  569. /**
  570. * 比赛类型 0-个人 1-团队
  571. */
  572. gameType?: number;
  573. /**
  574. * 商品价格
  575. */
  576. price?: number;
  577. /**
  578. * 商品图片
  579. */
  580. productImage?: string;
  581. /**
  582. * 商品名称
  583. */
  584. productName?: string;
  585. /**
  586. * 场馆
  587. */
  588. siteName?: string;
  589. [property: string]: any;
  590. }
  591. /**
  592. * org.jeecg.modules.app.vo.AppOrderProInfoVerifyVO
  593. *
  594. * AppOrderProInfoVerifyVO
  595. */
  596. export interface AppOrderProInfoVerifyVO {
  597. /**
  598. * 子订单商品
  599. */
  600. appOrderProInfo: AppOrderProInfo;
  601. /**
  602. * 券ID
  603. */
  604. isinId?: string;
  605. /**
  606. * 券状态 1、待使用 2、已使用 3、已失效
  607. */
  608. isinStatus?: number;
  609. [property: string]: any;
  610. }
  611. /**
  612. * 子订单商品
  613. *
  614. * AppOrderProInfo
  615. */
  616. export interface AppOrderProInfo {
  617. /**
  618. * 地点
  619. */
  620. address?: string;
  621. /**
  622. * 售后状态
  623. */
  624. afterSaleStatus?: number;
  625. /**
  626. * 创建人;创建人
  627. */
  628. createBy?: string;
  629. /**
  630. * 创建时间;创建时间
  631. */
  632. createTime?: string;
  633. /**
  634. * 删除标志;删除状态(0-正常,1-已删除)
  635. */
  636. delFlag?: number;
  637. /**
  638. * 使用人ID
  639. */
  640. familyUserId?: string;
  641. /**
  642. * 时间段
  643. */
  644. frameTimeStr?: string;
  645. /**
  646. * 比赛日期
  647. */
  648. gameTimeStr?: string;
  649. /**
  650. * id
  651. */
  652. id?: string;
  653. /**
  654. * 订单id
  655. * 订单编号
  656. */
  657. orderCode?: string;
  658. /**
  659. * 订单id
  660. */
  661. orderId?: string;
  662. /**
  663. * 订单状态
  664. */
  665. orderStatus?: number;
  666. /**
  667. * 是否免费试听课(0-否 1-是)
  668. */
  669. orFreePro?: number;
  670. /**
  671. * 原价/元
  672. */
  673. originalPrice?: number;
  674. /**
  675. * 实际价格/元
  676. */
  677. price?: number;
  678. /**
  679. * 产品id;场地/赛事/课程
  680. */
  681. productId?: string;
  682. /**
  683. * 商品图片
  684. */
  685. productImage?: string;
  686. /**
  687. * 商品名称
  688. */
  689. productName?: string;
  690. /**
  691. * 数量
  692. */
  693. quantity?: number;
  694. /**
  695. * 系统状态;状态(0-正常,1-冻结)
  696. */
  697. status?: number;
  698. /**
  699. * 券号
  700. */
  701. ticketNo?: string;
  702. /**
  703. * 商品类型(1-学校 2-包场 3-无固定场 4-个人赛 5-团队赛 6-课程 7-保险)
  704. */
  705. type?: number;
  706. /**
  707. * 更新人;更新人
  708. */
  709. updateBy?: string;
  710. /**
  711. * 更新时间;更新时间
  712. */
  713. updateTime?: string;
  714. /**
  715. * 日期
  716. */
  717. useDateStr?: string;
  718. /**
  719. * 使用人
  720. */
  721. userName?: string;
  722. /**
  723. * 手机号
  724. */
  725. userPhone?: string;
  726. [property: string]: any;
  727. }
  728. export interface Evaluate {
  729. id: string;
  730. /**
  731. * 部门编码
  732. */
  733. orgCode: string;
  734. /** 发布单位名称
  735. *
  736. */
  737. departName: string;
  738. /**
  739. * 场地/地点
  740. */
  741. address: string;
  742. /**
  743. * 用户
  744. */
  745. username: string;
  746. /**
  747. * 用户手机号
  748. */
  749. phone: string;
  750. /**
  751. * 头像
  752. */
  753. avatar: string;
  754. /**
  755. * 评分
  756. */
  757. score: number;
  758. /**
  759. * 评价内容
  760. */
  761. evaluateContent: string;
  762. /**
  763. * 图片
  764. */
  765. images: string;
  766. /**
  767. * 审核状态;0待审核 1审核通过 2审核不通过
  768. */
  769. checkStatus: number;
  770. /**
  771. * 回复状态 0-未回复 1-已回复
  772. */
  773. replyStatus: number;
  774. /**
  775. * 回复内容
  776. */
  777. replyContent: string;
  778. /**
  779. * 回复时间
  780. */
  781. replyTime: string;
  782. /**
  783. * 业务类型;0场地 1课程
  784. */
  785. type: number;
  786. createTime: string;
  787. updateTime: string;
  788. /** 图片列表集合
  789. *
  790. */
  791. imageList: string[];
  792. isAnonymous: number;
  793. }
  794. export interface webMakeClass {
  795. id?: string;
  796. coursesId: string;
  797. name: string;
  798. startTime: string;
  799. endTime: string;
  800. }