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
+6 -6
View File
@@ -5,19 +5,20 @@ package grant
import (
"github.com/spf13/cobra"
"mbase/app/operator"
)
type Util struct {
lg *operator.Logic
rootCmd *cobra.Command
oper *operator.Logic
rootCmd *cobra.Command
createGrantParams createGrantParams
deleteGrantParams deleteGrantParams
}
func NewUtil() *Util {
return &Util{}
func NewUtil(oper *operator.Logic) *Util {
return &Util{
oper: oper,
}
}
func (util *Util) GetRooCmd() *cobra.Command {
@@ -51,4 +52,3 @@ func (util *Util) BuildCmds() *cobra.Command {
util.rootCmd = rootCmd
return util.rootCmd
}