70 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
			
		
		
	
	
			70 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			TypeScript
		
	
	
	
| // Code generated by protoc-gen-typescript-http. DO NOT EDIT.
 | |
| /* eslint-disable camelcase */
 | |
| // @ts-nocheck
 | |
| 
 | |
| /** sms module */ 
 | |
| export type SendMailRequest = {
 | |
|   provider?: string;
 | |
|   templateKey?: string;
 | |
|   to?: string;
 | |
|   /** 验证码相关 */ 
 | |
|   paramters?: { [key: string]: string };
 | |
| };
 | |
| 
 | |
| export type SendMailReply = {
 | |
|   data?: string;
 | |
| };
 | |
| 
 | |
| /** Mail method */ 
 | |
| export interface Mail {
 | |
| }
 | |
| 
 | |
| type RequestType = {
 | |
|   path: string;
 | |
|   method: string;
 | |
|   body: string | null;
 | |
| };
 | |
| 
 | |
| type RequestHandler = (request: RequestType, meta: { service: string, method: string }) => Promise<unknown>;
 | |
| 
 | |
| export function createMailClient(
 | |
|   handler: RequestHandler
 | |
| ): Mail {
 | |
|   return {
 | |
|   };
 | |
| }
 | |
| /** sms module */ 
 | |
| export type SmsSendRequest = {
 | |
|   provider?: string;
 | |
|   /** 必传项 */ 
 | |
|   signName?: string;
 | |
|   /** 必传项 */ 
 | |
|   templateCode?: string;
 | |
|   /** 必传项 */ 
 | |
|   phone?: string;
 | |
|   /** 验证码相关 */ 
 | |
|   paramters?: { [key: string]: string };
 | |
| };
 | |
| 
 | |
| export type SmsReply = {
 | |
|   reply?: string;
 | |
| };
 | |
| 
 | |
| export type SmsVerifyRequest = {
 | |
|   phone?: string;
 | |
|   code?: string;
 | |
| };
 | |
| 
 | |
| /** sms method */ 
 | |
| export interface Sms {
 | |
| }
 | |
| 
 | |
| export function createSmsClient(
 | |
|   handler: RequestHandler
 | |
| ): Sms {
 | |
|   return {
 | |
|   };
 | |
| }
 | |
| 
 | |
| // @@protoc_insertion_point(typescript-http-eof)
 |