dao

package
v0.0.0-...-c4a0b5b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table1

type Table1 struct {
	ID   int32    `json:"id"`
	Name string   `json:"name"`
	JSON []string `json:"json" type:"json"`
	Ref  int32    `json:"ref"` // 实际的关联table2的字段
	// tb2:可以认为是table2的别名,可以直接tb2.key,key是table2的字段名称
	// left:是left join;ref=id 关联方式,本表字段=关联表字段,多个用逗号隔开,如:ref=id,name=name
	Tb2 *Table2 `json:"tb2" ref:"left;ref=id"`
}

type Table2

type Table2 struct {
	ID   int32  `json:"id"`
	Name string `json:"name"`
	Age  int32  `json:"age"`
	Ref  int32  `json:"ref"`
	// tag字段
	Tb3 *Table3 `json:"tb3" ref:"left;ref=id"`
}

type Table3

type Table3 struct {
	ID   int32  `json:"id"`
	Name string `json:"name"`
	Info string `json:"info"`
	Ref  int32  `json:"ref"`
	// tag字段
	Tb1 *Table1 `json:"tb1" ref:"left;ref=id"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL