Проверка шаблона шины для iOS
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

12 行
363B

  1. from generation.isPipeMany import *
  2. def pipeBusSource(name, entity, busKey, structure, fmt):
  3. valueType = structure.model.fields[name][0]
  4. print(f"pipeBS-1 name: '{name}'")
  5. if isPipeMany(name, entity):
  6. valueType = f"MPAK.Many<{valueType}>"
  7. return fmt \
  8. .replace("%BUS_KEY%", busKey) \
  9. .replace("%BUS_VALUE_TYPE%", valueType)