Documentation ¶
Index ¶
- type CreateMRequest
- type CreateRequest
- type DataObject
- type DataService
- type DataView
- type DeleteRequest
- type FieldFunc
- type FieldFuncMap
- type Options
- type QueryRequest
- type Service
- func (this *Service) CheckTableName(o *object, data htypes.Map, createIfNotExist bool) (string, *herrors.Error)
- func (this *Service) Config() core.IEntityConf
- func (this *Service) Create(req *CreateRequest, res *core.SlotResponse)
- func (this *Service) CreateM(req *CreateMRequest, res *core.SlotResponse)
- func (this *Service) DbOfObject(key string) *gorm.DB
- func (this *Service) Delete(req *DeleteRequest, res *core.SlotResponse)
- func (this *Service) EntityStub() *core.EntityStub
- func (this *Service) Object(key string) *object
- func (this *Service) ObjectConditionValues(key string, conds []string) (htypes.Map, *herrors.Error)
- func (this *Service) Open(s core.IServer, instance core.IService, options htypes.Any) *herrors.Error
- func (this *Service) Query(req *QueryRequest, res *core.SlotResponse)
- func (this *Service) Update(req *UpdateRequest, res *core.SlotResponse)
- func (this *Service) View(req *QueryRequest, res *core.SlotResponse)
- func (this *Service) ViewConditionValues(key string, conds []string) (htypes.Map, *herrors.Error)
- type UpdateRequest
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
}
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 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 ¶
func (*Service) CheckTableName ¶ added in v1.1.7
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) Delete ¶
func (this *Service) Delete(req *DeleteRequest, res *core.SlotResponse)
func (*Service) EntityStub ¶
func (this *Service) EntityStub() *core.EntityStub
func (*Service) ObjectConditionValues ¶ added in v1.1.7
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 *QueryRequest, res *core.SlotResponse)
type UpdateRequest ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.