UNPKG

dqm-api-client

Version:

A Node.js client library for court booking API services including authentication, SMS verification, and court management

29 lines (24 loc) 916 B
export as namespace DqmApiClient; export class ApiService { constructor(openid: string); baseURL: string; org: string; token: string; memberId: string; openid: string; isAuthenticated: boolean; getMemberInfo(): Promise<any>; login(tel: string, smsCode: string): Promise<any>; sendSmsCode(tel: string, action?: string): Promise<any>; getCourtByDate(orderDateNum: number): Promise<any>; createOrder(orderDate: number, orderArr: any[], smscode?: string): Promise<any>; } export class CourtService extends ApiService { constructor(openid: string); getCourt(dateStr: string, courtNos: string[], startHour: number, endHour: number): Promise<any>; bookCourt(dateStr: string, courts: string[], time: [number, number], smscode?: string): Promise<any>; } export class SmsService extends ApiService { constructor(openid: string); sendSmsCode(tel: string, action?: string): Promise<any>; }