Browse Source

删除生成器生成的代码,防止Git追踪

gavin.chen 2 years ago
parent
commit
f8df291855
4 changed files with 45 additions and 240 deletions
  1. 1 0
      .gitignore
  2. 44 0
      assets/class_mapping.json
  3. BIN
      generator.py
  4. 0 240
      py_generator/lib/models/user.dart

+ 1 - 0
.gitignore

@@ -74,3 +74,4 @@ build/
 !**/ios/**/default.pbxuser
 !**/ios/**/default.pbxuser
 !**/ios/**/default.perspectivev3
 !**/ios/**/default.perspectivev3
 /pubspec.lock
 /pubspec.lock
+/py_generator/*

+ 44 - 0
assets/class_mapping.json

@@ -0,0 +1,44 @@
+{
+    "auth": {
+        "module_name_cn": "认证",
+        "class_name": "AuthModule",
+        "module_name": "auth",
+        "file_name": "auth"
+    },
+    "bodyParts": {
+        "module_name_cn": "身体部位",
+        "class_name": "BodyPartsModule",
+        "module_name": "bodyParts",
+        "file_name": "body_parts"
+    },
+    "common": {
+        "module_name_cn": "通用",
+        "class_name": "CommonModule",
+        "module_name": "common",
+        "file_name": "common"
+    },
+    "profileComplete": {
+        "module_name_cn": "完善资料",
+        "class_name": "ProfileCompleteModule",
+        "module_name": "profileComplete",
+        "file_name": "profile_complete"
+    },
+    "setting": {
+        "module_name_cn": "设置",
+        "class_name": "SettingModule",
+        "module_name": "setting",
+        "file_name": "setting"
+    },
+    "user": {
+        "module_name_cn": "用户",
+        "class_name": "UserModule",
+        "module_name": "user",
+        "file_name": "user"
+    },
+    "remedical": {
+        "module_name_cn": "诊断",
+        "class_name": "RemedialModule",
+        "module_name": "remedical",
+        "file_name": "remedical"
+    }
+}

BIN
generator.py


+ 0 - 240
py_generator/lib/models/user.dart

@@ -1,240 +0,0 @@
-import 'package:fis_i18n/types.dart';
-
-/// 用户模块
-class UserModule extends ModuleBase {
-  UserModule._({
-    required this.selectIdentityAuth,
-    required this.identityToAuth,
-    required this.deviceSearch,
-    required this.addTemplate,
-    required this.defaultTemplate,
-    required this.equity,
-    required this.setPassword,
-    required this.inputVerificationCode,
-    required this.getVerificationCode,
-    required this.inputOriginalPassword,
-    required this.originalPassword,
-    required this.inputNewPassowrd,
-    required this.newPassowrd,
-    required this.checkInputAgain,
-    required this.passowrdConfirm,
-    required this.passowrdTip,
-    required this.changedPassword,
-    required this.passwordValidation,
-    required this.confirmNewPassword,
-    required this.inputPasswordAgain,
-    required this.afterXSecondFetchAgain,
-    required this.fetchVerificationCode,
-    required this.hospitalIn,
-    required this.inputHospitalIn,
-    required this.departmentIn,
-    required this.deviceName,
-    required this.inputDeviceName,
-    required this.deviceCode,
-    required this.inputDeviceCode,
-    required this.deviceType,
-    required this.autoFillDeviceType,
-    required this.deviceModel,
-    required this.autoFillDeviceModel,
-    required this.deviceAutoShare,
-    required this.modifyDeviceInfo,
-    required this.addDevice,
-    required this.editDevice,
-    required this.newDevice,
-    required this.userRelated,
-    required this.batchOperation,
-    required this.online,
-    required this.offline,
-    required this.shareDevice,
-    required this.notOnline,
-  });
-
-  static const ModuleName = "user";
-
-  factory UserModule(Map<String, dynamic> map) {
-    return UserModule._(
-      selectIdentityAuth: map.pick('selectIdentityAuth'),
-      identityToAuth: map.pick('identityToAuth'),
-      deviceSearch: map.pick('deviceSearch'),
-      addTemplate: map.pick('addTemplate'),
-      defaultTemplate: map.pick('defaultTemplate'),
-      equity: map.pick('equity'),
-      setPassword: map.pick('setPassword'),
-      inputVerificationCode: map.pick('inputVerificationCode'),
-      getVerificationCode: map.pick('getVerificationCode'),
-      inputOriginalPassword: map.pick('inputOriginalPassword'),
-      originalPassword: map.pick('originalPassword'),
-      inputNewPassowrd: map.pick('inputNewPassowrd'),
-      newPassowrd: map.pick('newPassowrd'),
-      checkInputAgain: map.pick('checkInputAgain'),
-      passowrdConfirm: map.pick('passowrdConfirm'),
-      passowrdTip: map.pick('passowrdTip'),
-      changedPassword: map.pick('changedPassword'),
-      passwordValidation: map.pick('passwordValidation'),
-      confirmNewPassword: map.pick('confirmNewPassword'),
-      inputPasswordAgain: map.pick('inputPasswordAgain'),
-      afterXSecondFetchAgain: map.pick('afterXSecondFetchAgain'),
-      fetchVerificationCode: map.pick('fetchVerificationCode'),
-      hospitalIn: map.pick('hospitalIn'),
-      inputHospitalIn: map.pick('inputHospitalIn'),
-      departmentIn: map.pick('departmentIn'),
-      deviceName: map.pick('deviceName'),
-      inputDeviceName: map.pick('inputDeviceName'),
-      deviceCode: map.pick('deviceCode'),
-      inputDeviceCode: map.pick('inputDeviceCode'),
-      deviceType: map.pick('deviceType'),
-      autoFillDeviceType: map.pick('autoFillDeviceType'),
-      deviceModel: map.pick('deviceModel'),
-      autoFillDeviceModel: map.pick('autoFillDeviceModel'),
-      deviceAutoShare: map.pick('deviceAutoShare'),
-      modifyDeviceInfo: map.pick('modifyDeviceInfo'),
-      addDevice: map.pick('addDevice'),
-      editDevice: map.pick('editDevice'),
-      newDevice: map.pick('newDevice'),
-      userRelated: map.pick('userRelated'),
-      batchOperation: map.pick('batchOperation'),
-      online: map.pick('online'),
-      offline: map.pick('offline'),
-      shareDevice: map.pick('shareDevice'),
-      notOnline: map.pick('notOnline'),
-    );
-  }
-
-  /// 选择身份认证
-  final FTrStr selectIdentityAuth;
-
-  /// 请选择要认证的身份
-  final FTrStr identityToAuth;
-
-  /// 设备查询
-  final FTrStr deviceSearch;
-
-  /// 添加模板
-  final FTrStr addTemplate;
-
-  /// 默认模板
-  final FTrStr defaultTemplate;
-
-  /// 权益
-  final FTrStr equity;
-
-  /// 设置密码
-  final FTrStr setPassword;
-
-  /// 请输入验证码
-  final FTrStr inputVerificationCode;
-
-  /// 获取验证码
-  final FTrStr getVerificationCode;
-
-  /// 填写原密码
-  final FTrStr inputOriginalPassword;
-
-  /// 原密码
-  final FTrStr originalPassword;
-
-  /// 填写新密码
-  final FTrStr inputNewPassowrd;
-
-  /// 新密码
-  final FTrStr newPassowrd;
-
-  /// 再次填写确认
-  final FTrStr checkInputAgain;
-
-  /// 确认密码
-  final FTrStr passowrdConfirm;
-
-  /// 密码必须是6位数及以上英文字母、数字的组合(不能全是数字或字母)
-  final FTrStr passowrdTip;
-
-  /// 修改密码
-  final FTrStr changedPassword;
-
-  /// 至少6个字符,不能全是数字或字母
-  final FTrStr passwordValidation;
-
-  /// 确认新密码
-  final FTrStr confirmNewPassword;
-
-  /// 请再次输入密码
-  final FTrStr inputPasswordAgain;
-
-  /// 秒后重新获取
-  final FTrStr afterXSecondFetchAgain;
-
-  /// 获取验证码
-  final FTrStr fetchVerificationCode;
-
-  /// 所在医院
-  final FTrStr hospitalIn;
-
-  /// 请输入所在医院
-  final FTrStr inputHospitalIn;
-
-  /// 所属部门
-  final FTrStr departmentIn;
-
-  /// 设备名称
-  final FTrStr deviceName;
-
-  /// 请输入设备名称
-  final FTrStr inputDeviceName;
-
-  /// 设备编码
-  final FTrStr deviceCode;
-
-  /// 请输入设备编码
-  final FTrStr inputDeviceCode;
-
-  /// 设备类型
-  final FTrStr deviceType;
-
-  /// 自动回填设备类型
-  final FTrStr autoFillDeviceType;
-
-  /// 设备型号
-  final FTrStr deviceModel;
-
-  /// 自动回填设备型号
-  final FTrStr autoFillDeviceModel;
-
-  /// 设备自动分享
-  final FTrStr deviceAutoShare;
-
-  /// 修改设备信息
-  final FTrStr modifyDeviceInfo;
-
-  /// 添加设备
-  final FTrStr addDevice;
-
-  /// 编辑设备
-  final FTrStr editDevice;
-
-  /// 新增设备
-  final FTrStr newDevice;
-
-  /// 关联用户
-  final FTrStr userRelated;
-
-  /// 批量操作
-  final FTrStr batchOperation;
-
-  /// 在线
-  final FTrStr online;
-
-  /// 离线
-  final FTrStr offline;
-
-  /// 分享设备
-  final FTrStr shareDevice;
-
-  /// 不在线
-  final FTrStr notOnline;
-
-  @override
-  getProp(String propName) {
-    // TODO: implement getProp
-    throw UnimplementedError();
-  }
-}