namespaces

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImpNamespaceDao

type ImpNamespaceDao struct {
	markup.Component `id:"NamespaceDAO"`

	AC            application.Context   `inject:"context"`
	PresetService service.PresetService `inject:"#PresetService"`
}

ImpNamespaceDao ... 目前,entity.Namespace 实际上是从资源文件里加载的

func (*ImpNamespaceDao) Find

func (inst *ImpNamespaceDao) Find(id dxo.NamespaceID) (*entity.Namespace, error)

Find ...

func (*ImpNamespaceDao) Insert

func (inst *ImpNamespaceDao) Insert(o *entity.Namespace) (*entity.Namespace, error)

func (*ImpNamespaceDao) ListAll

func (inst *ImpNamespaceDao) ListAll() ([]*entity.Namespace, error)

ListAll ...

func (*ImpNamespaceDao) Remove

func (inst *ImpNamespaceDao) Remove(id dxo.NamespaceID) error

func (*ImpNamespaceDao) Update

type ImpNamespaceService

type ImpNamespaceService struct {
	markup.Component `id:"NamespaceService"`

	MyDAO dao.NamespaceDAO `inject:"#NamespaceDAO"`
}

ImpNamespaceService ...

func (*ImpNamespaceService) Find

Find ...

func (*ImpNamespaceService) Insert

func (inst *ImpNamespaceService) Insert(ctx context.Context, o *dto.Namespace) (*dto.Namespace, error)

func (*ImpNamespaceService) ListAll

func (inst *ImpNamespaceService) ListAll(ctx context.Context) ([]*dto.Namespace, error)

ListAll ...

func (*ImpNamespaceService) Remove

func (inst *ImpNamespaceService) Remove(ctx context.Context, id dxo.NamespaceID) error

func (*ImpNamespaceService) Update

type NamespaceController

type NamespaceController struct {
	markup.RestController `class:"rest-controller"`

	NamespaceService service.NamespaceService `inject:"#NamespaceService"`
	Responder        glass.MainResponder      `inject:"#glass-main-responder"`
}

NamespaceController 命名空间控制器

func (*NamespaceController) Init

Init 初始化

Jump to

Keyboard shortcuts

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