router

package
v1.3.4-beta Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IExportRouterModule

type IExportRouterModule interface {
	system.IExportModule[router_dto.Export]
}

type IRouterModule

type IRouterModule interface {
	// Detail 获取API详情
	Detail(ctx context.Context, serviceId string, apiId string) (*router_dto.Detail, error)
	// SimpleDetail 获取API简要详情
	SimpleDetail(ctx context.Context, serviceId string, apiId string) (*router_dto.SimpleDetail, error)
	// Search 获取API列表
	Search(ctx context.Context, keyword string, serviceId string) ([]*router_dto.Item, error)
	// SimpleSearch 获取API简要列表
	SimpleSearch(ctx context.Context, keyword string, serviceId string) ([]*router_dto.SimpleItem, error)
	SimpleList(ctx context.Context, serviceId string) ([]*router_dto.SimpleItem, error)
	// Create 创建API
	Create(ctx context.Context, serviceId string, dto *router_dto.Create) (*router_dto.SimpleDetail, error)
	// Edit 编辑API
	Edit(ctx context.Context, serviceId string, apiId string, dto *router_dto.Edit) (*router_dto.SimpleDetail, error)
	// Delete 删除API
	Delete(ctx context.Context, serviceId string, apiId string) error
	// Prefix 获取API前缀
	Prefix(ctx context.Context, serviceId string) (string, error)

	SimpleAPIs(ctx context.Context, input *router_dto.InputSimpleAPI) ([]*router_dto.SimpleItem, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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