GLD_Service.h
637 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//
// GLD_Service.h
// GLD_Networking
//
// Created by yiyangkeji on 2017/6/21.
// Copyright © 2017年 yiyangkeji. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol ServiceEnvironment <NSObject>
@optional
- (NSString *)testEnvironmentBaseUrl;
- (NSString *)developEnvironmentBaseUrl;
- (NSString *)releaseEnvironmentBaseUrl;
@end
typedef NS_ENUM(NSInteger, gld_environmentType) {
gld_environmentTest,
gld_environmentDevelop,
gld_environmentRelease,
};
@interface GLD_Service : NSObject<ServiceEnvironment>
+ (instancetype)currentService;
+ (void)switchService;
- (NSString *)baseUrl;
@end