AlexStocks commented on a change in pull request #295:
URL: https://github.com/apache/dubbo-go-hessian2/pull/295#discussion_r759894034



##########
File path: README.md
##########
@@ -195,8 +195,35 @@ type MyUser struct {
 
 ```
 
+#### Encoding param name
+When a Java method declares an argument as a parent class, it actually 
receives a subclass,
+You can specify the encoding type of the parameter separately.
 
-##### hessian.SetTagIdentifier
+```go
+type MyUser struct {
+    UserFullName      string   `hessian:"user_full_name"`
+    FamilyPhoneNumber string   // default convert to => familyPhoneNumber
+}
+
+func (m *MyUser) JavaClassName() string {
+    return "com.company.myuser"
+}
+
+func (m *MyUser) JavaParamName() string {

Review comment:
       这里我觉得是不是需要给出对应的 java 代码示例,说明 class-param-struct 这三个 tag 的意义。光这么一个 go 
代码块,我自己都看不懂这有啥用




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to