Skip to content

Commit

Permalink
feature: add string issue TencentBlueKing#13
Browse files Browse the repository at this point in the history
  • Loading branch information
rentiansheng committed Jul 2, 2019
1 parent a5d486e commit e2366d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/framework/api/wrapper_business.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,7 @@ func (cli *BusinessWrapper) GetOperator() (string, error) {
}
return vals.String(fieldBizOperator), nil
}

func (cli *BusinessWrapper) String() string {
return cli.business.String()
}
6 changes: 6 additions & 0 deletions src/framework/core/output/module/inst/inst_business.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ type BusinessInterface interface {

SetValue(key string, value interface{}) error
GetValues() (types.MapStr, error)

String() string
}

type business struct {
Expand Down Expand Up @@ -161,3 +163,7 @@ func (cli *business) Save() error {

return cli.Create()
}

func (cli *business) String() string {
return string(cli.datas.ToJSON())
}

0 comments on commit e2366d5

Please sign in to comment.