GiGaMaskTime/GIGA/Common/GiGaNetTool/GiGaAPIResult.h

25 lines
544 B
Objective-C

//
// GiGaAPIResult.h
// GIGA
//
// Created by lianxiang on 2018/8/15.
// Copyright © 2018年 com.giga.ios. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface GiGaAPIResult : NSObject
/** 提示信息 */
@property (nonatomic, copy) NSString *message;
/** 状态码 */
@property (nonatomic, assign) NSInteger code;
/** 请求是否成功 */
@property (nonatomic, readonly) BOOL success;
/** 接收数据的字典 */
@property (nonatomic, strong) NSDictionary *dic;
- (id)initWithDictionary:(NSDictionary *)dic;
@end