fix(rules): add swaggertype annotations for On and Do fields in Rule struct

This commit is contained in:
yusing
2025-09-04 06:34:31 +08:00
parent 9ab00e3902
commit 920aed7bee

View File

@@ -40,8 +40,8 @@ type (
*/
Rule struct {
Name string `json:"name"`
On RuleOn `json:"on"`
Do Command `json:"do"`
On RuleOn `json:"on" swaggertype:"string"`
Do Command `json:"do" swaggertype:"string"`
}
)