Documentation
¶
Index ¶
- type CreateRelationTypeReq
- type DeleteRelationTypeReq
- type Page
- type RelationType
- type RelationTypeHandler
- func (h *RelationTypeHandler) Create(ctx *gin.Context, req CreateRelationTypeReq) (ginx.Result, error)
- func (h *RelationTypeHandler) Delete(ctx *gin.Context, req DeleteRelationTypeReq) (ginx.Result, error)
- func (h *RelationTypeHandler) List(ctx *gin.Context, req Page) (ginx.Result, error)
- func (h *RelationTypeHandler) PrivateRoute(server *gin.Engine)
- func (h *RelationTypeHandler) Update(ctx *gin.Context, req UpdateRelationTypeReq) (ginx.Result, error)
- type RetrieveRelationType
- type UpdateRelationTypeReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRelationTypeReq ¶
type CreateRelationTypeReq struct {
Name string `json:"name"`
UID string `json:"uid"`
SourceDescribe string `json:"source_describe"`
TargetDescribe string `json:"target_describe"`
}
CreateRelationTypeReq 关联关系类型
type DeleteRelationTypeReq ¶
type DeleteRelationTypeReq struct {
Id int64 `json:"id"`
}
type RelationType ¶
type RelationTypeHandler ¶
type RelationTypeHandler struct {
capability.IRegistry
// contains filtered or unexported fields
}
func NewRelationTypeHandler ¶
func NewRelationTypeHandler(svc service.RelationTypeService) *RelationTypeHandler
func (*RelationTypeHandler) Create ¶
func (h *RelationTypeHandler) Create(ctx *gin.Context, req CreateRelationTypeReq) (ginx.Result, error)
func (*RelationTypeHandler) Delete ¶
func (h *RelationTypeHandler) Delete(ctx *gin.Context, req DeleteRelationTypeReq) (ginx.Result, error)
func (*RelationTypeHandler) PrivateRoute ¶
func (h *RelationTypeHandler) PrivateRoute(server *gin.Engine)
PrivateRoute 注册关系类型管理需要中心化登录及权限判定(由 EIAM SDK 统一拦截承载)的私有路由
func (*RelationTypeHandler) Update ¶
func (h *RelationTypeHandler) Update(ctx *gin.Context, req UpdateRelationTypeReq) (ginx.Result, error)
type RetrieveRelationType ¶
type RetrieveRelationType struct {
Total int64 `json:"total,omitempty"`
RelationTypes []RelationType `json:"relation_types,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.