apache / shenyu

Apache ShenYu is a Java native API Gateway for service proxy, protocol conversion and API governance.
https://shenyu.apache.org/
Apache License 2.0
8.44k stars 2.93k forks source link

[Volunteer] <add converter plugin> #2765

Closed impactCn closed 2 years ago

impactCn commented 2 years ago

Volunteer help

For example,

time conversion 
2022-01-12 21:40:36 -> 1641994836000,
2022-01-12 21:40:36 -> 2022/01/12 21:40:36,

Long to String
1402839809805524992 -> '1402839809805524992'

xml to json
<user>shenyu<user/> -> {"user":"shenyu"}

json to xml
 {"user":"shenyu"} -> <user>shenyu<user/>

Defining such a format can support direct conversion and implement a certain standard interface, which can be converted into the desired type.

lxl910128 commented 2 years ago

let me try

impactCn commented 2 years ago

Done in #2548.