Skip to content

Commit 98c6ef7

Browse files
committed
update RELEASE
1 parent 2f11099 commit 98c6ef7

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

.github/RELEASE.md

+2-23
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,4 @@
11
## Change log
22

3-
1. Adjust errcode package, support custom error message.
4-
5-
example:
6-
7-
```go
8-
//http code
9-
// code(10003) and message
10-
ecode.InvalidParams.Err("custom error message")
11-
// code(400) and message
12-
ecode.InvalidParams.ErrToHTTP("custom error message")
13-
14-
// grpc code
15-
// code(30003) and message
16-
ecode.StatusInvalidParams.Err("custom error message")
17-
// code(3) and message
18-
ecode.StatusInvalidParams.ToRPCErr("custom error message")
19-
// code(30003) and message, use in grpc-gateway
20-
ecode.StatusInvalidParams.ErrToHTTP("custom error message")
21-
```
22-
23-
2. Optimize print log, grpc support custom marshal data.
24-
25-
3. Adjust some code.
3+
1. Fix logging bug [#59](https://github.com/zhufuyi/sponge/issues/59).
4+
2. Add custom jwt authentication in grpc service.

0 commit comments

Comments
 (0)