123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815 |
- /* tslint:disable */
- /* eslint-disable */
- /**
- * Swagger Petstore - OpenAPI 3.0 - version 1.0.27
- *
- * This is a sample Pet Store Server based on the OpenAPI 3.0 specification. You can find out more about
- Swagger at [https://swagger.io](https://swagger.io). In the third iteration of the pet store, we've switched to the design first approach!
- You can now help us improve the API whether it's by making changes to the definition itself or to the code.
- That way, with time, we can improve the API in general, and expose some of the new features in OAS3.
- Some useful links:
- - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore)
- - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml)
- *
- * OpenAPI version: 3.0.4
- *
- * Contact:
- *
- * NOTE: This file is auto generated by the alova's vscode plugin.
- *
- * https://alova.js.org/devtools/vscode
- *
- * **Do not edit the file manually.**
- */
- import type {
- Alova,
- AlovaMethodCreateConfig,
- AlovaGenerics,
- Method,
- } from "alova";
- import type { $$userConfigMap, alovaInstance } from ".";
- import type apiDefinitions from "./apiDefinitions";
- type CollapsedAlova = typeof alovaInstance;
- type UserMethodConfigMap = typeof $$userConfigMap;
- type Alova2MethodConfig<Responded> =
- CollapsedAlova extends Alova<
- AlovaGenerics<
- any,
- any,
- infer RequestConfig,
- infer Response,
- infer ResponseHeader,
- infer L1Cache,
- infer L2Cache,
- infer SE
- >
- >
- ? Omit<
- AlovaMethodCreateConfig<
- AlovaGenerics<
- Responded,
- any,
- RequestConfig,
- Response,
- ResponseHeader,
- L1Cache,
- L2Cache,
- SE
- >,
- any,
- Responded
- >,
- "params"
- >
- : never;
- // Extract the return type of transform function that define in $$userConfigMap, if it not exists, use the default type.
- type ExtractUserDefinedTransformed<
- DefinitionKey extends keyof typeof apiDefinitions,
- Default,
- > = DefinitionKey extends keyof UserMethodConfigMap
- ? UserMethodConfigMap[DefinitionKey]["transform"] extends (
- ...args: any[]
- ) => any
- ? Awaited<ReturnType<UserMethodConfigMap[DefinitionKey]["transform"]>>
- : Default
- : Default;
- type Alova2Method<
- Responded,
- DefinitionKey extends keyof typeof apiDefinitions,
- CurrentConfig extends Alova2MethodConfig<any>,
- > =
- CollapsedAlova extends Alova<
- AlovaGenerics<
- any,
- any,
- infer RequestConfig,
- infer Response,
- infer ResponseHeader,
- infer L1Cache,
- infer L2Cache,
- infer SE
- >
- >
- ? Method<
- AlovaGenerics<
- CurrentConfig extends undefined
- ? ExtractUserDefinedTransformed<DefinitionKey, Responded>
- : CurrentConfig["transform"] extends (...args: any[]) => any
- ? Awaited<ReturnType<CurrentConfig["transform"]>>
- : ExtractUserDefinedTransformed<DefinitionKey, Responded>,
- any,
- RequestConfig,
- Response,
- ResponseHeader,
- L1Cache,
- L2Cache,
- SE
- >
- >
- : never;
- interface PaginationResponse<T> {
- orders: any[];
- pages: number;
- records: T;
- searchCount: boolean;
- size: number;
- total: number;
- current?: number; // 如果有当前页码
- }
- interface listData<T> {
- list: T[];
- }
- declare global {
- interface Apis {
- user: {
- loginUser<
- Config extends Alova2MethodConfig<any> & {
- params: {
- username: string;
- password: string;
- };
- },
- >(
- config: Config,
- ): Alova2Method<any, "user.loginUser", Config>;
- };
- sys: {
- staff<
- Config extends Alova2MethodConfig<{ records: sysStaff[] }> & {
- data: {
- page: number;
- pageSize: number;
- };
- },
- >(
- config: Config,
- ): Alova2Method<{ records: sysStaff[] }, "sys.staff", Config>;
- updateStatus<
- Config extends Alova2MethodConfig<any> & {
- data: { status: number; id: string };
- },
- >(
- config: Config,
- ): Alova2Method<any, "sys.updateStatus", Config>;
- userDel<
- Config extends Alova2MethodConfig<any> & {
- params: { id: string };
- },
- >(
- config: Config,
- ): Alova2Method<any, "sys.userDel", Config>;
- findByDeptTree<>(): Alova2Method<any, "sys.findByDeptTree", Config>;
- rolelist<>(): Alova2Method<any, "sys.rolelist", Config>;
- userAdd<
- Config extends Alova2MethodConfig<any> & {
- data: userAdd;
- },
- >(
- config: Config,
- ): Alova2Method<any, "sys.userAdd", Config>;
- queryById<
- Config extends Alova2MethodConfig<any> & {
- data: { id: string };
- },
- >(
- config: Config,
- ): Alova2Method<any, "sys.queryById", Config>;
- userEdit<
- Config extends Alova2MethodConfig<any> & {
- data: userAdd;
- },
- >(
- config: Config,
- ): Alova2Method<any, "sys.userEdit", Config>;
- getCurrentUserDeparts<
- Config extends Alova2MethodConfig<listData<deptart>> & {},
- >(
- config: Config,
- ): Alova2Method<listData<deptart>, "sys.getCurrentUserDeparts", Config>;
- };
- app: {
- appCategory<Config extends Alova2MethodConfig<any>>(): Alova2Method<
- any,
- "app.appCategory",
- Config
- >;
- /**
- * 拍照验课
- * @param config
- */
- getPageCourse<
- Config extends Alova2MethodConfig<
- PaginationResponse<GetPageCourseRes[]>
- > & {
- data: { pageNo: number; pageSize: number; orgCode: string };
- },
- >(
- config: Config,
- ): Alova2Method<
- PaginationResponse<GetPageCourseRes[]>,
- "app.getPageCourse",
- Config
- >;
- /**
- * 获取课程详情
- * @param config
- */
- getCourseInfo<
- Config extends Alova2MethodConfig<VerifyCourseInfoDTO[]> & {
- pathParams: { courseId };
- },
- >(
- config: Config,
- ): Alova2Method<VerifyCourseInfoDTO[], "app.getCourseInfo", Config>;
- /**
- * 查询补课补课表
- */
- queryMakeUpClassTable<
- Config extends Alova2MethodConfig<AppCoursesPriceRules> & {},
- >(
- config: Config,
- ): Alova2Method<
- AppCoursesPriceRules,
- "app.queryMakeUpClassTable",
- Config
- >;
- /**
- * 扫码核销详情
- * @param config
- */
- scanCodeQueryOrder<
- Config extends Alova2MethodConfig<ScanCodeQueryOrderVO> & {
- params: {
- orderId: string;
- };
- },
- >(
- config: Config,
- ): Alova2Method<ScanCodeQueryOrderVO, "app.scanCodeQueryOrder", Config>;
- /**
- * 确认核销
- * @param config
- */
- scanCodeVerification<
- Config extends Alova2MethodConfig<any> & {
- data: string[];
- },
- >(
- config: Config,
- ): Alova2Method<any, "app.scanCodeVerification", Config>;
- /**
- *
- * @param config
- * 评价管理
- */
- evaluateList<
- Config extends Alova2MethodConfig<PaginationResponse<Evaluate[]>> & {
- params: {
- pageNo: number;
- pageSize: number;
- };
- },
- >(
- config: Config,
- ): Alova2Method<
- PaginationResponse<Evaluate[]>,
- "app.evaluateList",
- Config
- >;
- evaluateEdit<
- Config extends Alova2MethodConfig<any> & {
- data: Evaluate;
- },
- >(
- config: Config,
- ): Alova2Method<any, "app.evaluateEdit", Config>;
- /**
- * 补课课表详情
- * @param config
- */
- queryListByCoursesId<
- Config extends Alova2MethodConfig<webMakeClass[]> & {
- params: {
- coursesType: number;
- id: string;
- };
- },
- >(
- config: Config,
- ): Alova2Method<webMakeClass[], "app.queryListByCoursesId", Config>;
- editPriceRules<
- Config extends Alova2MethodConfig<any> & {
- data: webMakeClass[];
- },
- >(
- config: Config,
- ): Alova2Method<any, "app.editPriceRules", Config>;
- /**
- * 消息通知
- * @param config
- */
- getMsg<Config extends Alova2MethodConfig<sysMsg[]> & {}>(
- config: Config,
- ): Alova2Method<sysMsg[], "app.getMsg", Config>;
- getMsgInfo<
- Config extends Alova2MethodConfig<sysMsg> & {
- params: {
- id: string;
- };
- },
- >(
- config: Config,
- ): Alova2Method<sysMsg, "app.getMsgInfo", Config>;
- queryKongfuZone<Config extends Alova2MethodConfig<sysRole[]> & {}>(
- config: Config,
- ): Alova2Method<sysRole[], "app.queryKongfuZone", Config>;
- };
- }
- var Apis: Apis;
- }
- export interface sysMsg {
- id: string;
- titile: string;
- imgUrl: string;
- sender: string;
- sendTime: string;
- msgContent: string;
- }
- export interface sysRole {
- id: string;
- name: string;
- iconUrl: null;
- route: string;
- orderNumber: number;
- izShow: string;
- delFlag: number;
- roleCode: string;
- }
- export interface sysStaff {
- id: string;
- username: string;
- realname: string;
- status: 0;
- departName: string;
- createTime: string;
- }
- export interface userAdd {
- id: string;
- username: string;
- backgroundImg: string;
- realname: string;
- status: string;
- password: string;
- selectedroles: string;
- selecteddeparts: string;
- orgCode: string;
- trainingPrograms: string;
- teachingPhilosophy: string;
- excelMsg: string;
- certificateInnocence: string;
- healthy: string;
- honor: string;
- }
- export interface GetPageCourseRes {
- /**
- * 课程ID
- */
- appCourseId?: string;
- /**
- * 课时数
- */
- classNum?: number;
- /**
- * 封面
- */
- cover?: string;
- /**
- * 结束时间
- */
- endTime?: string;
- /**
- * 产品名称
- */
- name?: string;
- /**
- * 上课地址
- */
- siteAddress?: string;
- /**
- * 开始时间
- */
- startTime?: string;
- /**
- * 教练id(关联用户表)
- */
- userId?: string;
- [property: string]: any;
- }
- export interface deptart {
- address?: string;
- createBy?: string;
- createTime?: string;
- delFlag?: string;
- departName?: string;
- departNameAbbr?: string;
- departNameEn?: string;
- departOrder?: number;
- description?: string;
- dingIdentifier?: string;
- directorUserIds?: string;
- fax?: string;
- id: string;
- izLeaf?: number;
- memo?: string;
- mobile?: string;
- oldDirectorUserIds?: string;
- orgCategory?: string;
- orgCode: string;
- orgType?: string;
- parentId?: string;
- qywxIdentifier?: string;
- status: string;
- tenantId?: number;
- }
- export interface VerifyCourseInfoDTO {
- coursesId?: string;
- /**
- * 课程类型(0-正常 1-补课)
- */
- coursesType?: number;
- /**
- * 结束时间
- */
- endTime?: string;
- /**
- * id
- */
- id?: string;
- /**
- * 名称
- */
- name?: string;
- /**
- * 是否今日
- */
- orToday?: boolean;
- /**
- * 延课人数
- */
- postponeNum?: number;
- /**
- * 开始时间
- */
- startTime?: string;
- /**
- * 上课人数
- */
- totalNum?: number;
- /**
- * 未核销人数
- */
- unwrittenOffNum?: number;
- /**
- * 已核销人数
- */
- writtenOffNum?: number;
- /**
- * 是否完成
- */
- orDone: boolean;
- }
- /**
- * 课程补课课表
- */
- export interface AppCoursesPriceRules {
- /**
- * 课时状态
- * 课时状态(0-正常 1-延期)
- */
- classStatus?: number;
- /**
- * 课程id
- */
- coursesId?: string;
- /**
- * 结束时间
- * 课程类型(0-正常 1-补课)
- */
- coursesType?: number;
- /**
- * 创建人;创建人
- */
- createBy?: string;
- /**
- * 创建时间;创建时间
- */
- createTime?: string;
- /**
- * 删除标志;删除状态(0-正常,1-已删除)
- */
- delFlag?: number;
- /**
- * 结束时间
- */
- endTime?: string;
- /**
- * id
- */
- id?: string;
- /**
- * 名称
- */
- name?: string;
- /**
- * 部门id
- */
- orgCode?: string;
- /**
- * 乐观锁
- */
- revision?: number;
- /**
- * 排序
- */
- sort?: number;
- /**
- * 开始时间
- */
- startTime?: string;
- /**
- * 系统状态;状态(0-正常,1-冻结)
- */
- status?: number;
- /**
- * 租户id
- */
- tenantId?: string;
- /**
- * 更新人;更新人
- */
- updateBy?: string;
- /**
- * 更新时间;更新时间
- */
- updateTime?: string;
- [property: string]: any;
- }
- /**
- * 扫码核销
- */
- export interface ScanCodeQueryOrderVO {
- /**
- * 商品数量
- */
- amount?: number;
- /**
- * 子订单信息
- */
- appOrderProInfoVerifyVOS?: AppOrderProInfoVerifyVO[];
- /**
- * 比赛类型 0-个人 1-团队
- */
- gameType?: number;
- /**
- * 商品价格
- */
- price?: number;
- /**
- * 商品图片
- */
- productImage?: string;
- /**
- * 商品名称
- */
- productName?: string;
- /**
- * 场馆
- */
- siteName?: string;
- [property: string]: any;
- }
- /**
- * org.jeecg.modules.app.vo.AppOrderProInfoVerifyVO
- *
- * AppOrderProInfoVerifyVO
- */
- export interface AppOrderProInfoVerifyVO {
- /**
- * 子订单商品
- */
- appOrderProInfo: AppOrderProInfo;
- /**
- * 券ID
- */
- isinId?: string;
- /**
- * 券状态 1、待使用 2、已使用 3、已失效
- */
- isinStatus?: number;
- [property: string]: any;
- }
- /**
- * 子订单商品
- *
- * AppOrderProInfo
- */
- export interface AppOrderProInfo {
- /**
- * 地点
- */
- address?: string;
- /**
- * 售后状态
- */
- afterSaleStatus?: number;
- /**
- * 创建人;创建人
- */
- createBy?: string;
- /**
- * 创建时间;创建时间
- */
- createTime?: string;
- /**
- * 删除标志;删除状态(0-正常,1-已删除)
- */
- delFlag?: number;
- /**
- * 使用人ID
- */
- familyUserId?: string;
- /**
- * 时间段
- */
- frameTimeStr?: string;
- /**
- * 比赛日期
- */
- gameTimeStr?: string;
- /**
- * id
- */
- id?: string;
- /**
- * 订单id
- * 订单编号
- */
- orderCode?: string;
- /**
- * 订单id
- */
- orderId?: string;
- /**
- * 订单状态
- */
- orderStatus?: number;
- /**
- * 是否免费试听课(0-否 1-是)
- */
- orFreePro?: number;
- /**
- * 原价/元
- */
- originalPrice?: number;
- /**
- * 实际价格/元
- */
- price?: number;
- /**
- * 产品id;场地/赛事/课程
- */
- productId?: string;
- /**
- * 商品图片
- */
- productImage?: string;
- /**
- * 商品名称
- */
- productName?: string;
- /**
- * 数量
- */
- quantity?: number;
- /**
- * 系统状态;状态(0-正常,1-冻结)
- */
- status?: number;
- /**
- * 券号
- */
- ticketNo?: string;
- /**
- * 商品类型(1-学校 2-包场 3-无固定场 4-个人赛 5-团队赛 6-课程 7-保险)
- */
- type?: number;
- /**
- * 更新人;更新人
- */
- updateBy?: string;
- /**
- * 更新时间;更新时间
- */
- updateTime?: string;
- /**
- * 日期
- */
- useDateStr?: string;
- /**
- * 使用人
- */
- userName?: string;
- /**
- * 手机号
- */
- userPhone?: string;
- [property: string]: any;
- }
- export interface Evaluate {
- id: string;
- /**
- * 部门编码
- */
- orgCode: string;
- /** 发布单位名称
- *
- */
- departName: string;
- /**
- * 场地/地点
- */
- address: string;
- /**
- * 用户
- */
- username: string;
- /**
- * 用户手机号
- */
- phone: string;
- /**
- * 头像
- */
- avatar: string;
- /**
- * 评分
- */
- score: number;
- /**
- * 评价内容
- */
- evaluateContent: string;
- /**
- * 图片
- */
- images: string;
- /**
- * 审核状态;0待审核 1审核通过 2审核不通过
- */
- checkStatus: number;
- /**
- * 回复状态 0-未回复 1-已回复
- */
- replyStatus: number;
- /**
- * 回复内容
- */
- replyContent: string;
- /**
- * 回复时间
- */
- replyTime: string;
- /**
- * 业务类型;0场地 1课程
- */
- type: number;
- createTime: string;
- updateTime: string;
- /** 图片列表集合
- *
- */
- imageList: string[];
- isAnonymous: number;
- }
- export interface webMakeClass {
- id?: string;
- coursesId: string;
- name: string;
- startTime: string;
- endTime: string;
- }
|