|
@@ -9,7 +9,6 @@ import org.hswebframework.web.commons.entity.param.DeleteParamEntity;
|
|
|
import org.hswebframework.web.commons.entity.param.QueryParamEntity;
|
|
|
import org.hswebframework.web.commons.entity.param.UpdateParamEntity;
|
|
|
import org.hswebframework.web.controller.message.ResponseMessage;
|
|
|
-import org.hswebframework.web.logging.AccessLogger;
|
|
|
import org.hswebframework.web.service.form.DynamicFormOperationService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -23,7 +22,7 @@ import java.util.Map;
|
|
|
* @since 3.0
|
|
|
*/
|
|
|
@RestController
|
|
|
-@Api(value = "动态表单操作",tags = "动态表单-数据操作")
|
|
|
+@Api(value = "动态表单操作", tags = "动态表单-数据操作")
|
|
|
@RequestMapping("/dynamic/form/operation")
|
|
|
@Authorize(permission = "dynamic-form-operation", description = "动态表单数据操作")
|
|
|
public class DynamicFormOperationController {
|
|
@@ -37,11 +36,25 @@ public class DynamicFormOperationController {
|
|
|
|
|
|
@GetMapping("/{formId}")
|
|
|
@ApiOperation("动态查询")
|
|
|
- @Authorize(action = Permission.ACTION_GET)
|
|
|
+ @Authorize(action = Permission.ACTION_QUERY)
|
|
|
public ResponseMessage<PagerResult<Object>> selectPager(@PathVariable String formId, QueryParamEntity paramEntity) {
|
|
|
return ResponseMessage.ok(dynamicFormOperationService.selectPager(formId, paramEntity));
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/{formId}/single")
|
|
|
+ @ApiOperation("动态查询返回单条数据")
|
|
|
+ @Authorize(action = Permission.ACTION_QUERY)
|
|
|
+ public ResponseMessage<Object> selectSingle(@PathVariable String formId, QueryParamEntity paramEntity) {
|
|
|
+ return ResponseMessage.ok(dynamicFormOperationService.selectSingle(formId, paramEntity));
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/{formId}/count")
|
|
|
+ @ApiOperation("动态查询返回数据条数")
|
|
|
+ @Authorize(action = Permission.ACTION_QUERY)
|
|
|
+ public ResponseMessage<Object> selectCount(@PathVariable String formId, QueryParamEntity paramEntity) {
|
|
|
+ return ResponseMessage.ok(dynamicFormOperationService.count(formId, paramEntity));
|
|
|
+ }
|
|
|
+
|
|
|
@PostMapping("/{formId}")
|
|
|
@ApiOperation("新增")
|
|
|
@Authorize(action = Permission.ACTION_ADD)
|