Documentation
¶
Index ¶
- type CreateModelGroupReq
- type CreateModelRelationReq
- type CreateModelReq
- type DeleteModelByUidReq
- type DeleteModelGroup
- type DetailModelReq
- type Handler
- func (h *Handler) CreateGroup(ctx *gin.Context, req CreateModelGroupReq) (ginx.Result, error)
- func (h *Handler) CreateModel(ctx *gin.Context, req CreateModelReq) (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) DetailModel(ctx *gin.Context, req DetailModelReq) (ginx.Result, error)
- func (h *Handler) FindRelationModelDiagram(ctx *gin.Context, req Page) (ginx.Result, error)
- func (h *Handler) FindRelationModelGraph(ctx *gin.Context, req Page) (ginx.Result, error)
- func (h *Handler) ListModelGroups(ctx *gin.Context, req Page) (ginx.Result, error)
- func (h *Handler) ListModels(ctx *gin.Context, req Page) (ginx.Result, error)
- func (h *Handler) ListModelsByGroupId(ctx *gin.Context, req Page) (ginx.Result, error)
- func (h *Handler) RegisterRoutes(server *gin.Engine)
- type Model
- type ModelDiagram
- type ModelGroup
- type ModelLine
- type ModelListByGroupId
- type ModelNode
- type ModelRelation
- type Page
- type RelationModel
- type RetrieveModelGroupsListResp
- type RetrieveModelListByGroupId
- type RetrieveModelsListResp
- type RetrieveRelationModelDiagram
- type RetrieveRelationModelGraph
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 DetailModelReq ¶
type DetailModelReq struct {
ID int64 `json:"id"`
}
type Handler ¶
type Handler struct {
RMSvc relation.RMSvc
AttrSvc attribute.Service
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) CreateGroup ¶
func (*Handler) CreateModel ¶
func (*Handler) DeleteModelByUid ¶
func (*Handler) DeleteModelGroup ¶
func (*Handler) DetailModel ¶
func (*Handler) FindRelationModelDiagram ¶
func (*Handler) FindRelationModelGraph ¶
func (*Handler) ListModelGroups ¶
func (*Handler) ListModels ¶
func (*Handler) ListModelsByGroupId ¶
func (*Handler) RegisterRoutes ¶
type ModelDiagram ¶
type ModelDiagram struct {
ID int64 `json:"id"`
Icon string `json:"icon"`
ModelUID string `json:"model_uid"`
ModelName string `json:"model_name"`
Assets []RelationModel `json:"assets"`
}
type ModelGroup ¶
type ModelListByGroupId ¶
type ModelRelation ¶
type RelationModel ¶
type RelationModel struct {
ID int64 `json:"id"`
RelationTypeUID string `json:"relation_type_uid"`
TargetModelUID string `json:"target_model_uid"`
}
RelationModel 拓补图模型关联节点信息
type RetrieveModelGroupsListResp ¶
type RetrieveModelGroupsListResp struct {
Total int64 `json:"total,omitempty"`
Mgs []ModelGroup `json:"model_groups,omitempty"`
}
type RetrieveModelListByGroupId ¶
type RetrieveModelListByGroupId struct {
Mgs []ModelListByGroupId `json:"mgs"`
}
type RetrieveModelsListResp ¶
type RetrieveRelationModelDiagram ¶
type RetrieveRelationModelDiagram struct {
Diagrams []ModelDiagram `json:"diagrams"`
}
Click to show internal directories.
Click to hide internal directories.