comm

package
v0.0.0-...-69bdcc1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PageScope

func PageScope(pager *Pager) func(gen.Dao) gen.Dao

Types

type Condition

type Condition struct {
	Name     string       `json:"name,omitempty"`
	Value    string       `json:"value,omitempty"`
	Type     string       `json:"type,omitempty"`
	Children []*Condition `json:"children,omitempty"`
}

type Pager

type Pager struct {
	Offset   int
	Limit    int
	GetRows  bool
	GetCount bool
}

type Response

type Response struct {
	Status  int    `json:"status"` // 自定义的状态码应当大于1000
	Message string `json:"message,omitempty"`
	Totals  int64  `json:"totals,omitempty"`
	Data    any    `json:"data,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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