fix(rule): add type and default fields to rule group model and update related logic

This commit is contained in:
Chang lue Tsen
2025-07-16 12:46:47 -04:00
committed by Leif Draven
parent 94d316ec52
commit 979e39b9e5
4 changed files with 8 additions and 2 deletions
@@ -38,9 +38,11 @@ func (l *GetRuleGroupListLogic) GetRuleGroupList() (resp *types.GetRuleGroupResp
Id: v.Id,
Icon: v.Icon,
Name: v.Name,
Type: v.Type,
Tags: strings.Split(v.Tags, ","),
Rules: v.Rules,
Enable: v.Enable,
Default: v.Default,
CreatedAt: v.CreatedAt.UnixMilli(),
UpdatedAt: v.UpdatedAt.UnixMilli(),
}