mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-08-06 22:23:12 +00:00
doc[protocol]: update doc
This commit is contained in:
+1
-1
@@ -122,7 +122,7 @@ It is difficult for a project's protocol body class to exceed 3 w, and there wil
|
||||
your protocol number a little more compactly, so that your protocol number will not exceed 3 w
|
||||
```
|
||||
|
||||
- There are three ways to indicate that the protocol class
|
||||
- There are four ways to indicate that the protocol class
|
||||
- The first uses annotations: @Protocol(id = protocolId)
|
||||
```
|
||||
@Protocol(id = 104)
|
||||
|
||||
@@ -101,7 +101,7 @@ cpu: i9900k
|
||||
一个项目的协议体类很难超过3w,会有工具自动把你的协议号打包的紧凑一点,这样你的协议号就不会超过3w了
|
||||
```
|
||||
|
||||
- 协议类必须标注协议号,有三种方式
|
||||
- 协议类必须标注协议号,有四种方式
|
||||
- 第一种使用注解:@Protocol(id = protocolId)
|
||||
```
|
||||
@Protocol(id = 104)
|
||||
|
||||
Reference in New Issue
Block a user