傅行帆 5 лет назад
Родитель
Сommit
daf2fcab65

+ 4
- 4
SmartCommunity/mybatisGeneratorCode/src/main/resources/templatesPlus/controller.java.ftl Просмотреть файл

@@ -60,7 +60,7 @@ public class ${table.controllerName} {
60 60
      * @return
61 61
      */
62 62
     @RequestMapping(value="/${table.entityPath}",method= RequestMethod.GET)
63
-    public ResponseBean tpShopImgAdd(@RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
63
+    public ResponseBean ${table.entityPath}List(@RequestParam(value ="pageNum",defaultValue = "1") Integer pageNum,
64 64
 									 @RequestParam(value ="pageSize",defaultValue = "10") Integer pageSize){
65 65
         ResponseBean responseBean = new ResponseBean();
66 66
         try {
@@ -84,7 +84,7 @@ public class ${table.controllerName} {
84 84
      * @return
85 85
      */
86 86
     @RequestMapping(value="/${table.entityPath}",method= RequestMethod.POST)
87
-    public ResponseBean tpShopImgAdd(@RequestBody ${entity} ${table.entityPath}){
87
+    public ResponseBean ${table.entityPath}Add(@RequestBody ${entity} ${table.entityPath}){
88 88
         ResponseBean responseBean = new ResponseBean();
89 89
         try {
90 90
             if (i${entity}Service.save(${table.entityPath})){
@@ -127,7 +127,7 @@ public class ${table.controllerName} {
127 127
      * @return
128 128
      */
129 129
     @RequestMapping(value="/${table.entityPath}/{id}",method= RequestMethod.PUT)
130
-    public ResponseBean tpShopImgUpdate(@PathVariable Integer id,
130
+    public ResponseBean ${table.entityPath}Update(@PathVariable Integer id,
131 131
                                         @RequestBody ${entity} ${table.entityPath}){
132 132
         ResponseBean responseBean = new ResponseBean();
133 133
         try {
@@ -148,7 +148,7 @@ public class ${table.controllerName} {
148 148
      * @param id  实体ID
149 149
      */
150 150
     @RequestMapping(value="/${table.entityPath}/{id}",method= RequestMethod.GET)
151
-    public ResponseBean tpShopImgGet(@PathVariable Integer id){
151
+    public ResponseBean ${table.entityPath}Get(@PathVariable Integer id){
152 152
         ResponseBean responseBean = new ResponseBean();
153 153
         try {
154 154
             responseBean.addSuccess(i${entity}Service.getById(id));