config.py 845 B

12345678910111213141516171819202122232425262728
  1. # This Python file uses the following encoding: utf-8
  2. # @author runhey
  3. # github https://github.com/runhey
  4. from pydantic import BaseModel, Field
  5. from enum import Enum
  6. class MainType(str, Enum):
  7. COSTUME_MAIN = 'costume_main' # 初语谧景
  8. COSTUME_MAIN_1 = 'costume_main_1' # 织梦莲庭
  9. COSTUME_MAIN_2 = 'costume_main_2' # 琼夜淬光
  10. COSTUME_MAIN_3 = 'costume_main_3' # 烬夜韶阁
  11. COSTUME_MAIN_4 = 'costume_main_4' # 笔墨山河
  12. COSTUME_MAIN_5 = 'costume_main_5' # 枫色秋庭
  13. COSTUME_MAIN_6 = 'costume_main_6' # 暖池青苑
  14. COSTUME_MAIN_7 = 'costume_main_7' # 盛夏幽庭
  15. COSTUME_MAIN_8 = 'costume_main_8' # 远海航船
  16. class CostumeConfig(BaseModel):
  17. # 皮肤配置
  18. costume_main_type: MainType = Field(default=MainType.COSTUME_MAIN, description='costume_main_type_help')