working commit
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user