You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: refatora ball_bearing_info() para retornar struct (#1933)
Muda o retorno de ball_bearing_info() de array posicional para
struct com chaves nomeadas, seguindo o padrao de screw_info():
Chaves: "type", "trade_size", "id", "od", "width", "shielded",
"flanged", "flange_diameter", "flange_width"
Atualiza ball_bearing() para usar struct_val() ao extrair dados
do struct retornado. Parametros diretos (sem trade_size) continuam
funcionando normalmente.
Beneficios:
- API consistente com screw_info(), nut_info(), etc.
- Legibilidade: struct_val(info, "od") vs info[1]
- Extensibilidade: novos campos sem quebrar codigo existente
0 commit comments