mirror of
https://github.com/rustfs/console.git
synced 2026-09-01 15:17:45 +08:00
17 lines
373 B
TypeScript
17 lines
373 B
TypeScript
export function buildListUserServiceAccountsRequest(userName: string) {
|
|
return {
|
|
url: "/list-service-accounts",
|
|
params: { user: userName },
|
|
}
|
|
}
|
|
|
|
export function buildCreateUserServiceAccountRequest(userName: string, data: Record<string, unknown>) {
|
|
return {
|
|
url: "/add-service-account",
|
|
body: {
|
|
targetUser: userName,
|
|
...data,
|
|
},
|
|
}
|
|
}
|