working commit
This commit is contained in:
+2
-2
@@ -18,7 +18,7 @@ import (
|
||||
"mstore/app/operator"
|
||||
)
|
||||
|
||||
func (cli *Client) CreateGrant(ctx context.Context, hosturi, accountID, operation, pattern string) error {
|
||||
func (cli *Client) CreateGrant(ctx context.Context, hosturi, accountID, right, pattern string) error {
|
||||
var err error
|
||||
|
||||
apiuri, err := setApiPath(hosturi, "/v3/api/grant/create")
|
||||
@@ -27,7 +27,7 @@ func (cli *Client) CreateGrant(ctx context.Context, hosturi, accountID, operatio
|
||||
}
|
||||
operParams := operator.CreateGrantParams{
|
||||
AccountID: accountID,
|
||||
Operation: operation,
|
||||
Right: right,
|
||||
Pattern: pattern,
|
||||
}
|
||||
paramsJson, err := json.Marshal(operParams)
|
||||
|
||||
Reference in New Issue
Block a user