student_and_hobby.go 417 B

123456789101112131415
  1. package example
  2. import (
  3. "git.sxidc.com/go-framework/baize/convenient/gwtools/relation/many2many"
  4. "git.sxidc.com/go-framework/baize/framework/gateway"
  5. )
  6. func studentAndHobbyGateway(builder *gateway.Builder) {
  7. many2many.BindSimple(builder, &many2many.Simple{
  8. ServiceVersionedUrl: serviceVersionedUrl,
  9. ServiceShortName: "example",
  10. LeftDomainCamelName: "Student",
  11. RightDomainCamelName: "Hobby",
  12. })
  13. }