//
//  GMBaseRequest.h
//  Gengmei
//
//  Created by MoMo on 2019/9/16.
//  Copyright © 2019 更美互动信息科技有限公司. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GMALNetworkMacros.h"
@import GMBase;
typedef NS_ENUM(NSInteger, GMRequestMethod) {
    GMRequestMethodGET      = 0,
    GMRequestMethodPOST     = 1,
    GMRequestMethodDELETE   = 2,
    GMRequestMethodHEAD     = 3,
    GMRequestMethodPUT      = 4
};


NS_ASSUME_NONNULL_BEGIN

@interface GMRequestObject : GMObject

@property (nonatomic, copy) NSString *offset;
@property (nonatomic, assign) NSInteger page;
@property (nonatomic, assign) NSInteger count;

@end

@interface GMALBaseRequest : NSObject

/** 请求method */
@property (nonatomic, assign) GMRequestMethod method;

/** dataTask */
@property (nonatomic, strong) NSURLSessionTask *dataTask;

@property (nonatomic, copy) GMCompleteBlock completBlock;


@end

NS_ASSUME_NONNULL_END
