@@ -16,17 +16,8 @@ type Simple[LI any, RI any] struct {
// 右领域实体,注意是Entity类型
Right entity.Entity
- // 左表名
- LeftTableName string
-
- // 右表名
- RightTableName string
- // URL领域相对路径,如/class,后面会自动补充,如/class/右领域path/update
- LeftDomainPath string
- // URL领域相对路径,如/student,后面会自动补充,如/student/左领域path/update
- RightDomainPath string
+ // 数据库Schema
+ Schema string
// 更新左实体关联使用的请求参数
LeftUpdateJsonBody request.Params
@@ -22,6 +22,9 @@ type Simple[LI any, RI any] struct {
// 右领域实体不是本地的
RightRemote bool
+
// 中间表表名
MiddleTableName string