web

package
v1.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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 Page

type Page struct {
	Offset int64 `json:"offset,omitempty"`
	Limit  int64 `json:"limit,omitempty"`
}

type RelationType

type RelationType struct {
	ID             int64  `json:"id"`
	Name           string `json:"name"`
	UID            string `json:"uid"`
	SourceDescribe string `json:"source_describe"`
	TargetDescribe string `json:"target_describe"`
}

type RelationTypeHandler

type RelationTypeHandler struct {
	capability.IRegistry
	// contains filtered or unexported fields
}

func NewRelationTypeHandler

func NewRelationTypeHandler(svc service.RelationTypeService) *RelationTypeHandler

func (*RelationTypeHandler) Create

func (*RelationTypeHandler) Delete

func (*RelationTypeHandler) List

func (h *RelationTypeHandler) List(ctx *gin.Context, req Page) (ginx.Result, error)

func (*RelationTypeHandler) PrivateRoute

func (h *RelationTypeHandler) PrivateRoute(server *gin.Engine)

PrivateRoute 注册关系类型管理需要中心化登录及权限判定(由 EIAM SDK 统一拦截承载)的私有路由

func (*RelationTypeHandler) Update

type RetrieveRelationType

type RetrieveRelationType struct {
	Total         int64          `json:"total,omitempty"`
	RelationTypes []RelationType `json:"relation_types,omitempty"`
}

type UpdateRelationTypeReq

type UpdateRelationTypeReq struct {
	ID             int64  `json:"id"`
	Name           string `json:"name"`
	SourceDescribe string `json:"source_describe"`
	TargetDescribe string `json:"target_describe"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL