//
//  TooltipView.h
//  ChatAgentApp
//
//  Created by zhangyafei on 2024/11/5.
//
#import <UIKit/UIKit.h>

//@interface TooltipView : UIView
//
//@property (nonatomic, strong) UILabel *textLabel;
//
//- (instancetype)initWithText:(NSString *)text;
//
//@end
@interface BaseViewController : UIViewController

@end

@interface BaseViewController (Alert)
/**
 系统弹窗双选项
 
 @param title 标题
 @param message 文本内容
 @param ok 确定
 @param cancle 取消
 @param OK 确定按钮回调
 */
- (void)alertTitle:(NSString *)title andMessage:(NSString *)message andOK:(NSString*)ok andCancle:(NSString*)cancle andBlock:(void (^)(UIAlertAction *action))OK;

/**
 系统弹窗单选项
 
 @param title 标题
 @param message 具体信息
 @param handler 回调
 */
- (void)alertTitle:(NSString*)title andMessage:(NSString*)message andCancleBlock:(void (^ __nullable)(UIAlertAction *action))handler;

/**
 系统弹窗双选回调
 
 @param title 标题
 @param message 内容
 @param ok ok
 @param cancle cancle
 @param OK ok回调
 @param cancleBlock 取消回调
 */
- (void)alertTitle:(NSString *)title andMessage:(NSString *)message andOK:(NSString*)ok andCancle:(NSString*)cancle andBlock:(void (^)(UIAlertAction *action))OK andCancleBlock:(void (^)(UIAlertAction *action))cancleBlock;

@end
