删除 Codex2API 服务配置
(db: Session, service_id: int)
| 872 | |
| 873 | |
| 874 | def delete_codex2api_service(db: Session, service_id: int) -> bool: |
| 875 | """删除 Codex2API 服务配置""" |
| 876 | svc = get_codex2api_service_by_id(db, service_id) |
| 877 | if not svc: |
| 878 | return False |
| 879 | db.delete(svc) |
| 880 | db.commit() |
| 881 | return True |
| 882 | |
| 883 | |
| 884 | # ============================================================================ |
nothing calls this directly
no test coverage detected