working commit

This commit is contained in:
2026-06-06 18:48:40 +02:00
parent 3a5f624ba4
commit 25d01fc940
16 changed files with 107 additions and 61 deletions
+14 -13
View File
@@ -13,27 +13,28 @@ func (util *Util) CreateAccount(cmd *cobra.Command, args []string) {
printResponse(res, err)
}
type createAccountParams struct{
Username string
Password string
type createAccountParams struct {
Username string
Password string
}
type createAccountResult struct{}
func (util *Util) createAccount(params createAccountParams) (createAccountResult, error) {
var err error
res := createAccountResult{}
/*
operParams := &mbctl.CreateAccountParams{
Username: params.Username,
Password: params.Password,
}
res, err = util.lg.CreateAccount(ctx, operID, params)
if err != nil {
return res, err
}
*/
/*
operParams := &mbctl.CreateAccountParams{
Username: params.Username,
Password: params.Password,
}
res, err = util.lg.CreateAccount(ctx, operID, params)
if err != nil {
return res, err
}
*/
return res, err
}
/*
func (util *Util) CreateAccount(ctx context.Context, operID string) (*mbctl.CreateAccountResult, error) {
var err error