version.go 402 B

12345678910111213141516171819
  1. package demo_server
  2. import (
  3. "git.sxidc.com/go-framework/baize/convenient/gwtools"
  4. "git.sxidc.com/go-framework/baize/framework/gateway"
  5. )
  6. const (
  7. versionBaseUrl = baseUrl + "/version"
  8. )
  9. func versionService(builder *gateway.Builder) {
  10. gwtools.GetPassThrough(builder, &gwtools.SimplePassThroughParams{
  11. RelativePath: "/version",
  12. Request: &gateway.GetRequest{
  13. Url: versionBaseUrl,
  14. },
  15. })
  16. }