Skip to content

Commit d36497a

Browse files
committed
Rename some protobuf enum values
1 parent 2299290 commit d36497a

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

GDDataDrivenView/Generated/goodow/data-driven/GoodowExtrasOption.pbobjc.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

GDDataDrivenView/Generated/goodow/data-driven/GoodowExtrasOption.pbobjc.m

Lines changed: 10 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

protos/goodow_extras_option.proto

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ enum StackMode {
5555
STACK_MODE_UNSET = 0;
5656
push = 1; // push 到当前的 UINavigationController
5757
present = 2; // 使用 top presentViewController:controller
58-
present_push = 3; // 使用 top presentViewController:[[UINavigationController alloc] initWithRootViewController:controller]
58+
presentPush = 3; // 使用 top presentViewController:[[UINavigationController alloc] initWithRootViewController:controller]
5959
root = 4; // 替换当前 window 的 rootViewController
6060
};
6161

@@ -69,12 +69,12 @@ message CacheControl {
6969
RequestCachePolicy request_policy = 6;
7070

7171
enum Status {
72-
UNSET = 0;
73-
PRIVATE = 1; // 只为单个用户缓存
74-
PUBLIC = 2; // 即使有关联的用户认证, 甚至响应状态码无法正常缓存, 响应也可以被缓存. 大多数情况下, public不是必须的, 因为明确的缓存信息(例如max_age)已表示响应可以被缓存.
75-
NO_CACHE = 3; // 必须先与服务器确认是否有更新
76-
NO_STORE = 4; // 禁止缓存
77-
NOT_MODIFIED = 5; // 服务器没有更新; 同时复用这个字段表示数据来自缓存
72+
STATUS_UNSET = 0;
73+
private = 1; // 只为单个用户缓存
74+
public = 2; // 即使有关联的用户认证, 甚至响应状态码无法正常缓存, 响应也可以被缓存. 大多数情况下, public不是必须的, 因为明确的缓存信息(例如max_age)已表示响应可以被缓存.
75+
no_cache = 3; // 必须先与服务器确认是否有更新
76+
no_store = 4; // 禁止缓存
77+
unmodified = 5; // 服务器没有更新; 同时复用这个字段表示数据来自缓存
7878
}
7979

8080
// 含义和 NSURLRequestCachePolicy 保持一致

0 commit comments

Comments
 (0)