//
//  AFNetworkingClient.h
//  fastservice
//
//  Created by xuning on 5/5/25.
//  Copyright © 2025 FastService. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFHTTPSessionManager.h"
NS_ASSUME_NONNULL_BEGIN

/**
 *  注册
 */

static NSString * const SS_SIGN = @"/flow/v1_0/user/signup";

/**
 *  更新上传DeviceToken
 */
static NSString * const SS_SMS_CODEW     = @"/flow/v1_1//user/smscodew";


/**
 *  登陆新
 */
static NSString * const SS_LOGINX        = @"/flow/v1_1/user/login";

/**
 *  退出
 */
static NSString * const SS_LOGOUT       = @"/flow/v1_0/user/logout";


/**
 *  环信账号
 */
static NSString * const SS_EASESPW       = @"/flow/v1_0/user/easemobSPW";

/**
 *  修改密码
 */
static NSString * const SS_RESET_PWD    = @"/flow/v1_0/user/resetPasswd";



/**
 *  修改手机号
 */
static NSString * const SS_REVISE_MB    = @"/flow/v1_1/user/reviseMobile";


/**
 *  忘记密码
 */
static NSString * const SS_FORGET_PWD    = @"/flow/v1_0/user/forgetPasswd";

/**
 *  获取随机图片验证码
 */
static NSString * const SS_SMS_PIC_CODE     = @"/flow/v1_2/user/smsimgcode";

/**
 *  用户信息
 */
static NSString * const SS_GET_USERPROFILE        = @"/flow/v1_3/user/profile";

/**
 *  设置用户信息
 */
static NSString * const SS_BASICINFO        = @"/flow/v1_0/customer/basicInfo";
/**
 *  位置更新x
 */
static NSString * const SS_GEO_UPDATE = @"/lbs/v1_0/location/geoUpdate";
/**
 * 检测服务器是否连接正常
 */
static NSString * const SS_40_INDEX = @"/flow/v1_0/flow/index";
/**
 * 百度
 */
static NSString * const SS_BAIDU  = @"https://www.baidu.com";

/**
 骑士在线时长统计
 */
static NSString *const SS_ONLINE_DURATION = @"/flow/v1_0/courier/onlineDuration";

/**
 骑士协议
 */
static NSString *const SS_SERVICE_AGREEMENT = @"/flow/view/service_agreement";
/**
 隐私协议
 */
static NSString *const SS_PRIVACY_COURIER = @"/flow/view/privacy_courier";

///完成单提示滚动条
static NSString *const HOME_OVERORDER_SHOW = @"/flow/v1_1/courier/message";

/**
 *  获得分站列表group_id
 */
static NSString * const SS_GET_GINFO        = @"/flow/v1_1/group/getGroupInfo";
/**
 *  获取banner
 */
static NSString * const SS_GET_SMENU      = @"/flow/v1_0/service/getSMenu";

@interface AFNetworkingClient : AFHTTPSessionManager

+ (instancetype)sharedClient;
+ (NSString *) baseURLString;
- (NSURLSessionTask * )runGET:(NSString *)URLString
                   parameters:(NSMutableDictionary *)parameters
                      success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
                      failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

- (NSURLSessionTask * )runPost:(NSString *)URLString
                    parameters:(NSMutableDictionary *)parameters
                       success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
                       failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

- (NSURLSessionTask * )runPut:(NSString *)URLString
                   parameters:(NSMutableDictionary *)parameters
                      success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
                      failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

- (NSURLSessionTask *)runDELETE:(NSString *)URLString
                      parameters:(id)parameters
                         success:(void (^)(NSURLSessionDataTask *task, id responseObject))success
                         failure:(void (^)(NSURLSessionDataTask *task, NSError *error))failure;

+ (void)updateBaseURL:(NSString *)baseURL;


@end

NS_ASSUME_NONNULL_END
