Files
yinmeng-ios/xplan-ios/Main/MVP/Api/Api.h
2021-09-06 18:51:44 +08:00

26 lines
558 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// Api.h
// xplan-ios
//
// Created by zu on 2021/9/6.
//
#import <Foundation/Foundation.h>
#import "HttpRequestHelper.h"
NS_ASSUME_NONNULL_BEGIN
@interface Api : NSObject
/**
route : 接口路径
method : http 请求方法POST、GET等
completion : 网络请求完成的回调
... : 可变参数,第一个为 __FUNCTION__ ,接下来依次为该接口的协议参数
*/
+ (void)makeRequest:(NSString *)route method:(HttpRequestHelperMethod)method completion:(HttpRequestHelperCompletion)completion, ...;
@end
NS_ASSUME_NONNULL_END