Documentation
¶
Index ¶
- type CreateModelGroupReq
- type CreateModelRelationReq
- type CreateModelReq
- type DeleteModelByUidReq
- type DeleteModelGroup
- type DetailModelReq
- 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) 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) FindModelsGraph(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) ListModelsByGroup(ctx *gin.Context, req Page) (ginx.Result, error)
- func (h *Handler) PrivateRoutes(server *gin.Engine)
- type Model
- type ModelGroup
- type ModelLine
- type ModelListByGroupId
- type ModelNode
- type ModelRelation
- type Page
- type RetrieveModelGroupsListResp
- type RetrieveModelListByGroupId
- type RetrieveModelsListResp
- 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) CreateModel ¶
func (*Handler) CreateModelGroup ¶ added in v1.6.0
func (*Handler) DeleteModelByUid ¶
func (*Handler) DeleteModelGroup ¶
func (*Handler) DetailModel ¶
func (*Handler) FindModelsGraph ¶ added in v1.6.0
FindModelsGraph 查询模型拓扑图
func (*Handler) ListModelGroups ¶
func (*Handler) ListModels ¶
func (*Handler) ListModelsByGroup ¶ added in v1.6.0
func (*Handler) PrivateRoutes ¶ added in v1.3.0
type ModelGroup ¶
type ModelListByGroupId ¶
type ModelRelation ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.