fix(rules): add swaggertype annotations for Rule fields

This commit is contained in:
yusing
2025-09-14 00:04:14 +08:00
parent f31b1b5ed3
commit 4ed6c7c74d

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"`
}
)