Documentation ¶
Index ¶
- type ImpNamespaceDao
- func (inst *ImpNamespaceDao) Find(id dxo.NamespaceID) (*entity.Namespace, error)
- func (inst *ImpNamespaceDao) Insert(o *entity.Namespace) (*entity.Namespace, error)
- func (inst *ImpNamespaceDao) ListAll() ([]*entity.Namespace, error)
- func (inst *ImpNamespaceDao) Remove(id dxo.NamespaceID) error
- func (inst *ImpNamespaceDao) Update(id dxo.NamespaceID, o *entity.Namespace) (*entity.Namespace, error)
- type ImpNamespaceService
- func (inst *ImpNamespaceService) Find(ctx context.Context, id dxo.NamespaceID) (*dto.Namespace, error)
- func (inst *ImpNamespaceService) Insert(ctx context.Context, o *dto.Namespace) (*dto.Namespace, error)
- func (inst *ImpNamespaceService) ListAll(ctx context.Context) ([]*dto.Namespace, error)
- func (inst *ImpNamespaceService) Remove(ctx context.Context, id dxo.NamespaceID) error
- func (inst *ImpNamespaceService) Update(ctx context.Context, id dxo.NamespaceID, o *dto.Namespace) (*dto.Namespace, error)
- type NamespaceController
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) ListAll ¶
func (inst *ImpNamespaceDao) ListAll() ([]*entity.Namespace, error)
ListAll ...
func (*ImpNamespaceDao) Remove ¶
func (inst *ImpNamespaceDao) Remove(id dxo.NamespaceID) error
func (*ImpNamespaceDao) Update ¶
func (inst *ImpNamespaceDao) Update(id dxo.NamespaceID, o *entity.Namespace) (*entity.Namespace, error)
type ImpNamespaceService ¶
type ImpNamespaceService struct { markup.Component `id:"NamespaceService"` MyDAO dao.NamespaceDAO `inject:"#NamespaceDAO"` }
ImpNamespaceService ...
func (*ImpNamespaceService) Find ¶
func (inst *ImpNamespaceService) Find(ctx context.Context, id dxo.NamespaceID) (*dto.Namespace, error)
Find ...
func (*ImpNamespaceService) Remove ¶
func (inst *ImpNamespaceService) Remove(ctx context.Context, id dxo.NamespaceID) error
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 ¶
func (inst *NamespaceController) Init(ec glass.EngineConnection) error
Init 初始化
Click to show internal directories.
Click to hide internal directories.