events.py 391 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python
  2. # -*- coding: utf-8 -*-
  3. from enum import Enum
  4. class Status(Enum):
  5. base = 0 # 基础话术
  6. pursue = 1
  7. pull = 2
  8. class Error(Enum):
  9. error_nlg = 710 # 话术生成服务异常
  10. error_intent = 711 # 意图识别服务异常
  11. error_faq = 712 # faq服务异常
  12. error = 1 #"未知异常"
  13. if __name__ == '__main__':
  14. print(Status.base)