// // AIInfoConfig.swift // Cisdem PDFMaster // // Created by Niehaoyu on 2024/1/17. // import Foundation @objc public enum AIConfigType: NSInteger { case none = 0 case summarize = 1 case reWriting = 2 case proofreading = 3 case translate = 4 } //AI对话框类型 @objc public enum AIChatInfoType: NSInteger { case none = 0 case defaultTip = 1 //预算提示内容 case chatFileUpload = 2 //上传文件类型 case chatStringUpload = 3 //上传文字类型 case chatStringResult = 4 //返回文字类型 case chatFileResult = 5 //返回文件类型 case chatTranslateResult = 6 } @objc public enum AIChatInfoState: NSInteger { case stateNone = 0 case stateLoading = 1 //预加载Loading case stateFailed = 2 //返回错误 case stateSuccess = 3 //返回成功 case stateCancel = 4 //翻译取消状态 case stateInfoConfirm = 5 //翻译二次确认状态 } class AIInfoConfig: NSObject { var aiActionURL: String { get { // #if DEBUG return kVerificationServer // #else // //正式服务器 // return "https://store.pdfreaderpro.com" // #endif } } }