url.py 1.9 KB

123456789101112131415161718192021222324252627282930313233343536
  1. from api.Command import Command
  2. from api.Key import Key
  3. # from api.Task import Task
  4. # from api.TEST import TEST
  5. action_methods = {
  6. # --- for command ---
  7. 'Command.cmd001': (Command, 'cmd001', 'NoBack'), # update code by git commit
  8. 'Command.cmd002': (Command, 'cmd002', 'NoBack'), # update pth by apache server
  9. 'Command.cmd003': (Command, 'cmd003', 'IsBack'), # docker ps
  10. 'Command.cmd004': (Command, 'cmd004', 'IsBack'), # docker images
  11. # --- 初始化操作接口 ---
  12. 'Key.create_key': (Key, 'create_key', 'IsBack'), # 生成key
  13. 'Key.verify_key': (Key, 'verify_key', 'IsBack'), # 验证key
  14. # --- for task ---
  15. # 'Task.task002': (Task, 'task002', 'IsBack'), # 接收 fastapi 发送来的 uuid 并计算人脸存储特征 同样提供判断该照片是否能用
  16. # 'Task.task003': (Task, 'task003', 'IsBack'), # 为8301接口提供业务支持
  17. # --- for test ---
  18. # 'TEST.test002': (TEST, 'test002', 'NoBack'), # 刷超分人脸图片接口 将超分图片加入到底库中
  19. # 'TEST.test001': (TEST, 'test001', 'NoBack'), # 批量导入人脸特征数据 from mariadb to mongodb
  20. # 'TEST.test004': (TEST, 'test004', 'NoBack'), # 更新 mongo.VisitorTags 表数据
  21. # 'TEST.test006': (TEST, 'test006', 'IsBack'), # 对比人脸特征
  22. # 'TEST.test007': (TEST, 'test007', 'IsBack'), # 测试websocket在线信息
  23. # 'TEST.test008': (TEST, 'test008', 'IsBack'), # test
  24. # 'TEST.test009': (TEST, 'test009', 'IsBack'), # test
  25. # 'TEST.test011': (TEST, 'test011', 'IsBack'), # 下载语音文件
  26. # 'TEST.test012': (TEST, 'test012', 'IsBack'), # 录入人脸图片
  27. # 'TEST.test013': (TEST, 'test013', 'IsBack'), # 对比人脸图像的相似度
  28. # 'TEST.test014': (TEST, 'test014', 'IsBack'), # 对比人脸图像的相似度
  29. # 'TEST.test015': (TEST, 'test015', 'IsBack'), # 检索相似人脸
  30. }