class_and_student.go 414 B

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