# QFNetURLManager **Repository Path**: qingfeng798/qfnet-urlmanager ## Basic Information - **Project Name**: QFNetURLManager - **Description**: iOS 接口管理库 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-10-11 - **Last Updated**: 2024-04-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # QFNetURLManager [![CI Status](https://img.shields.io/travis/清风/QFNetURLManager.svg?style=flat)](https://travis-ci.org/清风/QFNetURLManager) [![Version](https://img.shields.io/cocoapods/v/QFNetURLManager.svg?style=flat)](https://cocoapods.org/pods/QFNetURLManager) [![License](https://img.shields.io/cocoapods/l/QFNetURLManager.svg?style=flat)](https://cocoapods.org/pods/QFNetURLManager) [![Platform](https://img.shields.io/cocoapods/p/QFNetURLManager.svg?style=flat)](https://cocoapods.org/pods/QFNetURLManager) ## Example To run the example project, clone the repo, and run `pod install` from the Example directory first. ## Requirements ## Installation QFNetURLManager is available through [CocoaPods](https://cocoapods.org). To install it, simply add the following line to your Podfile: ```ruby source 'https://gitee.com/qingfeng798/qfapp-kit-spec.git' pod 'QFNetURLManager' ``` ## Use 1、初始化 ```objc [QFNetURLManager configBaseUrlWithDev:@"http://www.baidu.com" product:@"http://api.baidu.com"]; ``` 2、创建一个接口路径的类,参考库中的`QFInterface` ```objc NSLog(@"接口地址:%@",[QFInterface qf_testUrl]); ``` 或者创建一个`QFInterface`的分类 示例: ```objc @interface QFInterface (Login) /// 【登录】登录 + (NSString *) login_login; @end @implementation QFInterface (Login) /// 【登录】登录 + (NSString *) login_login { return [QFNetURLManager URLForPath:@"/app-api/login"]; } @end ``` ## Author 清风, 807984698@qq.com ## License QFNetURLManager is available under the MIT license. See the LICENSE file for more info.