正在显示
3 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -88,6 +88,7 @@ type ( | @@ -88,6 +88,7 @@ type ( | ||
| 88 | CategoryOptions { | 88 | CategoryOptions { |
| 89 | Value int64 `json:"value"` // 分类ID | 89 | Value int64 `json:"value"` // 分类ID |
| 90 | Label string `json:"label"` // 分组名称 | 90 | Label string `json:"label"` // 分组名称 |
| 91 | + Enable int `json:"enable,optional,omitempty"` // 启用状态 1:启用 | ||
| 91 | //Options []CategoryOptionValue `json:"options,omitempty"` | 92 | //Options []CategoryOptionValue `json:"options,omitempty"` |
| 92 | } | 93 | } |
| 93 | CategoryOptionValue { | 94 | CategoryOptionValue { |
| @@ -40,6 +40,7 @@ func (l *ArticleCategoryOptionsLogic) ArticleCategoryOptions(req *types.Category | @@ -40,6 +40,7 @@ func (l *ArticleCategoryOptionsLogic) ArticleCategoryOptions(req *types.Category | ||
| 40 | list = append(list, types.CategoryOptions{ | 40 | list = append(list, types.CategoryOptions{ |
| 41 | Label: item.Name, | 41 | Label: item.Name, |
| 42 | Value: item.Id, | 42 | Value: item.Id, |
| 43 | + Enable: item.Enable, | ||
| 43 | }) | 44 | }) |
| 44 | } | 45 | } |
| 45 | resp = &types.CategoryOptionsResponse{ | 46 | resp = &types.CategoryOptionsResponse{ |
| @@ -1795,6 +1795,7 @@ type CategoryOptionsResponse struct { | @@ -1795,6 +1795,7 @@ type CategoryOptionsResponse struct { | ||
| 1795 | type CategoryOptions struct { | 1795 | type CategoryOptions struct { |
| 1796 | Value int64 `json:"value"` // 分类ID | 1796 | Value int64 `json:"value"` // 分类ID |
| 1797 | Label string `json:"label"` // 分组名称 | 1797 | Label string `json:"label"` // 分组名称 |
| 1798 | + Enable int `json:"enable,optional,omitempty"` // 启用状态 1:启用 | ||
| 1798 | } | 1799 | } |
| 1799 | 1800 | ||
| 1800 | type CategoryOptionValue struct { | 1801 | type CategoryOptionValue struct { |
-
请 注册 或 登录 后发表评论