Documentation
¶
Index ¶
- type CreateModelGroupReq
- type CreateModelRelationReq
- type CreateModelReq
- type DeleteModelByUidReq
- type DeleteModelGroup
- type DeleteModelRelationReq
- type DetailModelReq
- type GetByUidsReq
- type Handler
- func (h *Handler) CreateModel(ctx *gin.Context, req CreateModelReq) (ginx.Result, error)
- func (h *Handler) CreateModelGroup(ctx *gin.Context, req CreateModelGroupReq) (ginx.Result, error)
- func (h *Handler) CreateModelRelation(ctx *gin.Context, req CreateModelRelationReq) (ginx.Result, error)
- func (h *Handler) DeleteModelByUid(ctx *gin.Context, req DeleteModelByUidReq) (ginx.Result, error)
- func (h *Handler) DeleteModelGroup(ctx *gin.Context, req DeleteModelGroup) (ginx.Result, error)
- func (h *Handler) DeleteModelRelation(ctx *gin.Context, req DeleteModelRelationReq) (ginx.Result, error)
- func (h *Handler) DetailModel(ctx *gin.Context) (ginx.Result, error)
- func (h *Handler) FindModelsGraph(ctx *gin.Context, req Page) (ginx.Result, error)
- func (h *Handler) GetByUids(ctx *gin.Context, req GetByUidsReq) (ginx.Result, error)
- func (h *Handler) ListModelGroups(ctx *gin.Context, req Page) (ginx.Result, error)
- func (h *Handler) ListModelUIDRelation(ctx *gin.Context, req ListModelRelationReq) (ginx.Result, error)
- func (h *Handler) ListModels(ctx *gin.Context, req Page) (ginx.Result, error)
- func (h *Handler) ListModelsByGroup(ctx *gin.Context, req Page) (ginx.Result, error)
- func (h *Handler) PrivateRoutes(server *gin.Engine)
- func (h *Handler) RenameModelGroup(ctx *gin.Context, req RenameModelGroupReq) (ginx.Result, error)
- func (h *Handler) UpdateModelRelation(ctx *gin.Context, req UpdateModelRelationReq) (ginx.Result, error)
- type ListModelRelationReq
- type Model
- type ModelGroup
- type ModelGroupItem
- type ModelLine
- type ModelNode
- type ModelRelation
- type ModelSummaryVO
- type Page
- type RenameModelGroupReq
- type RetrieveModelGroupedListResp
- type RetrieveModelGroupsListResp
- type RetrieveModelsListResp
- type RetrieveRelationModelGraph
- type RetrieveRelationModels
- type UpdateModelRelationReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateModelGroupReq ¶
type CreateModelGroupReq struct {
Name string `json:"name"`
}
type CreateModelRelationReq ¶
type CreateModelReq ¶
type DeleteModelByUidReq ¶
type DeleteModelByUidReq struct {
ModelUid string `json:"model_uid"`
}
type DeleteModelGroup ¶
type DeleteModelGroup struct {
ID int64 `json:"id"`
}
type DeleteModelRelationReq ¶
type DeleteModelRelationReq struct {
Id int64 `json:"id"`
}
type DetailModelReq ¶
type DetailModelReq struct {
ID int64 `json:"id"`
}
type GetByUidsReq ¶
type GetByUidsReq struct {
Uids []string `json:"uids"`
}
type Handler ¶
type Handler struct {
RMSvc relationservice.RelationModelService
capability.IRegistry
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(svc modelservice.Service, mgSvc modelservice.MGService, rmSvc relationservice.RelationModelService, resourceSvc resourceservice.EncryptedSvc) *Handler
func (*Handler) CreateModel ¶
func (*Handler) CreateModelGroup ¶
func (*Handler) CreateModelRelation ¶
func (*Handler) DeleteModelByUid ¶
func (*Handler) DeleteModelGroup ¶
func (*Handler) DeleteModelRelation ¶
func (*Handler) FindModelsGraph ¶
FindModelsGraph 查询模型拓扑图
func (*Handler) ListModelGroups ¶
func (*Handler) ListModelUIDRelation ¶
func (h *Handler) ListModelUIDRelation(ctx *gin.Context, req ListModelRelationReq) (ginx.Result, error)
ListModelUIDRelation 根据模型唯一索引名称,查询所有关联信息
func (*Handler) ListModels ¶
func (*Handler) ListModelsByGroup ¶
func (*Handler) PrivateRoutes ¶
PrivateRoutes 注册模型管理模块需要中心化登录及权限判定(由 EIAM SDK 统一拦截承载)的私有路由
func (*Handler) RenameModelGroup ¶
func (*Handler) UpdateModelRelation ¶
type ListModelRelationReq ¶
type ModelGroup ¶
type ModelGroupItem ¶
type ModelRelation ¶
type ModelSummaryVO ¶
type RenameModelGroupReq ¶
type RetrieveModelGroupedListResp ¶
type RetrieveModelGroupedListResp struct {
Total int64 `json:"total"`
Groups []ModelGroupItem `json:"groups"`
Models []ModelSummaryVO `json:"models"`
}
type RetrieveModelGroupsListResp ¶
type RetrieveModelGroupsListResp struct {
Total int64 `json:"total,omitempty"`
Mgs []ModelGroup `json:"model_groups,omitempty"`
}
type RetrieveModelsListResp ¶
type RetrieveRelationModels ¶
type RetrieveRelationModels struct {
Total int64 `json:"total,omitempty"`
ModelRelations []ModelRelation `json:"model_relations,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.