• qiuqunfeng's avatar
    Add attack classes endpoint and service implementation · c38228a3
    qiuqunfeng authored
    - Introduce a new GET endpoint for listing attack classes in the WAF router.
    - Implement AttackClassesList method in WafController to handle requests and return attack class data based on the specified language.
    - Enhance the WAF service with ListAttackClasses method to retrieve attack classes and support localization for descriptions.
    - Define AttackClasses struct to standardize the response format for attack class data.
    c38228a3
waf.go 1.77 KB