UNPKG

dqm-api-client

Version:

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

20 lines (16 loc) 439 B
const ApiService = require('./ApiService'); class SmsService extends ApiService { constructor(openid) { super(openid); } /** * 发送短信验证码 * @param {string} tel - 手机号 * @param {string} action - 业务类型,如 'login' * @returns {Promise<Object>} 发送结果 */ async sendSmsCode(tel, action = 'login') { return await super.sendSmsCode(tel, action); } } module.exports = SmsService;