|
2 | 2 |
|
3 | 3 | /** |
4 | 4 | * Created by XQ Yang on 2018/6/28 11:02. |
5 | | - * Description : 模版常量 |
| 5 | + * @describe 模版常量 |
6 | 6 | */ |
7 | 7 |
|
8 | 8 | public interface TemplateCons { |
9 | 9 |
|
10 | 10 | String CONTRACT_TP_CONTENT_JAVA = |
11 | | - "#if (${PACKAGE_NAME} != \"\")package ${PACKAGE_NAME};#end\n" + "\n" + "import ${V};\n" + "import ${P};\n" + "import ${M};\n" + "/**\n" + " * Description : \n" + |
| 11 | + "#if (${PACKAGE_NAME} != \"\")package ${PACKAGE_NAME};#end\n" + "\n" + "import ${V};\n" + "import ${P};\n" + "import ${M};\n" + "/**\n" + " * @describe \n" + |
12 | 12 | " * @author ${USER}\n" + " * @date ${DATE} ${TIME}\n" + " * \t\t\t\t\t\t\t\t - generate by MvpAutoCodePlus plugin.\n" + " */\n" + "\n" + |
13 | | - "public interface I${NAME}Contract {\n" + "interface View extends IView${VG}{}\n" + "interface Presenter extends IPresenter${PG}{}\n" + |
14 | | - "interface Model extends IModel${MG}{}\n" + "}\n"; |
| 13 | + "public interface I${NAME}Contract {\n" + " interface View extends IView${VG}{}\n" + " interface Presenter extends IPresenter${PG}{}\n" + |
| 14 | + " interface Model extends IModel${MG}{}\n" + "}\n"; |
15 | 15 | String CONTRACT_TP_CONTENT_NO_MODEL_JAVA = |
16 | | - "#if (${PACKAGE_NAME} != \"\")package ${PACKAGE_NAME};#end\n" + "\n" + "import ${V};\n" + "import ${P};\n" + "/**\n" + " * Description : \n" + " * @author ${USER}\n" + |
| 16 | + "#if (${PACKAGE_NAME} != \"\")package ${PACKAGE_NAME};#end\n" + "\n" + "import ${V};\n" + "import ${P};\n" + "/**\n" + " * @describe \n" + " * @author ${USER}\n" + |
17 | 17 | " * @date ${DATE} ${TIME}\n" + " * \t\t\t\t\t\t\t\t - generate by MvpAutoCodePlus plugin.\n" + " */\n" + "\n" + "public interface I${NAME}Contract {\n" + |
18 | | - "interface View extends IView${VG}{}\n" + "interface Presenter extends IPresenter${PG}{}\n" + "}\n"; |
| 18 | + " interface View extends IView${VG}{}\n" + " interface Presenter extends IPresenter${PG}{}\n" + "}\n"; |
19 | 19 |
|
20 | 20 | String CONTRACT_TP_CONTENT_KOTLIN = |
21 | | - "#if (${PACKAGE_NAME} != \"\")package ${PACKAGE_NAME}#end\n" + "\n" + "import ${V}\n" + "import ${P}\n" + "import ${M}\n" + "/**\n" + " * Description : \n" + |
| 21 | + "#if (${PACKAGE_NAME} != \"\")package ${PACKAGE_NAME}#end\n" + "\n" + "import ${V}\n" + "import ${P}\n" + "import ${M}\n" + "/**\n" + " * @describe \n" + |
22 | 22 | " * @author ${USER}\n" + " * @date ${DATE} ${TIME}\n" + " * \t\t\t\t\t\t\t\t - generate by MvpAutoCodePlus plugin.\n" + " */\n" + "\n" + "interface ${NAME} {\n" + |
23 | 23 | " interface View : IView${VG}{}\n" + " interface Presenter : IPresenter${PG}{}\n" + " interface Model : IModel${MG}{}\n" + "}\n"; |
24 | 24 | String CONTRACT_TP_CONTENT_NO_MODEL_KOTLIN = |
25 | | - "#if (${PACKAGE_NAME} != \"\")package ${PACKAGE_NAME}#end\n" + "\n" + "import ${V}\n" + "import ${P}\n" + "/**\n" + " * Description : \n" + " * @author ${USER}\n" + |
| 25 | + "#if (${PACKAGE_NAME} != \"\")package ${PACKAGE_NAME}#end\n" + "\n" + "import ${V}\n" + "import ${P}\n" + "/**\n" + " * @describe \n" + " * @author ${USER}\n" + |
26 | 26 | " * @date ${DATE} ${TIME}\n" + " * \t\t\t\t\t\t\t\t - generate by MvpAutoCodePlus plugin.\n" + " */\n" + "\n" + "interface ${NAME} {\n" + |
27 | 27 | " interface View : IView${VG}{}\n" + " interface Presenter : IPresenter${PG}{}\n" + "}\n"; |
28 | 28 |
|
29 | 29 | String COMMON_IMPL_TP_CONTENT_JAVA = |
30 | 30 | "#if (${PACKAGE_NAME} != \"\")package ${PACKAGE_NAME};#end\n" + "\n" + "import ${CONTRACT};\n" + "#if (${IMPL} != \"\")import ${IMPL};#end\n" + "\n" + "\n" + "/**\n" + |
31 | | - " * Description : \n" + " * @author ${USER}\n" + " * @date ${DATE} ${TIME}\n" + " * \t\t\t\t\t\t\t\t - generate by MvpAutoCodePlus plugin.\n" + " */\n" + "\n" + |
| 31 | + " * @describe \n" + " * @author ${USER}\n" + " * @date ${DATE} ${TIME}\n" + " * \t\t\t\t\t\t\t\t - generate by MvpAutoCodePlus plugin.\n" + " */\n" + "\n" + |
32 | 32 | "public class ${NAME}${IMPL_TYPE} #if(${IMPL}!=\"\") extends ${IMPL}${VG}#end implements I${NAME}Contract.${TYPE} {\n" + "\n" + "}\n" + "\n"; |
33 | 33 |
|
34 | 34 | String COMMON_IMPL_TP_CONTENT_KOTLIN = |
35 | 35 | "#if (${PACKAGE_NAME} != \"\")package ${PACKAGE_NAME}#end\n" + "\n" + "import ${CONTRACT}\n" + "#if (${IMPL} != \"\")import ${IMPL}#end\n" + "\n" + "/**\n" + |
36 | | - " * Description : \n" + " * @author ${USER}\n" + " * @date ${DATE} ${TIME}\n" + " * \t\t\t\t\t\t\t\t - generate by MvpAutoCodePlus plugin.\n" + " */\n" + "\n" + |
| 36 | + " * @describe \n" + " * @author ${USER}\n" + " * @date ${DATE} ${TIME}\n" + " * \t\t\t\t\t\t\t\t - generate by MvpAutoCodePlus plugin.\n" + " */\n" + "\n" + |
37 | 37 | "class ${NAME}${IMPL_TYPE} :#if (${IMPL_NP} != \"\") ${IMPL_NP}${VG}(),#end ${CONTRACT_NP}.${TYPE} {\n" + "\n" + "}\n" + "\n"; |
38 | 38 | } |
0 commit comments