makePhoneCall.ts 334 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
import { ApiProtocol } from '../type'

export const MakePhoneCallProtocol: ApiProtocol = {
  phoneNumber: {
    type: String,
    required: true,
    validator(phoneNumber: string) {
      if (!phoneNumber) {
        return 'makePhoneCall:fail parameter error: parameter.phoneNumber should not be empty String;'
      }
    },
  },
}