Skip to content

Commit

Permalink
update RELEASE
Browse files Browse the repository at this point in the history
  • Loading branch information
zhufuyi committed Sep 6, 2024
1 parent 2f11099 commit 98c6ef7
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions .github/RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,4 @@
## Change log

1. Adjust errcode package, support custom error message.

example:

```go
//http code
// code(10003) and message
ecode.InvalidParams.Err("custom error message")
// code(400) and message
ecode.InvalidParams.ErrToHTTP("custom error message")

// grpc code
// code(30003) and message
ecode.StatusInvalidParams.Err("custom error message")
// code(3) and message
ecode.StatusInvalidParams.ToRPCErr("custom error message")
// code(30003) and message, use in grpc-gateway
ecode.StatusInvalidParams.ErrToHTTP("custom error message")
```

2. Optimize print log, grpc support custom marshal data.

3. Adjust some code.
1. Fix logging bug [#59](https://github.com/zhufuyi/sponge/issues/59).
2. Add custom jwt authentication in grpc service.

0 comments on commit 98c6ef7

Please sign in to comment.