优化结构
This commit is contained in:
@@ -13,9 +13,12 @@ type API struct {
|
||||
Description string
|
||||
APIGroup string
|
||||
Method string
|
||||
OrderKey string
|
||||
Desc bool
|
||||
StrictAll bool
|
||||
}
|
||||
|
||||
type APIFilter struct {
|
||||
Path, Description, APIGroup, Method string
|
||||
OrderKey string
|
||||
Desc, StrictAll bool
|
||||
}
|
||||
|
||||
type APIRepo interface {
|
||||
@@ -23,7 +26,7 @@ type APIRepo interface {
|
||||
UpdateAPI(context.Context, *API) error
|
||||
DeleteAPIs(context.Context, []uint) error
|
||||
FindAPI(context.Context, uint) (*API, error)
|
||||
ListAPIs(context.Context, int, int, *API) ([]*API, int64, error)
|
||||
ListAPIs(context.Context, int, int, *APIFilter) ([]*API, int64, error)
|
||||
APIRoleIDs(context.Context, string, string) ([]uint, error)
|
||||
SetAPIRoles(context.Context, string, string, []uint) error
|
||||
CheckPolicyStore(context.Context) error
|
||||
|
||||
Reference in New Issue
Block a user