Fork自 DCloud / uni-app
体验新版 GitCode,发现更多精彩内容 >>
import { ApiProtocol } from '../type'
export const API_MAKE_PHONE_CALL = 'makePhoneCall'
export const MakePhoneCallProtocol: ApiProtocol = { phoneNumber: { type: String, required: true, validator(phoneNumber: string) { if (!phoneNumber) {
return 'parameter error: parameter.phoneNumber should not be empty String;'
} }, }, }