/* 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 = 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> : Default : Default; type Alova2Method< Responded, DefinitionKey extends keyof typeof apiDefinitions, CurrentConfig extends Alova2MethodConfig, > = CollapsedAlova extends Alova< AlovaGenerics< any, any, infer RequestConfig, infer Response, infer ResponseHeader, infer L1Cache, infer L2Cache, infer SE > > ? Method< AlovaGenerics< CurrentConfig extends undefined ? ExtractUserDefinedTransformed : CurrentConfig["transform"] extends (...args: any[]) => any ? Awaited> : ExtractUserDefinedTransformed, any, RequestConfig, Response, ResponseHeader, L1Cache, L2Cache, SE > > : never; interface PaginationResponse { orders: any[]; pages: number; records: T; searchCount: boolean; size: number; total: number; current?: number; // 如果有当前页码 } interface listData { list: T[]; } declare global { interface Apis { user: { loginUser< Config extends Alova2MethodConfig & { params: { username: string; password: string; }; }, >( config: Config, ): Alova2Method; }; sys: { staff< Config extends Alova2MethodConfig<{ records: sysStaff[] }> & { data: { page: number; pageSize: number; }; }, >( config: Config, ): Alova2Method<{ records: sysStaff[] }, "sys.staff", Config>; updateStatus< Config extends Alova2MethodConfig & { data: { status: number; id: string }; }, >( config: Config, ): Alova2Method; userDel< Config extends Alova2MethodConfig & { params: { id: string }; }, >( config: Config, ): Alova2Method; findByDeptTree<>(): Alova2Method; rolelist<>(): Alova2Method; userAdd< Config extends Alova2MethodConfig & { data: userAdd; }, >( config: Config, ): Alova2Method; queryById< Config extends Alova2MethodConfig & { data: { id: string }; }, >( config: Config, ): Alova2Method; userEdit< Config extends Alova2MethodConfig & { data: userAdd; }, >( config: Config, ): Alova2Method; getCurrentUserDeparts< Config extends Alova2MethodConfig> & {}, >( config: Config, ): Alova2Method, "sys.getCurrentUserDeparts", Config>; }; app: { appCategory>(): Alova2Method< any, "app.appCategory", Config >; /** * 拍照验课 * @param config */ getPageCourse< Config extends Alova2MethodConfig< PaginationResponse > & { data: { pageNo: number; pageSize: number; orgCode: string }; }, >( config: Config, ): Alova2Method< PaginationResponse, "app.getPageCourse", Config >; /** * 获取课程详情 * @param config */ getCourseInfo< Config extends Alova2MethodConfig & { pathParams: { courseId }; }, >( config: Config, ): Alova2Method; /** * 查询补课补课表 */ queryMakeUpClassTable< Config extends Alova2MethodConfig & {}, >( config: Config, ): Alova2Method< AppCoursesPriceRules, "app.queryMakeUpClassTable", Config >; /** * 扫码核销详情 * @param config */ scanCodeQueryOrder< Config extends Alova2MethodConfig & { params: { orderId: string; }; }, >( config: Config, ): Alova2Method; /** * 确认核销 * @param config */ scanCodeVerification< Config extends Alova2MethodConfig & { data: string[]; }, >( config: Config, ): Alova2Method; /** * * @param config * 评价管理 */ evaluateList< Config extends Alova2MethodConfig> & { params: { pageNo: number; pageSize: number; }; }, >( config: Config, ): Alova2Method< PaginationResponse, "app.evaluateList", Config >; evaluateEdit< Config extends Alova2MethodConfig & { data: Evaluate; }, >( config: Config, ): Alova2Method; /** * 补课课表详情 * @param config */ queryListByCoursesId< Config extends Alova2MethodConfig & { params: { coursesType: number; id: string; }; }, >( config: Config, ): Alova2Method; editPriceRules< Config extends Alova2MethodConfig & { data: webMakeClass[]; }, >( config: Config, ): Alova2Method; /** * 消息通知 * @param config */ getMsg & {}>( config: Config, ): Alova2Method; getMsgInfo< Config extends Alova2MethodConfig & { params: { id: string; }; }, >( config: Config, ): Alova2Method; queryKongfuZone & {}>( config: Config, ): Alova2Method; }; } 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; }