gitlab.com/evatix-go/core@v1.3.55/keymk/KeyLegendCompileRequest.go (about) 1 package keymk 2 3 type KeyLegendCompileRequest struct { 4 StateName, 5 UserId, 6 GroupId, 7 ItemId string 8 } 9 10 func (it KeyLegendCompileRequest) NewKeyLegend( 11 option *Option, 12 legendName LegendName, 13 isAttachLegend bool, 14 rootName, 15 packageName, 16 stateName string, 17 ) *KeyWithLegend { 18 return NewKeyWithLegend.All( 19 option, 20 legendName, 21 isAttachLegend, 22 rootName, 23 packageName, 24 it.GroupId, 25 stateName) 26 } 27 28 func (it KeyLegendCompileRequest) NewKeyLegendDefaults( 29 rootName, 30 packageName, 31 stateName string, 32 ) *KeyWithLegend { 33 return NewKeyWithLegend.All( 34 JoinerOption, 35 ShortLegends, 36 false, 37 rootName, 38 packageName, 39 it.GroupId, 40 stateName) 41 }