mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-26 16:01:56 +08:00
26 lines
750 B
Go
26 lines
750 B
Go
package system_apikey
|
|
|
|
import (
|
|
"context"
|
|
"reflect"
|
|
|
|
"github.com/eolinker/go-common/autowire"
|
|
|
|
system_apikey_dto "github.com/APIParkLab/APIPark/module/system-apikey/dto"
|
|
)
|
|
|
|
type IAPIKeyModule interface {
|
|
Create(ctx context.Context, input *system_apikey_dto.Create) error
|
|
Update(ctx context.Context, id string, input *system_apikey_dto.Update) error
|
|
Delete(ctx context.Context, id string) error
|
|
Get(ctx context.Context, id string) (*system_apikey_dto.APIKey, error)
|
|
Search(ctx context.Context, keyword string) ([]*system_apikey_dto.Item, error)
|
|
SimpleList(ctx context.Context) ([]*system_apikey_dto.SimpleItem, error)
|
|
}
|
|
|
|
func init() {
|
|
autowire.Auto[IAPIKeyModule](func() reflect.Value {
|
|
return reflect.ValueOf(new(imlAPIKeyModule))
|
|
})
|
|
}
|