Browse Source

使用生成器生成modules代码

gavin.chen 2 years ago
parent
commit
728323f2a9

BIN
generator.py


+ 154 - 144
lib/modules/auth.dart

@@ -1,116 +1,123 @@
 import 'package:fis_i18n/types.dart';
 
+/// 认证模块
 class AuthModule extends ModuleBase {
-  AuthModule._(
-      {required this.login,
-      required this.signUp,
-      required this.login4Btn,
-      required this.signUp4Btn,
-      required this.account,
-      required this.password,
-      required this.keepPwd,
-      required this.resetPwd,
-      required this.forgotPwd,
-      required this.tabOfLoginByAccountPwd,
-      required this.tabOfLoginByVerificationCode,
-      required this.hint4AccountDouble,
-      required this.hint4AccountTriple,
-      required this.hint4Pwd,
-      required this.hint4ConfirmPwd,
-      required this.hint4VerificationCode,
-      required this.agreeStatement,
-      required this.privacyPolicy,
-      required this.userAgreement,
-      required this.sendVerificationCode,
-      required this.resendVerificationCode,
-      required this.sendVerificationCodeTimer,
-      required this.signOut,
-      required this.back4Login,
-      required this.toast4AgreeStatement,
-      required this.toast4AccountPwdError,
-      required this.toast4AccountNotExist,
-      required this.toast4AccountHasExist,
-      required this.toast4AccountDouble,
-      required this.toast4AccountTriple,
-      required this.toast4VerifyCodeOverdue,
-      required this.toast4VerifyCodeError,
-      required this.toast4LoginFail,
-      required this.toast4LoginSuccess,
-      required this.toast4SignUpFail,
-      required this.toast4SignUpSuccess,
-      required this.toast4ResetFail,
-      required this.toast4ResetSuccess,
-      required this.toast4VerifyCodeSendFail,
-      required this.toast4VerifyCodeSendSuccess,
-      required this.toast4ConfirmPwdMatchError,
-      required this.toast4PwdBlankError,
-      required this.toast4PwdLengthError,
-      required this.toast4PwdCharCombinError,
-      required this.toast4AccountFormatError,
-      required this.otherLoginWay});
+  AuthModule._({
+    required this.login,
+    required this.login4Btn,
+    required this.signUp,
+    required this.signUp4Btn,
+    required this.account,
+    required this.password,
+    required this.keepPwd,
+    required this.resetPwd,
+    required this.forgotPwd,
+    required this.tabOfLoginByAccountPwd,
+    required this.tabOfLoginByVerificationCode,
+    required this.hint4AccountDouble,
+    required this.hint4AccountTriple,
+    required this.hint4ConfirmPwd,
+    required this.hint4Pwd,
+    required this.hint4VerificationCode,
+    required this.agreeStatement,
+    required this.privacyPolicy,
+    required this.userAgreement,
+    required this.sendVerificationCode,
+    required this.resendVerificationCode,
+    required this.sendVerificationCodeTimer,
+    required this.signOut,
+    required this.back4Login,
+    required this.toast4AgreeStatement,
+    required this.toast4AccountPwdError,
+    required this.toast4AccountNotExist,
+    required this.toast4AccountHasExist,
+    required this.toast4AccountDouble,
+    required this.toast4AccountTriple,
+    required this.toast4VerifyCodeOverdue,
+    required this.toast4VerifyCodeError,
+    required this.toast4LoginFail,
+    required this.toast4LoginSuccess,
+    required this.toast4SignUpFail,
+    required this.toast4SignUpSuccess,
+    required this.toast4ResetFail,
+    required this.toast4ResetSuccess,
+    required this.toast4VerifyCodeSendFail,
+    required this.toast4VerifyCodeSendSuccess,
+    required this.toast4ConfirmPwdMatchError,
+    required this.toast4PwdBlankError,
+    required this.toast4PwdLengthError,
+    required this.toast4PwdCharCombinError,
+    required this.toast4AccountFormatError,
+    required this.otherLoginWay,
+    required this.logining,
+    required this.switching,
+  });
 
   static const ModuleName = "auth";
 
   factory AuthModule(Map<String, dynamic> map) {
     return AuthModule._(
-        login: map.pick('login'),
-        signUp: map.pick('signUp'),
-        login4Btn: map.pick('login4Btn'),
-        signUp4Btn: map.pick('signUp4Btn'),
-        account: map.pick("account"),
-        password: map.pick("password"),
-        keepPwd: map.pick("keepPwd"),
-        resetPwd: map.pick("resetPwd"),
-        forgotPwd: map.pick("forgotPwd"),
-        tabOfLoginByAccountPwd: map.pick("tabOfLoginByAccountPwd"),
-        tabOfLoginByVerificationCode: map.pick("tabOfLoginByVerificationCode"),
-        hint4AccountDouble: map.pick("hint4AccountDouble"),
-        hint4AccountTriple: map.pick("hint4AccountTriple"),
-        hint4ConfirmPwd: map.pick("hint4ConfirmPwd"),
-        hint4Pwd: map.pick("hint4Pwd"),
-        hint4VerificationCode: map.pick("hint4VerificationCode"),
-        agreeStatement: map.pick("agreeStatement"),
-        privacyPolicy: map.pick("privacyPolicy"),
-        userAgreement: map.pick("userAgreement"),
-        sendVerificationCode: map.pick("sendVerificationCode"),
-        resendVerificationCode: map.pick("resendVerificationCode"),
-        sendVerificationCodeTimer: map.pick("sendVerificationCodeTimer"),
-        signOut: map.pick("signOut"),
-        back4Login: map.pick("back4Login"),
-        toast4AgreeStatement: map.pick("toast4AgreeStatement"),
-        toast4AccountPwdError: map.pick("toast4AccountPwdError"),
-        toast4AccountNotExist: map.pick("toast4AccountNotExist"),
-        toast4AccountHasExist: map.pick("toast4AccountHasExist"),
-        toast4AccountDouble: map.pick("toast4AccountDouble"),
-        toast4AccountTriple: map.pick("toast4AccountTriple"),
-        toast4VerifyCodeOverdue: map.pick("toast4VerifyCodeOverdue"),
-        toast4VerifyCodeError: map.pick("toast4VerifyCodeError"),
-        toast4LoginFail: map.pick("toast4LoginFail"),
-        toast4LoginSuccess: map.pick("toast4LoginSuccess"),
-        toast4SignUpFail: map.pick("toast4SignUpFail"),
-        toast4SignUpSuccess: map.pick("toast4SignUpSuccess"),
-        toast4ResetFail: map.pick("toast4ResetFail"),
-        toast4ResetSuccess: map.pick("toast4ResetSuccess"),
-        toast4VerifyCodeSendFail: map.pick("toast4VerifyCodeSendFail"),
-        toast4VerifyCodeSendSuccess: map.pick("toast4VerifyCodeSendSuccess"),
-        toast4ConfirmPwdMatchError: map.pick("toast4ConfirmPwdMatchError"),
-        toast4PwdBlankError: map.pick("toast4PwdBlankError"),
-        toast4PwdLengthError: map.pick("toast4PwdLengthError"),
-        toast4PwdCharCombinError: map.pick("toast4PwdCharCombinError"),
-        toast4AccountFormatError: map.pick("toast4AccountFormatError"),
-        otherLoginWay: map.pick("otherLoginWay"));
+      login: map.pick("login"),
+      login4Btn: map.pick("login4Btn"),
+      signUp: map.pick("signUp"),
+      signUp4Btn: map.pick("signUp4Btn"),
+      account: map.pick("account"),
+      password: map.pick("password"),
+      keepPwd: map.pick("keepPwd"),
+      resetPwd: map.pick("resetPwd"),
+      forgotPwd: map.pick("forgotPwd"),
+      tabOfLoginByAccountPwd: map.pick("tabOfLoginByAccountPwd"),
+      tabOfLoginByVerificationCode: map.pick("tabOfLoginByVerificationCode"),
+      hint4AccountDouble: map.pick("hint4AccountDouble"),
+      hint4AccountTriple: map.pick("hint4AccountTriple"),
+      hint4ConfirmPwd: map.pick("hint4ConfirmPwd"),
+      hint4Pwd: map.pick("hint4Pwd"),
+      hint4VerificationCode: map.pick("hint4VerificationCode"),
+      agreeStatement: map.pick("agreeStatement"),
+      privacyPolicy: map.pick("privacyPolicy"),
+      userAgreement: map.pick("userAgreement"),
+      sendVerificationCode: map.pick("sendVerificationCode"),
+      resendVerificationCode: map.pick("resendVerificationCode"),
+      sendVerificationCodeTimer: map.pick("sendVerificationCodeTimer"),
+      signOut: map.pick("signOut"),
+      back4Login: map.pick("back4Login"),
+      toast4AgreeStatement: map.pick("toast4AgreeStatement"),
+      toast4AccountPwdError: map.pick("toast4AccountPwdError"),
+      toast4AccountNotExist: map.pick("toast4AccountNotExist"),
+      toast4AccountHasExist: map.pick("toast4AccountHasExist"),
+      toast4AccountDouble: map.pick("toast4AccountDouble"),
+      toast4AccountTriple: map.pick("toast4AccountTriple"),
+      toast4VerifyCodeOverdue: map.pick("toast4VerifyCodeOverdue"),
+      toast4VerifyCodeError: map.pick("toast4VerifyCodeError"),
+      toast4LoginFail: map.pick("toast4LoginFail"),
+      toast4LoginSuccess: map.pick("toast4LoginSuccess"),
+      toast4SignUpFail: map.pick("toast4SignUpFail"),
+      toast4SignUpSuccess: map.pick("toast4SignUpSuccess"),
+      toast4ResetFail: map.pick("toast4ResetFail"),
+      toast4ResetSuccess: map.pick("toast4ResetSuccess"),
+      toast4VerifyCodeSendFail: map.pick("toast4VerifyCodeSendFail"),
+      toast4VerifyCodeSendSuccess: map.pick("toast4VerifyCodeSendSuccess"),
+      toast4ConfirmPwdMatchError: map.pick("toast4ConfirmPwdMatchError"),
+      toast4PwdBlankError: map.pick("toast4PwdBlankError"),
+      toast4PwdLengthError: map.pick("toast4PwdLengthError"),
+      toast4PwdCharCombinError: map.pick("toast4PwdCharCombinError"),
+      toast4AccountFormatError: map.pick("toast4AccountFormatError"),
+      otherLoginWay: map.pick("otherLoginWay"),
+      logining: map.pick("logining"),
+      switching: map.pick("switching"),
+    );
   }
 
   /// 登录
   final FTrStr login;
 
