lprmodel

package
v0.0.0-...-47f96fa Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReportConfig

type ReportConfig struct {
	orm.DataModelBase `bson:"-" json:"-"`
	ID                string `bson:"_id" json:"_id" key:"1" form_read_only_edit:"1" form_section:"General" form_section_auto_col:"2"`
	Name              string `form_required:"1" form_section:"General"`
	SearchType        SearchType
	GetMethod         string
	GetUrl            string
	ViewSetups        []ReportField
	Created           time.Time `form_kind:"datetime" form_read_only:"1" grid:"hide" form_section:"Time Info" form_section_auto_col:"2"`
	LastUpdate        time.Time `form_kind:"datetime" form_read_only:"1" grid:"hide" form_section:"Time Info"`
}

func (*ReportConfig) FK

func (o *ReportConfig) FK() []*orm.FKConfig

func (*ReportConfig) GetID

func (o *ReportConfig) GetID(dbflex.IConnection) ([]string, []interface{})

func (ReportConfig) Indexes

func (o ReportConfig) Indexes() []dbflex.DbIndex

func (*ReportConfig) PostSave

func (o *ReportConfig) PostSave(dbflex.IConnection) error

func (*ReportConfig) PreSave

func (o *ReportConfig) PreSave(dbflex.IConnection) error

func (*ReportConfig) ReverseFK

func (o *ReportConfig) ReverseFK() []*orm.ReverseFKConfig

func (*ReportConfig) SetID

func (o *ReportConfig) SetID(keys ...interface{})

func (*ReportConfig) TableName

func (o *ReportConfig) TableName() string

type ReportField

type ReportField struct {
	Field     string
	FieldType string
	Format    string
}

type ReportResult

type ReportResult struct {
	Fields []ReportField
	Data   []codekit.M
}

type SearchType

type SearchType string
const (
	SearchNone       SearchType = "JSON"
	SearchQueryParam SearchType = "QueryParam"
	SearchFunction   SearchType = "Function" // function prototype: func (ctx *kaos.Context, payload interface{}) (*dbflex.QueryParam, error)
)

Jump to

Keyboard shortcuts

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