ai_api

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: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertStruct

func ConvertStruct[T any](data interface{}) (*T, error)

Types

type IAPIModule

type IAPIModule interface {
	Create(ctx context.Context, serviceId string, input *ai_api_dto.CreateAPI) error
	Edit(ctx context.Context, serviceId string, apiId string, input *ai_api_dto.EditAPI) error
	Delete(ctx context.Context, serviceId string, apiId string) error
	List(ctx context.Context, keyword, serviceId string) ([]*ai_api_dto.APIItem, error)
	Get(ctx context.Context, serviceId string, apiId string) (*ai_api_dto.API, error)
	Prefix(ctx context.Context, serviceId string) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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