Skip to content

v0.1.2 - Thêm endpoint lấy rules theo role

Choose a tag to compare

@TechMaster TechMaster released this 02 Dec 10:40
· 1 commit to main since this release

Tính năng mới

  • Thêm endpoint GET /api/rules/role/:id_name để lấy rules theo role ID hoặc name
  • Hỗ trợ tìm kiếm theo role ID (số) hoặc role name (chuỗi)
  • Thêm migration cho stored procedure get_rules_by_role để tối ưu hiệu suất
  • Thêm test script list_rule_has_role.py

Thay đổi

  • Thêm handler GetRulesByRole trong BaseRuleHandler
  • Thêm service method GetRulesByRole trong RuleService
  • Thêm repository method GetRulesByRole trong RuleRepository
  • Thêm route GET /api/rules/role/:id_name trong setupRoutes