working commit

This commit is contained in:
2026-06-06 17:49:33 +02:00
parent c96602e933
commit 0e303ef96a
12 changed files with 89 additions and 21 deletions
+7 -3
View File
@@ -4,10 +4,13 @@
package account
import (
"mbase/app/operator"
"github.com/spf13/cobra"
)
type Util struct {
oper *operator.Logic
rootCmd *cobra.Command
createAccountParams createAccountParams
listAccountsParams listAccountsParams
@@ -15,8 +18,10 @@ type Util struct {
deleteAccountParams deleteAccountParams
}
func NewUtil() *Util {
return &Util{}
func NewUtil(oper *operator.Logic) *Util {
return &Util{
oper: oper,
}
}
func (util *Util) GetRooCmd() *cobra.Command {
@@ -65,4 +70,3 @@ func (util *Util) BuildCmds() *cobra.Command {
util.rootCmd = rootCmd
return util.rootCmd
}