@@ -28,9 +28,9 @@ type ReadOnlyResourceManager interface {
2828 // GetByKey returns the resource with the given resource key
2929 GetByKey (rk model.ResourceKind , key string ) (r model.Resource , exist bool , err error )
3030 // ListByIndexes returns the resources with the given indexes, indexes is a map of index name and index value
31- ListByIndexes (rk model.ResourceKind , indexes map [string ]interface {} ) ([]model.Resource , error )
31+ ListByIndexes (rk model.ResourceKind , indexes map [string ]string ) ([]model.Resource , error )
3232 // PageListByIndexes page list the resources with the given indexes, indexes is a map of index name and index value
33- PageListByIndexes (rk model.ResourceKind , indexes map [string ]interface {} , pr model.PageReq ) (* model.PageData [model.Resource ], error )
33+ PageListByIndexes (rk model.ResourceKind , indexes map [string ]string , pr model.PageReq ) (* model.PageData [model.Resource ], error )
3434 // PageSearchResourceByConditions page fuzzy search resource by conditions, conditions cannot be empty
3535 // TODO support multiple conditions
3636 PageSearchResourceByConditions (rk model.ResourceKind , conditions []string , pr model.PageReq ) (* model.PageData [model.Resource ], error )
@@ -74,7 +74,7 @@ func (rm *resourcesManager) GetByKey(rk model.ResourceKind, key string) (r model
7474 return item .(model.Resource ), exist , err
7575}
7676
77- func (rm * resourcesManager ) ListByIndexes (rk model.ResourceKind , indexes map [string ]interface {} ) ([]model.Resource , error ) {
77+ func (rm * resourcesManager ) ListByIndexes (rk model.ResourceKind , indexes map [string ]string ) ([]model.Resource , error ) {
7878 rs , err := rm .StoreRouter .ResourceKindRoute (rk )
7979 if err != nil {
8080 return nil , err
@@ -88,7 +88,7 @@ func (rm *resourcesManager) ListByIndexes(rk model.ResourceKind, indexes map[str
8888
8989func (rm * resourcesManager ) PageListByIndexes (
9090 rk model.ResourceKind ,
91- indexes map [string ]interface {} ,
91+ indexes map [string ]string ,
9292 pr model.PageReq ) (* model.PageData [model.Resource ], error ) {
9393
9494 rs , err := rm .StoreRouter .ResourceKindRoute (rk )
0 commit comments