feature(error): add func

This commit is contained in:
pyihe
2022-08-10 15:54:08 +08:00
parent b70a3af443
commit a0aaa16796

View File

@@ -27,3 +27,7 @@ func (e *Error) Error() (err string) {
func (e *Error) Code() int32 {
return e.code
}
func (e *Error) Message() string {
return e.err
}