api to rpc

This commit is contained in:
withchao
2023-03-03 18:14:48 +08:00
parent e93425c574
commit 5e845c8fb6
2 changed files with 42 additions and 3 deletions
+1 -1
View File
@@ -14,5 +14,5 @@ func Success(data any) *ApiResponse {
}
func Error(err error) *ApiResponse {
return &ApiResponse{}
return &ApiResponse{ErrCode: 10000, ErrMsg: err.Error()}
}