| | |
| | | |
| | | import com.terra.system.annotation.SysLog; |
| | | import com.terra.system.controller.all.BaseQueryController; |
| | | import com.terra.system.entity.all.ResponseMsg; |
| | | import com.terra.common.entity.all.ResponseMsg; |
| | | import com.terra.system.entity.sys.UserEntity; |
| | | import com.terra.system.helper.StringHelper; |
| | | import com.terra.system.service.data.DataQueryService; |
| | | import com.terra.system.service.sys.TokenService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.Parameters; |
| | | import javax.annotation.Resource; |
| | | |
| | | import io.swagger.v3.oas.annotations.enums.ParameterIn; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | * 数据检索 |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "数据管理\\数据查询") |
| | | @Tag(name = "数据管理\\数据查询") |
| | | @RestController |
| | | @RequestMapping("/dataQuery") |
| | | public class DataQueryController extends BaseQueryController { |
| | |
| | | DataQueryService dataQueryService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "上传文件") |
| | | @Operation(summary = "上传文件") |
| | | @ResponseBody |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "tabName", value = "表名", dataType = "String", paramType = "query", example = "lf.sys_style"), |
| | | @ApiImplicitParam(name = "eventid", value = "主键", dataType = "String", paramType = "query", example = "fa25979a5ef8b43ba82a0be35b3fb0d4") |
| | | @Parameters({ |
| | | @Parameter(name = "tabName", description = "表名", in = ParameterIn.QUERY, example = "lf.sys_style"), |
| | | @Parameter(name = "eventid", description = "主键", in = ParameterIn.QUERY, example = "fa25979a5ef8b43ba82a0be35b3fb0d4") |
| | | }) |
| | | @PostMapping(value = "/uploadFiles") |
| | | public ResponseMsg<Integer> uploadFiles(String tabName, String eventid, @RequestParam("file") MultipartFile[] files, HttpServletRequest req) { |