+  /// 登 录
+  final FTrStr login4Btn;
+
   /// 注册
   final FTrStr signUp;
 
-  /// 登录 for Button
-  final FTrStr login4Btn;
-
-  /// 注册 for Button
+  /// 注 册
   final FTrStr signUp4Btn;
 
   /// 账号
@@ -122,129 +129,132 @@ class AuthModule extends ModuleBase {
   /// 记住密码
   final FTrStr keepPwd;
 
+  /// 重 置
+  final FTrStr resetPwd;
+
   /// 忘记密码
   final FTrStr forgotPwd;
 
-  /// 重置密码
-  final FTrStr resetPwd;
-
   /// 账号密码登录
   final FTrStr tabOfLoginByAccountPwd;
 
   /// 验证码登录
   final FTrStr tabOfLoginByVerificationCode;
 
-  /// Hint-账号 - 手机号/邮箱
+  /// 请输入手机号或邮箱
   final FTrStr hint4AccountDouble;
 
-  /// Hint-账号 - 手机号/邮箱/用户名
+  /// 请输入手机号、邮箱或用户名
   final FTrStr hint4AccountTriple;
 
-  /// Hint-密码
-  final FTrStr hint4Pwd;
-
-  /// Hint-确认密码
+  /// 请确认密码
   final FTrStr hint4ConfirmPwd;
 
-  /// Hint-验证码
+  /// 请输入密码
+  final FTrStr hint4Pwd;
+
+  /// 请输入验证码
   final FTrStr hint4VerificationCode;
 
-  /// 条款政策声明
+  /// 我已阅读并同意
   final FTrStr agreeStatement;
 
-  /// 用户条款
-  final FTrStr userAgreement;
-
-  /// 隐私政策
+  /// 《隐私协议》
   final FTrStr privacyPolicy;
 
-  /// 登出
-  final FTrStr signOut;
+  /// 《用户使用协议》
+  final FTrStr userAgreement;
 
-  /// 获取验证码
+  /// 发送验证码
   final FTrStr sendVerificationCode;
 
-  /// 重新获取验证码
+  /// 重新发送
   final FTrStr resendVerificationCode;
 
-  /// 获取验证码倒计时
+  /// 倒计时{0}S
   final FTrStr sendVerificationCodeTimer;
 
+  /// 退出登录
+  final FTrStr signOut;
+
   /// 返回登录
   final FTrStr back4Login;
 
-  /// 同意声明提示
+  /// 请阅读并同意杏聆荟《用户使用协议》和《隐私政策》
   final FTrStr toast4AgreeStatement;
 
-  /// 账密错误提示
+  /// 用户名或密码错误
   final FTrStr toast4AccountPwdError;
 
-  /// 账号不存在提示
+  /// 账号不存在
   final FTrStr toast4AccountNotExist;
 
-  /// 账号已存在提示
+  /// 账号已存在
   final FTrStr toast4AccountHasExist;
 
-  /// 账号(手机/邮箱)提示
+  /// 请输入正确的手机号或邮箱
   final FTrStr toast4AccountDouble;
 
-  /// 账号(手机/邮箱/用户名)提示
+  /// 请输入正确的手机号、邮箱或用户名
   final FTrStr toast4AccountTriple;
 
-  /// 验证码过期提示
+  /// 验证码过期
   final FTrStr toast4VerifyCodeOverdue;
 
-  /// 验证码错误提示
+  /// 验证码错误
   final FTrStr toast4VerifyCodeError;
 
-  /// 登录失败提示
+  /// 登录失败
   final FTrStr toast4LoginFail;
 
-  /// 登录成功提示
+  /// 登录成功
   final FTrStr toast4LoginSuccess;
 
-  /// 注册失败提示
+  /// 注册失败
   final FTrStr toast4SignUpFail;
 
-  /// 注册成功提示
+  /// 注册成功
   final FTrStr toast4SignUpSuccess;
 
-  /// 重置失败提示
+  /// 重置失败
   final FTrStr toast4ResetFail;
 
-  /// 重置成功提示
+  /// 重置成功
   final FTrStr toast4ResetSuccess;
 
-  /// 验证码发送失败提示
+  /// 验证码发送失败
   final FTrStr toast4VerifyCodeSendFail;
 
-  /// 验证码发送成功提示
+  /// 验证码发送
   final FTrStr toast4VerifyCodeSendSuccess;
 
-  /// 确认密码不一致提示
+  /// 两次密码输入保持一致
   final FTrStr toast4ConfirmPwdMatchError;
 
-  /// 密码空格错误提示
+  /// 密码不能包含空格
   final FTrStr toast4PwdBlankError;
 
-  /// 密码长度错误提示
+  /// 密码限制长度为6-20位字符
   final FTrStr toast4PwdLengthError;
 
-  /// 密码字符组合提示
+  /// 密码必须包含数字、字母、符号中至少2种
   final FTrStr toast4PwdCharCombinError;
 
-  /// 账号格式错误提示
+  /// 用户名注册时,限制2~20位字母或数字组合
   final FTrStr toast4AccountFormatError;
 
-  ///其他登录方式
+  /// 其他登录方式
   final FTrStr otherLoginWay;
 
+  /// 正在登录...
+  final FTrStr logining;
+
+  /// 正在切换...
+  final FTrStr switching;
+
   @override
   getProp(String propName) {
-    switch (propName) {
-      case 'login':
-        return login;
-    }
-    return null;
+    // TODO: implement getProp
+    throw UnimplementedError();
   }
 }

