Documentation ¶
Index ¶
- func BindSimple[LI any, RI any](binder *binding.Binder, simple *Simple[LI, RI], opts ...Option)
- func QueryToExist[TI any](middleTableName string, fromRemote bool, fromTableName string, ...) binding.ServiceFunc[response.InfosData[TI]]
- func QueryToRemote(middleTableName string, fromRemote bool, fromTableName string, ...) binding.ServiceFunc[response.InfosData[string]]
- func Update(middleTableName string, fromRemote bool, fromTableName string, ...) binding.ServiceFunc[any]
- type Option
- type Options
- type Simple
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindSimple ¶
func QueryToExist ¶
func QueryToRemote ¶
Types ¶
type Option ¶
type Option func(options *Options)
func WithDisableLeft ¶
func WithDisableLeft() Option
func WithDisableLeftQuery ¶
func WithDisableLeftQuery() Option
func WithDisableLeftUpdate ¶
func WithDisableLeftUpdate() Option
func WithDisableRight ¶
func WithDisableRight() Option
func WithDisableRightQuery ¶
func WithDisableRightQuery() Option
func WithDisableRightUpdate ¶
func WithDisableRightUpdate() Option
type Simple ¶
type Simple[LI any, RI any] struct { // 左领域实体,注意是Entity类型 Left entity.Entity // 右领域实体,注意是Entity类型 Right entity.Entity // 数据库Schema Schema string // 更新左实体关联使用的请求参数 LeftUpdateJsonBody request.Params // 查询左实体关联使用的请求参数,注意是Query类型 LeftQueryQueryParams request.QueryWithIDRequestParams // 更新右实体关联使用的请求参数 RightUpdateJsonBody request.Params // 查询右实体关联使用的请求参数,注意是Query类型 RightQueryQueryParams request.QueryWithIDRequestParams // contains filtered or unexported fields }
Simple 关联的Bind参数 I 为本地实体的Info类型
Click to show internal directories.
Click to hide internal directories.