entity

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Join

type Join struct {
	Table    string `json:"table"`
	Alias    string `json:"alias"`
	JoinMode string `json:"join_mode"`
	OnList   []On   `json:"on_list"`
}

type On

type On struct {
	Name      string `json:"name"`
	Value     string `json:"value"`
	Algorithm string `json:"algorithm"`
}

type Page

type Page struct {
	PageSize   int `json:"page_size"`
	PageIndex  int `json:"page_index"`
	TotalPages int `json:"total_pages"`
}

type Query

type Query struct {
	Count   bool                     `json:"count"`
	Export  bool                     `json:"export"`
	Page    Page                     `json:"page"`
	Query   []map[string]interface{} `json:"query"`
	Joins   Join                     `json:"joins"`
	OrderBy []map[string]string      `json:"order_by"`
	Select  []string                 `json:"select"`
}

type ResponseData

type ResponseData struct {
	Result    Result `json:"result"`
	Message   string `json:"message"`
	ErrorCode int    `json:"error_code"`
}

type Result

type Result struct {
	Data  any   `json:"data"`
	Page  Page  `json:"page"`
	Total int64 `json:"total"`
}

Jump to

Keyboard shortcuts

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