basedto

package
v0.0.0-...-e3601d1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2025 License: MulanPSL-2.0 Imports: 12 Imported by: 271

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadBaseEntity

func LoadBaseEntity() baseiface.ISingleton

func LoadBeanProxy

func LoadBeanProxy[T baseiface.IbaseProxy]() T

Types

type BaseEntity

type BaseEntity struct {
	Proxy    func() *BaseProxy             `json:"-"`
	Bindings map[string]baseiface.LoadBean `json:"-"`
	RootDir  string                        `json:"-"`
}

func FindBeanBaseEntity

func FindBeanBaseEntity() *BaseEntity

func NewBaseEntity

func NewBaseEntity() *BaseEntity

func (*BaseEntity) AutoInject

func (self *BaseEntity) AutoInject() bool

func (*BaseEntity) Autoload

func (self *BaseEntity) Autoload() bool

func (*BaseEntity) Autowire

func (self *BaseEntity) Autowire()

func (*BaseEntity) Bind

func (self *BaseEntity) Bind()

func (*BaseEntity) BindUp

func (self *BaseEntity) BindUp(key string, load baseiface.LoadBean)

func (*BaseEntity) Clone

func (self *BaseEntity) Clone() interface{}

func (*BaseEntity) ContainsStru

func (self *BaseEntity) ContainsStru(v any) bool

func (*BaseEntity) ContainsType

func (self *BaseEntity) ContainsType(name string) bool

func (*BaseEntity) CopyWithOption

func (self *BaseEntity) CopyWithOption(from any)

func (*BaseEntity) FindBinding

func (self *BaseEntity) FindBinding(key string) baseiface.LoadBean

func (*BaseEntity) FromJsonAny

func (self *BaseEntity) FromJsonAny(body []byte) interface{}

func (*BaseEntity) Id2Str

func (self *BaseEntity) Id2Str(id int64) string

func (*BaseEntity) IfAutowire

func (self *BaseEntity) IfAutowire() bool

func (*BaseEntity) Init

func (self *BaseEntity) Init()

func (*BaseEntity) InitProxy

func (self *BaseEntity) InitProxy(some any)

func (*BaseEntity) Log

func (self *BaseEntity) Log()

func (*BaseEntity) Parse2Map

func (self *BaseEntity) Parse2Map() (map[string]any, error)

func (*BaseEntity) Shutdown

func (self *BaseEntity) Shutdown()

func (*BaseEntity) Single

func (self *BaseEntity) Single() bool

func (*BaseEntity) Str2Int

func (self *BaseEntity) Str2Int(from string) int

func (*BaseEntity) String

func (self *BaseEntity) String() string

func (*BaseEntity) ToJson

func (self *BaseEntity) ToJson() string

func (*BaseEntity) ToJsonBytes

func (self *BaseEntity) ToJsonBytes() []byte

func (*BaseEntity) ToPrettyString

func (self *BaseEntity) ToPrettyString() string

func (*BaseEntity) ToString

func (self *BaseEntity) ToString() string

func (*BaseEntity) ValueFrom

func (self *BaseEntity) ValueFrom(from any)

func (*BaseEntity) ValueOf

func (self *BaseEntity) ValueOf(that any)

type BaseEntityIndex

type BaseEntityIndex struct {
	BaseEntity
}

func (BaseEntityIndex) GetMapping

func (b BaseEntityIndex) GetMapping() string

func (BaseEntityIndex) IndexAlaisName

func (b BaseEntityIndex) IndexAlaisName() string

func (BaseEntityIndex) IndexName

func (b BaseEntityIndex) IndexName() string

func (BaseEntityIndex) Mapping

func (b BaseEntityIndex) Mapping() string

func (BaseEntityIndex) PkeyName

func (b BaseEntityIndex) PkeyName() string

func (BaseEntityIndex) PkeyValue

func (b BaseEntityIndex) PkeyValue() any

func (BaseEntityIndex) TableName

func (b BaseEntityIndex) TableName() string

type BaseEntitySingle

type BaseEntitySingle struct {
	BaseEntity
}

func (*BaseEntitySingle) InitProxy

func (this *BaseEntitySingle) InitProxy(some any)

func (*BaseEntitySingle) Single

func (this *BaseEntitySingle) Single() bool

type BaseProxy

type BaseProxy struct {
	// contains filtered or unexported fields
}

func NewBaseProxy

func NewBaseProxy(some any) *BaseProxy

func (*BaseProxy) AutoInject

func (this *BaseProxy) AutoInject() bool

func (*BaseProxy) Autoload

func (this *BaseProxy) Autoload() bool

func (*BaseProxy) Autowire

func (self *BaseProxy) Autowire()

func (*BaseProxy) Check

func (this *BaseProxy) Check() error

func (*BaseProxy) Clone

func (this *BaseProxy) Clone() any

func (*BaseProxy) ContainsStru

func (self *BaseProxy) ContainsStru(chiildStru any) bool

func (*BaseProxy) ContainsType

func (this *BaseProxy) ContainsType(name string) bool

func (*BaseProxy) CopyWithOption

func (this *BaseProxy) CopyWithOption(from any)

func (*BaseProxy) FromJson

func (this *BaseProxy) FromJson(body []byte) interface{}

func (*BaseProxy) IfAutowire

func (self *BaseProxy) IfAutowire() bool

func (*BaseProxy) IfBaseEntity

func (this *BaseProxy) IfBaseEntity() bool

func (*BaseProxy) Init

func (this *BaseProxy) Init()

func (*BaseProxy) Log

func (this *BaseProxy) Log()

func (*BaseProxy) Parse2Map

func (self *BaseProxy) Parse2Map() (map[string]any, error)

func (*BaseProxy) SetSome

func (this *BaseProxy) SetSome(some any)

func (*BaseProxy) Shutdown

func (this *BaseProxy) Shutdown()

func (*BaseProxy) Single

func (this *BaseProxy) Single() bool

func (*BaseProxy) Some

func (this *BaseProxy) Some() any

func (*BaseProxy) String

func (this *BaseProxy) String() string

func (*BaseProxy) ToJson

func (this *BaseProxy) ToJson() string

func (*BaseProxy) ToJsonBytes

func (this *BaseProxy) ToJsonBytes() []byte

func (*BaseProxy) ToPrettyString

func (this *BaseProxy) ToPrettyString() string

func (*BaseProxy) ToString

func (this *BaseProxy) ToString() string

func (*BaseProxy) ValueFrom

func (this *BaseProxy) ValueFrom(from any)

func (*BaseProxy) ValueOf

func (this *BaseProxy) ValueOf(another interface{})

type IchubError

type IchubError struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

func NewIchubError

func NewIchubError(code int, msg string) *IchubError

func NewIchubErrorServer

func NewIchubErrorServer() *IchubError

func (*IchubError) Error

func (this *IchubError) Error() string

type IndexObjectAdapter

type IndexObjectAdapter struct {
	baseindex.IndexMapping
}

func DefaultAdapter

func DefaultAdapter(indexObject baseindex.IndexObject) *IndexObjectAdapter

func NewIndexObjectAdapter

func NewIndexObjectAdapter(indexObject baseindex.IndexObject) *IndexObjectAdapter

func (IndexObjectAdapter) IndexAlaisName

func (b IndexObjectAdapter) IndexAlaisName() string

func (IndexObjectAdapter) IndexName

func (b IndexObjectAdapter) IndexName() string

func (IndexObjectAdapter) Mapping

func (b IndexObjectAdapter) Mapping() string

Jump to

Keyboard shortcuts

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