import { BasicPageParams, BasicFetchResult, BasicParams } from '/@/api/model/baseModel';

/**
 * @description: Request list interface parameters
 */
export type MessageTemplateParams = BasicPageParams;

export interface MessageTemplate {
  id: string;
  createTime: string;
  updateTime: string;
}

export type SmsParams = {
  id?: string;
  phoneNumbers?: string;
  params?: string;
  remark?: string;
  templatePurpose?: string;
};
export type EmailParams = {
  id?: string;
  to?: string[];
  cc?: string[];
  bcc?: string[];
  subject?: string;
  emailFormatEnum?: string;
  templatePurpose?: string;
};
export interface MessageResult {
  result: boolean;
}

/**
 * @description: Request list return value
 */
export type MessageTemplateResultModel = BasicFetchResult<MessageTemplate>;

export type MessageResultModel = BasicParams<MessageResult>;
