General-AI-Platform-Backend/website/consts.py

38 lines
830 B
Python

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# -*- coding: utf-8 -*-
"""静态配置"""
PAGE_SIZE = 10
# 行业分类
industry_map = {
1001: u"IT服务",
1002: u"制造业",
1003: u"批发/零售",
1004: u"生活服务",
1005: u"文化/体育/娱乐业",
1006: u"建筑/房地产",
1007: u"教育",
1008: u"运输/物流/仓储",
1009: u"医疗",
1010: u"政府",
1011: u"金融",
1012: u"能源/采矿",
1013: u"农林渔牧",
1014: u"其他行业",
}
model_type_classic = 1001
model_type_machine = 1002
model_type_map = {
model_type_classic: u"经典算法",
model_type_machine: u"机器学习",
}
# 1000/all/默认, 1001/在线1002/离线1003/运行中1004/故障
device_status_map = {
1000: u"全部",
1001: u"在线",
1002: u"离线",
1003: u"运行中",
1004: u"故障",
}