diff --git a/src/bean/vo/response/dict.go b/src/bean/vo/response/dict.go index c1eef53b74852f48084e426062afeedb9bf89a26..ea3e1acf0c3507f421843560cafed781cbca66ff 100644 --- a/src/bean/vo/response/dict.go +++ b/src/bean/vo/response/dict.go @@ -14,6 +14,7 @@ type DictListRes struct { MaxVal string `json:"max_val"` Unit string `json:"unit"` Sort int `json:"sort"` + BuiltIn int `json:"built_in"` Children []*DictListRes `json:"children,omitempty"` } diff --git a/src/service/component_dict.go b/src/service/component_dict.go index a41e7611d89740315f3cbf72fd00141b8ee73a9b..eb9335548cf97fb79e7909a7d2bce5c7a22ac385 100644 --- a/src/service/component_dict.go +++ b/src/service/component_dict.go @@ -64,7 +64,7 @@ func (c *Dict) List(req request.DictReq) (dictListRes []*response.DictListRes, c } session := db.NewSession() - session.Select("id,class,name,parent_id,status,min_val,max_val,sort,description,updated_at,unit").Table("dict") + session.Select("id,class,name,parent_id,status,min_val,max_val,sort,description,updated_at,unit,built_in").Table("dict") session.Where("is_delete = 0 ") if req.Id != "" {