+ 1 - 1
lib/modules/body_parts.dart

@@ -29,7 +29,7 @@ class BodyPartsModule extends ModuleBase {
   /// 腹部
   final FTrStr abdomen;
 
-  /// 
+  /// 
   final FTrStr chest;
 
   @override

+ 63 - 63
lib/modules/common.dart

@@ -1,5 +1,6 @@
 import 'package:fis_i18n/types.dart';
 
+/// 通用模块
 class CommonModule extends ModuleBase {
   CommonModule._({
     required this.appName,
@@ -44,48 +45,49 @@ class CommonModule extends ModuleBase {
 
   factory CommonModule(Map<String, dynamic> map) {
     return CommonModule._(
-        appName: map.pick('appName', 'Flyinsono'),
-        versionNumber: map.pick('versionNumber'),
-        language: map.pick("language"),
-        refresh: map.pick("refresh"),
-        forward: map.pick("forward"),
-        createTime: map.pick("createTime"),
-        status: map.pick("status"),
-        finish: map.pick("finish"),
-        report: map.pick("report"),
-        search: map.pick("search"),
-        open: map.pick("open"),
-        fullName: map.pick("fullName "),
-        email: map.pick("email"),
-        mobileNumber: map.pick("mobileNumber"),
-        loading: map.pick("loading"),
-        and: map.pick("and"),
-        submitting: map.pick("submitting"),
-        underDevelopment: map.pick("underDevelopment"),
-        tip: map.pick("tip"),
-        confirm: map.pick("confirm"),
-        submitted: map.pick("submitted"),
-        close: map.pick("close"),
-        alreadySaved: map.pick("alreadySaved"),
-        add: map.pick("add"),
-        save: map.pick("save"),
-        filter: map.pick("filter"),
-        verificationCode: map.pick("verificationCode"),
-        cancel: map.pick("cancel"),
-        image: map.pick("image"),
-        remove: map.pick("remove"),
-        state: map.pick("state"),
-        all: map.pick("all"),
-        selected: map.pick("selected"),
-        unDistributed: map.pick("unDistributed"),
-        back: map.pick("back"),
-        revoke: map.pick("revoke"));
+      appName: map.pick("appName"),
+      versionNumber: map.pick("versionNumber"),
+      language: map.pick("language"),
+      refresh: map.pick("refresh"),
+      forward: map.pick("forward"),
+      createTime: map.pick("createTime"),
+      status: map.pick("status"),
+      finish: map.pick("finish"),
+      report: map.pick("report"),
+      search: map.pick("search"),
+      open: map.pick("open"),
+      fullName: map.pick("fullName "),
+      email: map.pick("email"),
+      mobileNumber: map.pick("mobileNumber"),
+      loading: map.pick("loading"),
+      and: map.pick("and"),
+      submitting: map.pick("submitting"),
+      underDevelopment: map.pick("underDevelopment"),
+      tip: map.pick("tip"),
+      confirm: map.pick("confirm"),
+      submitted: map.pick("submitted"),
+      close: map.pick("close"),
+      alreadySaved: map.pick("alreadySaved"),
+      add: map.pick("add"),
+      save: map.pick("save"),
+      filter: map.pick("filter"),
+      verificationCode: map.pick("verificationCode"),
+      cancel: map.pick("cancel"),
+      image: map.pick("image"),
+      remove: map.pick("remove"),
+      state: map.pick("state"),
+      all: map.pick("all"),
+      selected: map.pick("selected"),
+      unDistributed: map.pick("unDistributed"),
+      back: map.pick("back"),
+      revoke: map.pick("revoke"),
+    );
   }
 
-  /// 应用名称
+  /// 杏聆荟
   final FTrStr appName;
 
-  /// 版本号
+  /// 版本号 : {0}
   final FTrStr versionNumber;
 
   /// 语言
@@ -130,71 +132,69 @@ class CommonModule extends ModuleBase {
   /// 和
   final FTrStr and;
 
-  ///提交中
+  /// 提交中...
   final FTrStr submitting;
 
-  ///待开发
+  /// 待开发...
   final FTrStr underDevelopment;
 
-  ///提示
+  /// 提示
   final FTrStr tip;
 
-  ///确定
+  /// 确定
   final FTrStr confirm;
 
-  ///已提交
+  /// 已提交
   final FTrStr submitted;
 
-  ///关闭
+  /// 关闭
   final FTrStr close;
 
-  ///已保存
+  /// 已保存
   final FTrStr alreadySaved;
 
-  ///添加
+  /// 添加
   final FTrStr add;
 
-  ///保存
+  /// 保存
   final FTrStr save;
 
-  ///筛选
+  /// 筛选
   final FTrStr filter;
 
-  ///验证码
+  /// 验证码
   final FTrStr verificationCode;
 
-  ///取消
+  /// 取消
   final FTrStr cancel;
 
-  ///图片
+  /// 图片
   final FTrStr image;
 
-  ///移除
+  /// 移除
   final FTrStr remove;
 
-  ///状态
+  /// 状态
   final FTrStr state;
 
-  ///全部
+  /// 全部
   final FTrStr all;
 
-  ///已选择
+  /// 已选择
   final FTrStr selected;
 
-  ///未分配
+  /// 未分配
   final FTrStr unDistributed;
 
-  ///返回
+  /// 返回
   final FTrStr back;
 
-  ///撤销
+  /// 撤销
   final FTrStr revoke;
+
   @override
   getProp(String propName) {
-    switch (propName) {
-      case 'appName':
-        return appName;
-    }
-    return null;
+    // TODO: implement getProp
+    throw UnimplementedError();
   }
 }

+ 9 - 7
lib/modules/home_page.dart

@@ -1,24 +1,25 @@
 import 'package:fis_i18n/types.dart';
 
+/// 首页模块
 class HomePageModule extends ModuleBase {
   HomePageModule._({
     required this.homePage,
     required this.organizationInfo,
+    required this.reportTemplate,
     required this.organizationDevices,
     required this.organizationTerm,
     required this.signOut,
     required this.loginOutConfirm,
     required this.loginingOut,
     required this.ultrasoundComments,
-    required this.reportTemplate,
   });
 
   static const ModuleName = "homePage";
 
   factory HomePageModule(Map<String, dynamic> map) {
     return HomePageModule._(
-      homePage: map.pick('homePage'),
-      organizationInfo: map.pick('organizationInfo'),
+      homePage: map.pick("homePage"),
+      organizationInfo: map.pick("organizationInfo"),
       reportTemplate: map.pick("reportTemplate"),
       organizationDevices: map.pick("organizationDevices"),
       organizationTerm: map.pick("organizationTerm"),
@@ -29,7 +30,7 @@ class HomePageModule extends ModuleBase {
     );
   }
 
-  /// 应用名称
+  /// 首页
   final FTrStr homePage;
 
   /// 机构信息
@@ -47,10 +48,10 @@ class HomePageModule extends ModuleBase {
   /// 退出登录
   final FTrStr signOut;
 
-  /// 登出确认
+  /// 确定退出登录?
   final FTrStr loginOutConfirm;
 
-  /// 正在登出
+  /// 正在登出...
   final FTrStr loginingOut;
 
   /// 超声注释
@@ -58,6 +59,7 @@ class HomePageModule extends ModuleBase {
 
   @override
   getProp(String propName) {
-    return null;
+    // TODO: implement getProp
+    throw UnimplementedError();
   }
 }

+ 2 - 2
lib/modules/index.dart

@@ -2,7 +2,7 @@ export 'auth.dart';
 export 'body_parts.dart';
 export 'common.dart';
 export 'home_page.dart';
-export 'remedical.dart';
-import 'profile_complete.dart';
+export 'profile_complete.dart';
 export 'setting.dart';
 export 'user.dart';
+export 'remedical.dart';

+ 7 - 5
lib/modules/profile_complete.dart

@@ -1,5 +1,6 @@
 import 'package:fis_i18n/types.dart';
 
+/// 完善资料模块
 class ProfileCompleteModule extends ModuleBase {
   ProfileCompleteModule._({
     required this.phoneAlreadyBindToAnotherAccount,
@@ -27,9 +28,9 @@ class ProfileCompleteModule extends ModuleBase {
   factory ProfileCompleteModule(Map<String, dynamic> map) {
     return ProfileCompleteModule._(
       phoneAlreadyBindToAnotherAccount:
-          map.pick('phoneAlreadyBindToAnotherAccount'),
+          map.pick("phoneAlreadyBindToAnotherAccount"),
       emailAlreadyBindToAnotherAccount:
-          map.pick('emailAlreadyBindToAnotherAccount'),
+          map.pick("emailAlreadyBindToAnotherAccount"),
       nameFieldValidation: map.pick("nameFieldValidation"),
       phoneFormatValidation: map.pick("phoneFormatValidation"),
       emailFormatValidation: map.pick("emailFormatValidation"),
@@ -50,10 +51,10 @@ class ProfileCompleteModule extends ModuleBase {
     );
   }
 
-  /// 手机号已绑定其他账号
+  /// 手机号已绑定其他账号!
   final FTrStr phoneAlreadyBindToAnotherAccount;
 
-  /// 邮箱已绑定其他账号
+  /// 邮箱已绑定其他账号!
   final FTrStr emailAlreadyBindToAnotherAccount;
 
   /// 请填写姓名
@@ -106,6 +107,7 @@ class ProfileCompleteModule extends ModuleBase {
 
   @override
   getProp(String propName) {
-    return null;
+    // TODO: implement getProp
+    throw UnimplementedError();
   }
 }

+ 0 - 19
lib/modules/readme.txt

@@ -1,19 +0,0 @@
-大量翻译项快速写入代码
-
-打开Notepad++
-粘贴需要的字段
-    例:
-        xx1
-        xx2
-        xx3
-        sf4
-Ctrl+H
-查找模式->扩展
-
-在"替换为"里依次使用以下三种替换代码,再稍作处理复制到代码中
-1. 字段定义
-    ;\r\n\r\n/// xxx\r\nfinal FTrStr 
-2. 构造定义
-    ,\r\nrequired this.
-3. 取值定义
-    "),\r\n: map.pick("

+ 4 - 4
lib/modules/remedical.dart

@@ -12,16 +12,16 @@ class RemedicalModule extends ModuleBase {
 
   factory RemedicalModule(Map<String, dynamic> map) {
     return RemedicalModule._(
-      patientName: map.pick('patientName'),
-      patientFrom: map.pick('patientFrom'),
+      patientName: map.pick("patientName"),
+      patientFrom: map.pick("patientFrom"),
       ultrasoundReport: map.pick("ultrasoundReport"),
     );
   }
 
-  /// 病人名
+  /// 病人名
   final FTrStr patientName;
 
-  /// 病人来自于
+  /// 来自于
   final FTrStr patientFrom;
 
   /// 超声报告

+ 17 - 16
lib/modules/setting.dart

@@ -2,32 +2,33 @@ import 'package:fis_i18n/types.dart';
 
 /// 设置模块
 class SettingModule extends ModuleBase {
-  SettingModule._(
-      {required this.switchingLanguage,
-      required this.pleaseFullfillServerUrl,
-      required this.serverUrlFormatValidation,
-      required this.serverUrlExistValidation,
-      required this.serverUrlNotExistValidation,
-      required this.serverUrlNotChangedValidation,
-      required this.pleaseSelectOrAddServerUrl,
-      required this.serverUrlExample});
+  SettingModule._({
+    required this.switchingLanguage,
+    required this.pleaseFullfillServerUrl,
+    required this.serverUrlFormatValidation,
+    required this.serverUrlExistValidation,
+    required this.serverUrlNotExistValidation,
+    required this.serverUrlNotChangedValidation,
+    required this.pleaseSelectOrAddServerUrl,
+    required this.serverUrlExample,
+  });
 
   static const ModuleName = "setting";
 
   factory SettingModule(Map<String, dynamic> map) {
     return SettingModule._(
-      switchingLanguage: map.pick('switchingLanguage'),
-      pleaseFullfillServerUrl: map.pick('pleaseFullfillServerUrl'),
+      switchingLanguage: map.pick("switchingLanguage"),
+      pleaseFullfillServerUrl: map.pick("pleaseFullfillServerUrl"),
+      serverUrlFormatValidation: map.pick("serverUrlFormatValidation"),
       serverUrlExistValidation: map.pick("serverUrlExistValidation"),
-      serverUrlNotExistValidation: map.pick('serverUrlNotExistValidation'),
-      serverUrlNotChangedValidation: map.pick('serverUrlNotChangedValidation'),
+      serverUrlNotExistValidation: map.pick("serverUrlNotExistValidation"),
+      serverUrlNotChangedValidation: map.pick("serverUrlNotChangedValidation"),
       pleaseSelectOrAddServerUrl: map.pick("pleaseSelectOrAddServerUrl"),
-      serverUrlExample: map.pick('serverUrlExample'),
-      serverUrlFormatValidation: map.pick('serverUrlFormatValidation'),
+      serverUrlExample: map.pick("serverUrlExample"),
     );
   }
 
-  /// 正在切换语言
+  /// 正在切换语言...
   final FTrStr switchingLanguage;
 
   /// 请填写服务地址

+ 44 - 44
lib/modules/user.dart

@@ -53,50 +53,50 @@ class UserModule extends ModuleBase {
 
   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'),
+      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"),
     );
   }