hdatasvs

package
v1.1.44 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateMRequest added in v1.1.0

type CreateMRequest struct {
	core.SlotRequestBase

	Key     *string       `json:"key" param:"require"`
	Objects *[]htypes.Map `json:"objects" param:"require"`
}

type CreateRequest added in v1.1.0

type CreateRequest struct {
	core.SlotRequestBase

	Key    *string     `json:"key" param:"require"`
	Object *htypes.Map `json:"object" param:"require"`
}

type DataObject added in v1.1.0

type DataObject struct {
}

type DataService

type DataService struct {
	core.ServiceConf
	AutoMigrate bool
}

type DataView added in v1.1.0

type DataView struct {
}

type DeleteRequest added in v1.1.0

type DeleteRequest struct {
	core.SlotRequestBase

	Key     *string       `json:"key" param:"require"`
	Objects *[]htypes.Map `json:"objects" param:"require;type:ObjectArray"`
}

type FieldFunc

type FieldFunc func(param interface{}) (interface{}, *herrors.Error)

type FieldFuncMap

type FieldFuncMap map[string]FieldFunc

type Options added in v1.1.0

type Options struct {
	Objects      []htypes.Any
	Views        []htypes.Any
	Hooks        htypes.Any
	FieldFuncMap FieldFuncMap
}

type QueryRequest added in v1.1.0

type QueryRequest struct {
	core.SlotRequestBase

	Key      *string    `json:"key" param:"require"`
	Filter   *rawFilter `json:"filter" param:"require"`
	Dims     *[]string  `json:"dims" param:"require;type:StringArray"`
	Ordering *[]string  `json:"ordering" param:"type:StringArray"`
	Paging   *[]int     `json:"paging" param:"type:NumberRange"`

	Records []htypes.Any `param:"-"`
}

type Service

type Service struct {
	core.Service
	// contains filtered or unexported fields
}

func (*Service) CheckTableName added in v1.1.7

func (this *Service) CheckTableName(o *object, data htypes.Map, createIfNotExist bool) (string, *herrors.Error)

func (*Service) Config

func (this *Service) Config() core.IEntityConf

func (*Service) Create

func (this *Service) Create(req *CreateRequest, res *core.SlotResponse)

func (*Service) CreateM

func (this *Service) CreateM(req *CreateMRequest, res *core.SlotResponse)

func (*Service) DbOfObject added in v1.1.5

func (this *Service) DbOfObject(key string) *gorm.DB

func (*Service) Delete

func (this *Service) Delete(req *DeleteRequest, res *core.SlotResponse)

func (*Service) EntityStub

func (this *Service) EntityStub() *core.EntityStub

func (*Service) Object added in v1.1.7

func (this *Service) Object(key string) *object

func (*Service) ObjectConditionValues added in v1.1.7

func (this *Service) ObjectConditionValues(key string, conds []string) (htypes.Map, *herrors.Error)

func (*Service) Open

func (this *Service) Open(s core.IServer, instance core.IService, options htypes.Any) *herrors.Error

func (*Service) Query

func (this *Service) Query(req *QueryRequest, res *core.SlotResponse)

func (*Service) Update

func (this *Service) Update(req *UpdateRequest, res *core.SlotResponse)

func (*Service) View added in v1.1.0

func (this *Service) View(req *ViewRequest, res *core.SlotResponse)

func (*Service) ViewConditionValues added in v1.1.1

func (this *Service) ViewConditionValues(key string, conds []string) (htypes.Map, *herrors.Error)

type UpdateRequest added in v1.1.0

type UpdateRequest struct {
	core.SlotRequestBase

	Key    *string     `json:"key" param:"require"`
	Filter *rawFilter  `json:"filter" param:"require"`
	Value  *htypes.Map `json:"value" param:"require"`

	Bucket htypes.Map
}

type ViewRequest added in v1.1.8

type ViewRequest struct {
	core.SlotRequestBase

	Key      *string    `json:"key" param:"require"`
	Filter   *rawFilter `json:"filter" param:"require"`
	Dims     *[]string  `json:"dims" param:"require;type:StringArray"`
	Ordering *[]string  `json:"ordering" param:"type:StringArray"`
	Paging   *[]int     `json:"paging" param:"type:NumberRange"`

	Records []htypes.Any `param:"-"`
}

Jump to

Keyboard shortcuts

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