service

package
v0.1.25 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: AGPL-3.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Split

func Split(parentIds []uint64) [][]uint64

Types

type ActionResultService

type ActionResultService struct {
	service.OrmBaseService
}

* 同步表结构,服务继承基本服务的方法

func GetActionResultService

func GetActionResultService() *ActionResultService

func (*ActionResultService) GetSeqName

func (this *ActionResultService) GetSeqName() string

func (*ActionResultService) ListByParentId

func (this *ActionResultService) ListByParentId(schemaName string, parentIds []uint64) []*entity.ActionResult

func (*ActionResultService) NewEntities

func (this *ActionResultService) NewEntities(data []byte) (interface{}, error)

func (*ActionResultService) NewEntity

func (this *ActionResultService) NewEntity(data []byte) (interface{}, error)

type ConnectionService

type ConnectionService struct {
	service.OrmBaseService
}

* 同步表结构,服务继承基本服务的方法

func GetConnectionService

func GetConnectionService() *ConnectionService

func (*ConnectionService) GetSeqName

func (this *ConnectionService) GetSeqName() string

func (*ConnectionService) ListByParentId

func (this *ConnectionService) ListByParentId(schemaName string, parentIds []uint64) []*entity.Connection

func (*ConnectionService) NewEntities

func (this *ConnectionService) NewEntities(data []byte) (interface{}, error)

func (*ConnectionService) NewEntity

func (this *ConnectionService) NewEntity(data []byte) (interface{}, error)

type PropertyService

type PropertyService struct {
	service.OrmBaseService
}

* 同步表结构,服务继承基本服务的方法

func GetPropertyService

func GetPropertyService() *PropertyService

func (*PropertyService) GetSeqName

func (this *PropertyService) GetSeqName() string

func (*PropertyService) ListByParentId

func (this *PropertyService) ListByParentId(schemaName string, parentIds []uint64) []*entity.Property

func (*PropertyService) NewEntities

func (this *PropertyService) NewEntities(data []byte) (interface{}, error)

func (*PropertyService) NewEntity

func (this *PropertyService) NewEntity(data []byte) (interface{}, error)

type RoleService

type RoleService struct {
	service.OrmBaseService
}

* 同步表结构,服务继承基本服务的方法

func GetRoleService

func GetRoleService() *RoleService

func (*RoleService) FindOffspring

func (this *RoleService) FindOffspring(schemaName string, parentIds []uint64, LoadNum int) ([]*entity.Role, []uint64)

* 当LoadNum=0,只加载LoadNum=0的数据;当LoadNum=-1,加载所有数据

func (*RoleService) FindSpecOffspring

func (this *RoleService) FindSpecOffspring(schemaName string, parentId uint64, specId uint64) ([]*entity.Role, []uint64)

func (*RoleService) GetSeqName

func (this *RoleService) GetSeqName() string

func (*RoleService) NewEntities

func (this *RoleService) NewEntities(data []byte) (interface{}, error)

func (*RoleService) NewEntity

func (this *RoleService) NewEntity(data []byte) (interface{}, error)

Jump to

Keyboard shortcuts

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