Commit 9a5e6c16 authored by 黄智's avatar 黄智

字典新增内置数据

parent 4bc6f257
...@@ -14,6 +14,7 @@ type DictListRes struct { ...@@ -14,6 +14,7 @@ type DictListRes struct {
MaxVal string `json:"max_val"` MaxVal string `json:"max_val"`
Unit string `json:"unit"` Unit string `json:"unit"`
Sort int `json:"sort"` Sort int `json:"sort"`
BuiltIn int `json:"built_in"`
Children []*DictListRes `json:"children,omitempty"` Children []*DictListRes `json:"children,omitempty"`
} }
......
...@@ -64,7 +64,7 @@ func (c *Dict) List(req request.DictReq) (dictListRes []*response.DictListRes, c ...@@ -64,7 +64,7 @@ func (c *Dict) List(req request.DictReq) (dictListRes []*response.DictListRes, c
} }
session := db.NewSession() 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 ") session.Where("is_delete = 0 ")
if req.Id != "" { if req.Id != "" {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment