|
@@ -1,5 +1,6 @@
|
|
|
package ${packageName}.controller;
|
|
|
|
|
|
+import com.miaxis.common.constant.Constants;
|
|
|
import java.util.List;
|
|
|
import io.swagger.annotations.*;
|
|
|
import com.miaxis.common.core.domain.Response;
|
|
@@ -33,7 +34,7 @@ import com.miaxis.common.core.page.ResponsePageInfo;
|
|
|
*/
|
|
|
@RestController
|
|
|
@RequestMapping("/${moduleName}/${businessName}")
|
|
|
-@Api(tags={"【${functionName}】Controller"})
|
|
|
+@Api(tags={"【app-${functionName}】"})
|
|
|
public class ${ClassName}Controller extends BaseController{
|
|
|
@Autowired
|
|
|
private I${ClassName}Service ${className}Service;
|
|
@@ -41,7 +42,7 @@ public class ${ClassName}Controller extends BaseController{
|
|
|
/**
|
|
|
* 查询${functionName}列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')")
|
|
|
+ //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:list')")
|
|
|
@GetMapping("/list")
|
|
|
@ApiOperation("查询${functionName}列表")
|
|
|
#if($table.crud)
|
|
@@ -64,7 +65,7 @@ public class ${ClassName}Controller extends BaseController{
|
|
|
/**
|
|
|
* 导出${functionName}列表
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')")
|
|
|
+ // @PreAuthorize("@ss.hasPermi('${permissionPrefix}:export')")
|
|
|
@Log(title = "${functionName}", businessType = BusinessTypeEnum.EXPORT)
|
|
|
@GetMapping("/export")
|
|
|
@ApiOperation("导出${functionName}列表Excel")
|
|
@@ -77,7 +78,7 @@ public class ${ClassName}Controller extends BaseController{
|
|
|
/**
|
|
|
* 获取${functionName}详细信息
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('${permissionPrefix}:query')")
|
|
|
+ //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:query')")
|
|
|
@GetMapping(value = "/{${pkColumn.javaField}}")
|
|
|
@ApiOperation("获取${functionName}详细信息")
|
|
|
public Response<${ClassName}> getInfo(
|
|
@@ -90,7 +91,7 @@ public class ${ClassName}Controller extends BaseController{
|
|
|
/**
|
|
|
* 新增${functionName}
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('${permissionPrefix}:add')")
|
|
|
+ //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:add')")
|
|
|
@Log(title = "${functionName}", businessType = BusinessTypeEnum.INSERT)
|
|
|
@PostMapping
|
|
|
@ApiOperation("新增${functionName}")
|
|
@@ -101,7 +102,7 @@ public class ${ClassName}Controller extends BaseController{
|
|
|
/**
|
|
|
* 修改${functionName}
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')")
|
|
|
+ //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:edit')")
|
|
|
@Log(title = "${functionName}", businessType = BusinessTypeEnum.UPDATE)
|
|
|
@PutMapping
|
|
|
@ApiOperation("修改${functionName}")
|
|
@@ -112,7 +113,7 @@ public class ${ClassName}Controller extends BaseController{
|
|
|
/**
|
|
|
* 删除${functionName}
|
|
|
*/
|
|
|
- @PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')")
|
|
|
+ //@PreAuthorize("@ss.hasPermi('${permissionPrefix}:remove')")
|
|
|
@Log(title = "${functionName}", businessType = BusinessTypeEnum.DELETE)
|
|
|
@DeleteMapping("/{${pkColumn.javaField}s}")
|
|
|
@ApiOperation("删除${functionName}")
|