Open at15 opened 5 years ago
This issue is track the trail implementation and references. It is originated from the discussion in https://github.com/dyweb/weekly/issues/91
The main idea is to generate code to avoid manually write json encode/decode and stub func GetXXX so that writing REST API can feel like writing RPC.
GetXXX
There are following approaches
And some extra rules
interface{}
@at15 prefer the middle one (currently)
Reference
Newly added
This issue is track the trail implementation and references. It is originated from the discussion in https://github.com/dyweb/weekly/issues/91
The main idea is to generate code to avoid manually write json encode/decode and stub func
GetXXX
so that writing REST API can feel like writing RPC.There are following approaches
And some extra rules
interface{}
@at15 prefer the middle one (currently)
Reference
Newly added