Skip to content

Commit

Permalink
页面展示更多方法元数据
Browse files Browse the repository at this point in the history
  • Loading branch information
lvyahui8 committed Sep 27, 2024
1 parent 36e4143 commit da5595a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ellyn_agent/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package ellyn_agent
import (
"embed"
_ "embed"
"encoding/json"
"fmt"
"github.com/lvyahui8/ellyn/ellyn_common/asserts"
"github.com/lvyahui8/ellyn/ellyn_common/collections"
Expand Down Expand Up @@ -186,6 +187,10 @@ func (vdl *VarDefList) Count() int {
return len(vdl.idx2name)
}

func (vdl *VarDefList) MarshalJSON() ([]byte, error) {
return json.Marshal(vdl.Encode())
}

func decodeVarDef(str string) *VarDefList {
if str == "" {
return NewVarDefList(nil)
Expand Down
8 changes: 8 additions & 0 deletions viewer/src/Meta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ function Meta() {
title: 'Block数',
dataIndex: 'BlockCnt',
},
{
title: '参数列表',
dataIndex: 'ArgsList',
},
{
title: '返回值列表',
dataIndex: 'ReturnList',
},
{
title : '操作',
render : function(text, record, index) {
Expand Down

0 comments on commit da5595a

Please sign in to comment.