api

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToApiInfo

func ConvertToApiInfo(apiList []*core.ApiInfo) []types.ApiInfo

Types

type CreateOrUpdateApiLogic

type CreateOrUpdateApiLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewCreateOrUpdateApiLogic

func NewCreateOrUpdateApiLogic(r *http.Request, svcCtx *svc.ServiceContext) *CreateOrUpdateApiLogic

创建或更新API

func (*CreateOrUpdateApiLogic) CreateOrUpdateApi

func (l *CreateOrUpdateApiLogic) CreateOrUpdateApi(req *types.ApiInfo) (resp *types.ApiInfo, err error)

type DeleteApiLogic

type DeleteApiLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteApiLogic

func NewDeleteApiLogic(r *http.Request, svcCtx *svc.ServiceContext) *DeleteApiLogic

删除API

func (*DeleteApiLogic) DeleteApi

func (l *DeleteApiLogic) DeleteApi(req *types.ID32Request) (resp *types.BaseResponse, err error)

type GetAllApiLogic

type GetAllApiLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGetAllApiLogic

func NewGetAllApiLogic(r *http.Request, svcCtx *svc.ServiceContext) *GetAllApiLogic

获取所有API

func (*GetAllApiLogic) GetAllApi

func (l *GetAllApiLogic) GetAllApi() (resp *types.ApiAllResponse, err error)

type ListApiLogic

type ListApiLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewListApiLogic

func NewListApiLogic(r *http.Request, svcCtx *svc.ServiceContext) *ListApiLogic

获取API列表

func (*ListApiLogic) ListApi

func (l *ListApiLogic) ListApi(req *types.ApiListRequest) (resp *types.ApiListResponse, err error)

Jump to

Keyboard shortcuts

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