| | |
| | | public class TestController extends BaseController { |
| | | public static final SimpleDateFormat YMDHMS_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | |
| | | @GetMapping(value = "/test") |
| | | @GetMapping(value = "/testp") |
| | | public ResponseMsg<Object> test() { |
| | | try { |
| | | String date = YMDHMS_FORMAT.format(new Date()); |
| | |
| | | <version>1.1</version> |
| | | </dependency> |
| | | |
| | | <!--swagger--> |
| | | <!-- SpringDoc webmvc --> |
| | | <dependency> |
| | | <groupId>io.springfox</groupId> |
| | | <artifactId>springfox-swagger2</artifactId> |
| | | <version>2.9.2</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>io.springfox</groupId> |
| | | <artifactId>springfox-swagger-ui</artifactId> |
| | | <version>2.9.2</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.google.guava</groupId> |
| | | <artifactId>guava</artifactId> |
| | | <version>27.0-jre</version> |
| | | <groupId>org.springdoc</groupId> |
| | | <artifactId>springdoc-openapi-ui</artifactId> |
| | | <version>${springdoc.version}</version> |
| | | </dependency> |
| | | |
| | | <!--httpclient--> |
| | |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.context.annotation.EnableAspectJAutoProxy; |
| | | import org.springframework.scheduling.annotation.EnableAsync; |
| | | import springfox.documentation.swagger2.annotations.EnableSwagger2; |
| | | |
| | | /** |
| | | * ç³»ç»æ¨¡å |
| | |
| | | * @author admin |
| | | */ |
| | | @EnableAsync |
| | | @EnableSwagger2 |
| | | @EnableAspectJAutoProxy(exposeProxy = true) |
| | | @SpringBootApplication(scanBasePackages = {"com.terra.system.*"}) |
| | | public class SeSystemApp |
| | |
| | | import com.terra.system.helper.WebHelper; |
| | | import com.terra.system.service.sys.OperateService; |
| | | import com.terra.system.service.sys.TokenService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.apache.commons.logging.Log; |
| | | import org.apache.commons.logging.LogFactory; |
| | | import org.aspectj.lang.ProceedingJoinPoint; |
| | |
| | | oe.setExec(time); |
| | | |
| | | // 设置模å |
| | | Api api = clazz.getAnnotation(Api.class); |
| | | if (api != null) { |
| | | String[] strs = api.tags()[0].split(SPLIT); |
| | | Tag tag = clazz.getAnnotation(Tag.class); |
| | | if (tag != null) { |
| | | String[] strs = tag.name().split(SPLIT); |
| | | oe.setModular1(strs[0]); |
| | | oe.setModular2(strs[1]); |
| | | } |
| | |
| | | import javax.annotation.Resource; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.core.Ordered; |
| | | import org.springframework.http.MediaType; |
| | | import org.springframework.http.converter.HttpMessageConverter; |
| | | import org.springframework.util.AntPathMatcher; |
| | | import org.springframework.web.servlet.config.annotation.*; |
| | | |
| | | import java.nio.charset.Charset; |
| | | import java.nio.charset.StandardCharsets; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | |
| | | converter.setFastJsonConfig(config); |
| | | converter.setDefaultCharset(StandardCharsets.UTF_8); |
| | | converter.setSupportedMediaTypes(Collections.singletonList( |
| | | MediaType.APPLICATION_JSON |
| | | )); |
| | | converters.add(converter); |
| | | } |
| | | } |
| | |
| | | import com.terra.system.service.sys.DepService; |
| | | import com.terra.system.service.sys.DownlogService; |
| | | import com.terra.system.service.sys.TokenService; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import javax.annotation.Resource; |
| | | |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.Parameters; |
| | | import io.swagger.v3.oas.annotations.enums.ParameterIn; |
| | | import io.swagger.v3.oas.annotations.media.ArraySchema; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | DictService dictService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "æ å°åç§°", dataType = "String", paramType = "query", example = "dlgagnp"), |
| | | @ApiImplicitParam(name = "filter", value = "è¿æ»¤æ¡ä»¶", dataType = "String", paramType = "query", example = "gid >= 50 and name like 'å¿' and objectid < 5000.0"), |
| | | @ApiImplicitParam(name = "wkt", value = "WKTï¼èåææ¬ï¼", dataType = "String", paramType = "query", example = "gAPpDbZ53XfoQfvT8dj/uhBWX5os8kBJQ1LrNvH3VX7byFQdUJMPiEr8Fkj0q2i1pw+L8KFrvR0MLXq2xaO21nlQQXmEPofJxpDQZwEWUIFZsToXo1kLRD3t6WQezxWB8YTzXHM20Ba73x/ZuuezVhOFOq1U8HKf1dXQdv7gBzEB6fWMmFDc3FuH8GDDHv3LfT86Gio9VgMO6ohlrUdf3ZKtTHeLSuzGF4t0RZuX97YBNo25IIzpeTfRTXBxfdxA") |
| | | @Operation(description = "æ¥è¯¢è®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "æ å°åç§°", example = "dlgagnp"), |
| | | @Parameter(name = "filter", description = "è¿æ»¤æ¡ä»¶", example = "gid >= 50 and name like 'å¿' and objectid < 5000.0"), |
| | | @Parameter(name = "wkt", description = "WKTï¼èåææ¬ï¼", example = "gAPpDbZ53XfoQfvT8dj/uhBWX5os8kBJQ1LrNvH3VX7byFQdUJMPiEr8Fkj0q2i1pw+L8KFrvR0MLXq2xaO21nlQQXmEPofJxpDQZwEWUIFZsToXo1kLRD3t6WQezxWB8YTzXHM20Ba73x/ZuuezVhOFOq1U8HKf1dXQdv7gBzEB6fWMmFDc3FuH8GDDHv3LfT86Gio9VgMO6ohlrUdf3ZKtTHeLSuzGF4t0RZuX97YBNo25IIzpeTfRTXBxfdxA") |
| | | }) |
| | | @GetMapping(value = "/selectCount") |
| | | @PostMapping(value = "/selectCount") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "æ å°åç§°", dataType = "String", paramType = "query", example = "dlgagnp"), |
| | | @ApiImplicitParam(name = "depcode", value = "åä½ç¼ç ", dataType = "String", paramType = "query", example = "00"), |
| | | @ApiImplicitParam(name = "dirs", value = "ç®å½ç¼ç ", dataType = "String", paramType = "query", example = "00,01"), |
| | | @ApiImplicitParam(name = "filter", value = "è¿æ»¤æ¡ä»¶", dataType = "String", paramType = "query", example = "gid >= 50 and name like 'å¿' and objectid < 5000.0"), |
| | | @ApiImplicitParam(name = "wkt", value = "WKTï¼èåææ¬ï¼", dataType = "String", paramType = "query", example = ""), |
| | | //@ApiImplicitParam(name = "srid", value = "空é´å¼ç¨æ è¯ç¬¦", dataType = "Integer", paramType = "query", example = "4326"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "hasGeom", value = "æ¯/å¦å
å«ç©ºé´ä¿¡æ¯", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(description = "å页æ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "æ å°åç§°", in = ParameterIn.QUERY, example = "dlgagnp"), |
| | | @Parameter(name = "depcode", description = "åä½ç¼ç ", in = ParameterIn.QUERY, example = "00"), |
| | | @Parameter(name = "dirs", description = "ç®å½ç¼ç ", in = ParameterIn.QUERY, example = "00,01"), |
| | | @Parameter(name = "filter", description = "è¿æ»¤æ¡ä»¶", in = ParameterIn.QUERY, example = "gid >= 50 and name like 'å¿' and objectid < 5000.0"), |
| | | @Parameter(name = "wkt", description = "WKTï¼èåææ¬ï¼", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "hasGeom", description = "æ¯/å¦å
å«ç©ºé´ä¿¡æ¯", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | @PostMapping(value = "/selectByPage") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ç¼å²åºæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "æ å°åç§°", dataType = "String", paramType = "query", example = "dlgagnp"), |
| | | @ApiImplicitParam(name = "wkt", value = "WKTï¼èåææ¬ï¼", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "buffer", value = "ç¼å²åºå¤§å°", dataType = "Double", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "limit", value = "éå¶æ¡æ°", dataType = "Integer", paramType = "query", example = "20") |
| | | @Operation(description = "ç¼å²åºæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "æ å°åç§°", in = ParameterIn.QUERY, example = "dlgagnp"), |
| | | @Parameter(name = "wkt", description = "WKTï¼èåææ¬ï¼", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "buffer", description = "ç¼å²åºå¤§å°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "limit", description = "éå¶æ¡æ°", in = ParameterIn.QUERY, example = "20") |
| | | }) |
| | | @GetMapping(value = "/selectByBuffer") |
| | | public ResponseMsg<List<?>> selectByBuffer(String name, String wkt, Double buffer, Integer limit) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®ç¶IDå页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "metaid", value = "ç¶ID", dataType = "String", paramType = "query", example = "0"), |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(description = "æ ¹æ®ç¶IDå页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "metaid", description = "ç¶ID", in = ParameterIn.QUERY, example = "0"), |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectPageAndCountByPid") |
| | | public ResponseMsg<List<MetaEntity>> selectPageAndCountByPid(Integer metaid, String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢WKT") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "æ å°åç§°", dataType = "String", paramType = "query", example = "dlgagnp"), |
| | | @ApiImplicitParam(name = "gid", value = "GID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(description = "æ ¹æ®IDæ¥è¯¢WKT") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "æ å°åç§°", in = ParameterIn.QUERY, example = "dlgagnp"), |
| | | @Parameter(name = "gid", description = "GID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectWktById") |
| | | public ResponseMsg<String> selectWktById(String name, Integer gid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®GIDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "æ å°åç§°", dataType = "String", paramType = "query", example = "dlgagnp"), |
| | | @ApiImplicitParam(name = "gid", value = "GID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(description = "æ ¹æ®GIDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "æ å°åç§°", in = ParameterIn.QUERY, example = "dlgagnp"), |
| | | @Parameter(name = "gid", description = "GID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByGid") |
| | | public ResponseMsg<Object> selectByGid(String name, int gid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®å®ä½åæ¥è¯¢è¡¨å") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "æ å°åç§°", dataType = "String", paramType = "query", example = "dlgagnp") |
| | | @Operation(description = "æ ¹æ®å®ä½åæ¥è¯¢è¡¨å") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "æ å°åç§°", in = ParameterIn.QUERY, example = "dlgagnp") |
| | | }) |
| | | @GetMapping(value = "/selectTabByEntity") |
| | | public ResponseMsg<Object> selectTabByEntity(String name) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¨¡ç³æç´¢åæ®µ") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "æ å°åç§°", dataType = "String", paramType = "query", example = "dlgagnp"), |
| | | @ApiImplicitParam(name = "field", value = "åæ®µ", dataType = "String", paramType = "query", example = "name"), |
| | | @ApiImplicitParam(name = "value", value = "å¼", dataType = "String", paramType = "query", example = "'å¿'") |
| | | @Operation(description = "æ¨¡ç³æç´¢åæ®µ") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "æ å°åç§°", in = ParameterIn.QUERY, example = "dlgagnp"), |
| | | @Parameter(name = "field", description = "åæ®µ", in = ParameterIn.QUERY, example = "name"), |
| | | @Parameter(name = "value", description = "å¼", in = ParameterIn.QUERY, example = "'å¿'") |
| | | }) |
| | | @GetMapping(value = "/selectFieldFuzzy") |
| | | public ResponseMsg<List<String>> selectFieldFuzzy(String name, String field, String value) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¨¡ç³æç´¢ç¨æ·") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "ç¨æ·å", dataType = "String", paramType = "query", example = "室") |
| | | @Operation(description = "æ¨¡ç³æç´¢ç¨æ·") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "ç¨æ·å", in = ParameterIn.QUERY, example = "室") |
| | | }) |
| | | @GetMapping(value = "/selectUserFuzzy") |
| | | public ResponseMsg<List<IdNameEntity>> selectUserFuzzy(String name) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¨¡ç³æç´¢åä½") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åä½å", dataType = "String", paramType = "query", example = "å¸") |
| | | @Operation(description = "æ¨¡ç³æç´¢åä½") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åä½å", in = ParameterIn.QUERY, example = "å¸") |
| | | }) |
| | | @GetMapping(value = "/selectDepFuzzy") |
| | | public ResponseMsg<List<IdNameEntity>> selectDepFuzzy(String name) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææè¡¨") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "ç¹"), |
| | | @ApiImplicitParam(name = "hasGeom", value = "嫿Geomåæ®µ", dataType = "Boolean", paramType = "query", example = "false") |
| | | @Operation(description = "æ¥è¯¢ææè¡¨") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "ç¹"), |
| | | @Parameter(name = "hasGeom", description = "嫿Geomåæ®µ", in = ParameterIn.QUERY, example = "false") |
| | | }) |
| | | @GetMapping(value = "/selectTabs") |
| | | public ResponseMsg<List<TabEntity>> selectTabs(String name, Boolean hasGeom) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®è¡¨åå页æ¥è¯¢è¡¨") |
| | | @Operation(description = "æ ¹æ®è¡¨åå页æ¥è¯¢è¡¨") |
| | | @GetMapping(value = "/selectTabsByPage") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "depcode", value = "åä½ç¼ç ", dataType = "String", paramType = "query", example = "00"), |
| | | @ApiImplicitParam(name = "dirs", value = "ç®å½ç¼ç ", dataType = "String", paramType = "query", example = "00,01"), |
| | | @ApiImplicitParam(name = "tab", value = "表å", dataType = "String", paramType = "query", example = "dlg_"), |
| | | @ApiImplicitParam(name = "types", value = "ç±»å«", dataType = "String", paramType = "query", example = "æµç»ï¼ESVï¼"), |
| | | @ApiImplicitParam(name = "hasGeom", value = "嫿Geomåæ®µ", dataType = "Boolean", paramType = "query", example = "false"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Parameters({ |
| | | @Parameter(name = "depcode", description = "åä½ç¼ç ", in = ParameterIn.QUERY, example = "00"), |
| | | @Parameter(name = "dirs", description = "ç®å½ç¼ç ", in = ParameterIn.QUERY, example = "00,01"), |
| | | @Parameter(name = "tab", description = "表å", in = ParameterIn.QUERY, example = "dlg_"), |
| | | @Parameter(name = "types", description = "ç±»å«", in = ParameterIn.QUERY, example = "æµç»ï¼ESVï¼"), |
| | | @Parameter(name = "hasGeom", description = "嫿Geomåæ®µ", in = ParameterIn.QUERY, example = "false"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | public ResponseMsg<Object> selectTabsByPage(String depcode, String dirs, String tab, String types, Boolean hasGeom, Integer pageSize, Integer pageIndex) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å段信æ¯") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "æ å°åç§°", dataType = "String", paramType = "query", example = "dlg25wAanp") |
| | | @Operation(description = "æ¥è¯¢å段信æ¯") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "æ å°åç§°", in = ParameterIn.QUERY, example = "dlg25wAanp") |
| | | }) |
| | | @GetMapping(value = "/selectFields") |
| | | public ResponseMsg<List<DictEntity>> selectFields(String name) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å段信æ¯") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ns", value = "å称空é´", dataType = "String", paramType = "query", example = "bd"), |
| | | @ApiImplicitParam(name = "tab", value = "表å", dataType = "String", paramType = "query", example = "dlg25wAanp") |
| | | @Operation(description = "æ¥è¯¢å段信æ¯") |
| | | @Parameters({ |
| | | @Parameter(name = "ns", description = "å称空é´", in = ParameterIn.QUERY, example = "bd"), |
| | | @Parameter(name = "tab", description = "表å", in = ParameterIn.QUERY, example = "dlg25wAanp") |
| | | }) |
| | | @GetMapping(value = "/selectTabFields") |
| | | public ResponseMsg<List<DictEntity>> selectTabFields(String ns, String tab) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å¼åä¿¡æ¯") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "æ å°åç§°", dataType = "String", paramType = "query", example = "dlg25wAanp") |
| | | @Operation(description = "æ¥è¯¢å¼åä¿¡æ¯") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "æ å°åç§°", in = ParameterIn.QUERY, example = "dlg25wAanp") |
| | | }) |
| | | @GetMapping(value = "/selectDomains") |
| | | public ResponseMsg<List<DomainEntity>> selectDomains(String name) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "tabName", value = "表å", dataType = "String", paramType = "query", example = "lf.sys_style"), |
| | | @ApiImplicitParam(name = "eventid", value = "主é®", dataType = "String", paramType = "query", example = "fa25979a5ef8b43ba82a0be35b3fb0d4") |
| | | @Operation(description = "æ¥è¯¢æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "tabName", description = "表å", in = ParameterIn.QUERY, example = "lf.sys_style"), |
| | | @Parameter(name = "eventid", description = "主é®", in = ParameterIn.QUERY, example = "fa25979a5ef8b43ba82a0be35b3fb0d4") |
| | | }) |
| | | @GetMapping(value = "/selectFiles") |
| | | public ResponseMsg<List<AttachEntity>> selectFiles(String tabName, String eventid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å 餿件") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(description = "å 餿件") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deleteFiles(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å
æ°æ®ä¸æº¢åºçåä½ID") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "reqEntity", value = "请æ±ä¸è½½å®ä½", dataType = "DownloadReqEntity", paramType = "body") |
| | | @Operation(description = "æ¥è¯¢å
æ°æ®ä¸æº¢åºçåä½ID") |
| | | @Parameters({ |
| | | @Parameter(name = "reqEntity", description = "请æ±ä¸è½½å®ä½") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/selectMetaOverflowDep") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢DB䏿º¢åºçåä½ID") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "reqEntity", value = "请æ±ä¸è½½å®ä½", dataType = "DownloadReqEntity", paramType = "body") |
| | | @Operation(description = "æ¥è¯¢DB䏿º¢åºçåä½ID") |
| | | @Parameters({ |
| | | @Parameter(name = "reqEntity", description = "请æ±ä¸è½½å®ä½") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/selectDbOverflowDep") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®åä½ç¼ç æ°ç»æ¥è¯¢åä½") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "codes", value = "åä½ç¼ç æ°ç»", dataType = "String", paramType = "query", allowMultiple = true, example = "00,0001") |
| | | @Operation(description = "æ ¹æ®åä½ç¼ç æ°ç»æ¥è¯¢åä½") |
| | | @Parameters({ |
| | | @Parameter(name = "codes", description = "åä½ç¼ç æ°ç»", in = ParameterIn.QUERY, schema = @Schema(type = "array"), example = "00,0001") |
| | | }) |
| | | @GetMapping(value = "/selectDepsByCodes") |
| | | public ResponseMsg<Object> selectDepsByCodes(String[] codes) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸è½½DBæ°æ®") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dr", value = "请æ±ä¸è½½å®ä½", dataType = "DownloadReqEntity", paramType = "body") |
| | | @Operation(description = "ä¸è½½DBæ°æ®") |
| | | @Parameters({ |
| | | @Parameter(name = "dr", description = "请æ±ä¸è½½å®ä½") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/downloadDbData") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥çæä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "éä»¶Guid", dataType = "String", paramType = "body") |
| | | @Operation(description = "æ¥çæä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "éä»¶Guid", in = ParameterIn.QUERY) |
| | | }) |
| | | @GetMapping(value = "/downloadForView") |
| | | public void downloadForView(String guid, HttpServletResponse res) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢ä¸è½½æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(description = "å页æ¥è¯¢ä¸è½½æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectPageCountForDownload") |
| | | public ResponseMsg<List<DownloadEntity>> selectPageCountForDownload(String name, Integer pageSize, Integer pageIndex, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ç®å½ç±»å«") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "D") |
| | | @Operation(description = "æ¥è¯¢ç®å½ç±»å«") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "D") |
| | | }) |
| | | @GetMapping(value = "/selectDirTypes") |
| | | public ResponseMsg<Object> selectDirTypes(String name) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢é¡¹ç®åç§°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "西") |
| | | @Operation(description = "æ¥è¯¢é¡¹ç®åç§°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "西") |
| | | }) |
| | | @GetMapping(value = "/selectProject") |
| | | public ResponseMsg<Object> selectProject(String name) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®å
æ°æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(description = "æ ¹æ®å
æ°æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectMetaById") |
| | | public ResponseMsg<MetaEntity> selectMetaById(int id) { |
| | |
| | | import com.terra.system.service.sys.LayerService; |
| | | import com.terra.system.service.sys.MenuService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * æææ§å¶å¨ |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\ææç®¡ç") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\ææç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/perms") |
| | | public class PermsController extends BaseController { |
| | |
| | | LayerService layerService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å½åç¨æ·çå¾å±ææ") |
| | | @Operation(summary = "æ¥è¯¢å½åç¨æ·çå¾å±ææ") |
| | | @GetMapping(value = "/selectLayers") |
| | | public ResponseMsg<Object> selectLayers(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å½åç¨æ·çæå½±å¾å±ææ") |
| | | @Operation(summary = "æ¥è¯¢å½åç¨æ·çæå½±å¾å±ææ") |
| | | @GetMapping(value = "/selectProjectLayers") |
| | | public ResponseMsg<Object> selectProjectLayers(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å½åç¨æ·çèµæºææ") |
| | | @Operation(summary = "æ¥è¯¢å½åç¨æ·çèµæºææ") |
| | | @GetMapping(value = "/selectRes") |
| | | public ResponseMsg<Object> selectRes(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å½åç¨æ·çèåææ") |
| | | @Operation(summary = "æ¥è¯¢å½åç¨æ·çèåææ") |
| | | @GetMapping(value = "/selectMenus") |
| | | public ResponseMsg<List<MenusAuthEntity>> selectMenus(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å½åç¨æ·çæéææ") |
| | | @Operation(summary = "æ¥è¯¢å½åç¨æ·çæéææ") |
| | | @GetMapping(value = "/selectPerms") |
| | | public ResponseMsg<List<String>> selectPerms(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å½åç¨æ·çæéææå®ä½éå") |
| | | @Operation(summary = "æ¥è¯¢å½åç¨æ·çæéææå®ä½éå") |
| | | @GetMapping(value = "/selectPermsEntity") |
| | | public ResponseMsg<List<PermsAuthEntity>> selectPermsEntity(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¸
空ææç¼å") |
| | | @Operation(summary = "æ¸
空ææç¼å") |
| | | @GetMapping(value = "/deletePermsCache") |
| | | public ResponseMsg<Boolean> deletePermsCache() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¸
空ææç¼å") |
| | | @Operation(summary = "æ¸
空ææç¼å") |
| | | @GetMapping(value = "/deleteAllCache") |
| | | public ResponseMsg<Boolean> deleteAllCache() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ç¨æ·è§è²") |
| | | @Operation(summary = "æ¥è¯¢ç¨æ·è§è²") |
| | | @GetMapping("/selectRoles") |
| | | public ResponseMsg<Object> selectRoles(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "é彿¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "èåID", dataType = "Integer", paramType = "query", example = "14") |
| | | @Operation(summary = "é彿¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "èåID", in = ParameterIn.QUERY, example = "14") |
| | | }) |
| | | @GetMapping(value = "/selectMenuRecursive") |
| | | public ResponseMsg<Object> selectMenuRecursive(int id, HttpServletRequest req) { |
| | |
| | | import com.terra.system.service.sys.OperateService; |
| | | import com.terra.system.service.sys.TokenService; |
| | | import com.terra.system.service.sys.UserService; |
| | | 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.tags.Tag; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | |
| | | * @author WWW |
| | | * @date 2022-09-21 |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\ç¾å管ç") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\ç¾å管ç") |
| | | @RestController |
| | | @RequestMapping("/sign") |
| | | public class SignController extends BaseController { |
| | |
| | | private ScheduleService scheduleService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "跳转é¦é¡µ") |
| | | @Operation(summary = "跳转é¦é¡µ") |
| | | @GetMapping({"/", "/toIndex"}) |
| | | public ModelAndView toIndex(ModelAndView mv, HttpServletRequest req) { |
| | | mv.setViewName("index"); |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "跳转ç»å½é¡µ") |
| | | @Operation(summary = "跳转ç»å½é¡µ") |
| | | @GetMapping("/toLogin") |
| | | public ModelAndView toLogin(ModelAndView mv) { |
| | | mv.setViewName("login"); |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ°æ®åºçæ§") |
| | | @Operation(summary = "æ°æ®åºçæ§") |
| | | @GetMapping(value = "/toDruid") |
| | | public ModelAndView toDruid(HttpServletRequest req, HttpServletResponse res) { |
| | | ModelAndView mv = new ModelAndView(); |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "èµæºçæ§") |
| | | @Operation(summary = "èµæºçæ§") |
| | | @GetMapping(value = "/toMonitor") |
| | | public ModelAndView toMonitor(ModelAndView mv, HttpServletRequest req, HttpServletResponse res) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ç»å½") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "user", value = "ç¨æ¶å", dataType = "UsersEntity", paramType = "body", example = "") |
| | | @Operation(summary = "ç»å½") |
| | | @Parameters({ |
| | | @Parameter(name = "user", description = "ç¨æ¶å", example = "") |
| | | }) |
| | | @PostMapping(value = "/login", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<TokenEntity> login(@RequestBody UserEntity user, HttpServletRequest req, HttpServletResponse res) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ç»åº") |
| | | @Operation(summary = "ç»åº") |
| | | @GetMapping(value = "/logout") |
| | | public ResponseMsg<Boolean> logout(HttpServletRequest req, HttpServletResponse res) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ£æ¥æ¯/å¦ç»å½") |
| | | @Operation(summary = "æ£æ¥æ¯/å¦ç»å½") |
| | | @GetMapping("/check") |
| | | public ResponseMsg<Boolean> check(HttpServletRequest req, HttpServletResponse res) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "è·åå½åç¨æ·") |
| | | @Operation(summary = "è·åå½åç¨æ·") |
| | | @GetMapping("/getCurrentUser") |
| | | public ResponseMsg<UserEntity> getCurrentUser(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "è·åRSAå å¯å
¬é¥") |
| | | @Operation(summary = "è·åRSAå å¯å
¬é¥") |
| | | @GetMapping("/getPublicKey") |
| | | public ResponseMsg<String> getPublicKey() { |
| | | try { |
| | |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "æå
¥æä½æ¥å¿") |
| | | @Operation(summary = "æå
¥æä½æ¥å¿") |
| | | @GetMapping("/insertOpLog") |
| | | public ResponseMsg<Object> insertOpLog(String m1, String m2, HttpServletRequest req) { |
| | | try { |
| | |
| | | import com.terra.system.service.all.UploadAttachService; |
| | | import com.terra.system.service.sys.ReportService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | * æ°æ®ç»è®¡ |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "æ°æ®ç®¡ç\\æ°æ®ç»è®¡") |
| | | @Tag(name = "æ°æ®ç®¡ç\\æ°æ®ç»è®¡") |
| | | @RestController |
| | | @RequestMapping("/dataCount") |
| | | public class DataCountController extends BaseController { |
| | |
| | | UploadAttachService uploadAttachService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "code", value = "ç¼ç ", dataType = "String", paramType = "query", example = "countOperates"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "code", description = "ç¼ç ", in = ParameterIn.QUERY, example = "countOperates"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<ReportEntity>> selectByPageAndCount(String name, String code, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æ°æ®éç»è®¡") |
| | | @Operation(summary = "æ¥è¯¢æ°æ®éç»è®¡") |
| | | @GetMapping(value = "/selectCountSizes") |
| | | public ResponseMsg<Object> selectCountSizes() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ææä»¶ç±»åç»è®¡") |
| | | @Operation(summary = "ææä»¶ç±»åç»è®¡") |
| | | @GetMapping(value = "/countSizesByType") |
| | | public ResponseMsg<Object> countSizesByType() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æå¡è°ç¨éç»è®¡") |
| | | @Operation(summary = "æ¥è¯¢æå¡è°ç¨éç»è®¡") |
| | | @GetMapping(value = "/selectCountServices") |
| | | public ResponseMsg<Object> selectCountServices() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ç¨æ·æµéç»è®¡") |
| | | @Operation(summary = "æ¥è¯¢ç¨æ·æµéç»è®¡") |
| | | @GetMapping(value = "/selectCountOperates") |
| | | public ResponseMsg<Object> selectCountOperates() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡æ°æ®") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡æ°æ®") |
| | | @GetMapping(value = "/countSizesByPrj") |
| | | public ResponseMsg<Object> countSizesByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡é»åæ°æ®") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡é»åæ°æ®") |
| | | @GetMapping(value = "/countExplorationPoints") |
| | | public ResponseMsg<Object> countExplorationPoints() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸è½½æ¥å") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "æ¥åID", dataType = "Integer", paramType = "query", example = "18"), |
| | | @ApiImplicitParam(name = "code", value = "ç®å½ç¼ç ", dataType = "String", paramType = "query", example = "00"), |
| | | @Operation(summary = "ä¸è½½æ¥å") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "æ¥åID", in = ParameterIn.QUERY, example = "18"), |
| | | @Parameter(name = "code", description = "ç®å½ç¼ç ", in = ParameterIn.QUERY, example = "00"), |
| | | }) |
| | | @GetMapping(value = "/downloadReport") |
| | | public void downloadReport(Integer id, String code, HttpServletRequest req, HttpServletResponse res) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡æ°åé«ç¨æ¨¡åé¢ç§¯") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡æ°åé«ç¨æ¨¡åé¢ç§¯") |
| | | @GetMapping(value = "/countDemAreaByPrj") |
| | | public ResponseMsg<Object> countDemAreaByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡ä¸ç»´å°å½¢æ¨¡åé¢ç§¯") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡ä¸ç»´å°å½¢æ¨¡åé¢ç§¯") |
| | | @GetMapping(value = "/countMptAreaByPrj") |
| | | public ResponseMsg<Object> countMptAreaByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡å¾ææå½±æ¨¡åé¢ç§¯") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡å¾ææå½±æ¨¡åé¢ç§¯") |
| | | @GetMapping(value = "/countOsgbAreaByPrj") |
| | | public ResponseMsg<Object> countOsgbAreaByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡æ¿å
ç¹äºæ¨¡åé¢ç§¯") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡æ¿å
ç¹äºæ¨¡åé¢ç§¯") |
| | | @GetMapping(value = "/countLasAreaByPrj") |
| | | public ResponseMsg<Object> countLasAreaByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡åå¯å·¥ç¹ä¸ªæ°") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡åå¯å·¥ç¹ä¸ªæ°") |
| | | @GetMapping(value = "/countSurveyWorksiteByPrj") |
| | | public ResponseMsg<Object> countSurveyWorksiteByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡å坿¥å个æ°") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡å坿¥å个æ°") |
| | | @GetMapping(value = "/countExplorationReportByPrj") |
| | | public ResponseMsg<Object> countExplorationReportByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡å´©å¡ä¸ªæ°") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡å´©å¡ä¸ªæ°") |
| | | @GetMapping(value = "/countCollapseByPrj") |
| | | public ResponseMsg<Object> countCollapseByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡æ³¥ç³æµä¸ªæ°") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡æ³¥ç³æµä¸ªæ°") |
| | | @GetMapping(value = "/countDebrisFlowByPrj") |
| | | public ResponseMsg<Object> countDebrisFlowByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡å°é¢å¡é·ä¸ªæ°") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡å°é¢å¡é·ä¸ªæ°") |
| | | @GetMapping(value = "/countGroundCollapseByPrj") |
| | | public ResponseMsg<Object> countGroundCollapseByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡é«é¡è¾¹å¡ä¸ªæ°") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡é«é¡è¾¹å¡ä¸ªæ°") |
| | | @GetMapping(value = "/countHighSteepSlopeByPrj") |
| | | public ResponseMsg<Object> countHighSteepSlopeByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡æ»å¡ä¸ªæ°") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡æ»å¡ä¸ªæ°") |
| | | @GetMapping(value = "/countLandSlideByPrj") |
| | | public ResponseMsg<Object> countLandSlideByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡ä¸ç¨³å®æå¡ä¸ªæ°") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡ä¸ç¨³å®æå¡ä¸ªæ°") |
| | | @GetMapping(value = "/countUnstableSlopeByPrj") |
| | | public ResponseMsg<Object> countUnstableSlopeByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡æ°´æ¯ä¸ªæ°") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡æ°´æ¯ä¸ªæ°") |
| | | @GetMapping(value = "/countWaterDamageByPrj") |
| | | public ResponseMsg<Object> countWaterDamageByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡æ°å线åå¾é¢ç§¯") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡æ°å线åå¾é¢ç§¯") |
| | | @GetMapping(value = "/countDlgAreaByPrj") |
| | | public ResponseMsg<Object> countDlgAreaByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡æ°åæ£å°å½±åå¾é¢ç§¯") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡æ°åæ£å°å½±åå¾é¢ç§¯") |
| | | @GetMapping(value = "/countDomAreaByPrj") |
| | | public ResponseMsg<Object> countDomAreaByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡ç®¡çº¿é¿åº¦") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡ç®¡çº¿é¿åº¦") |
| | | @GetMapping(value = "/countLineLength") |
| | | public ResponseMsg<Object> countLineLength() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡åæ¢ç¹ä¸ªæ°") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡åæ¢ç¹ä¸ªæ°") |
| | | @GetMapping(value = "/countExplorationPointByPrj") |
| | | public ResponseMsg<Object> countExplorationPointByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡ä¸ç»´å°è´¨æ¨¡åé¢ç§¯") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡ä¸ç»´å°è´¨æ¨¡åé¢ç§¯") |
| | | @GetMapping(value = "/countGeoModelAreaByPrj") |
| | | public ResponseMsg<Object> countGeoModelAreaByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æé¡¹ç®ç»è®¡å°ç¾ç¹ä¸ªæ°") |
| | | @Operation(summary = "æé¡¹ç®ç»è®¡å°ç¾ç¹ä¸ªæ°") |
| | | @GetMapping(value = "/countGeologicHazardByPrj") |
| | | public ResponseMsg<Object> countGeologicHazardByPrj() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "é¡¹ç®æ°æ®åç±»ç»è®¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "code", value = "项ç®ç¼ç ", dataType = "String", paramType = "query", example = "0B") |
| | | @Operation(summary = "é¡¹ç®æ°æ®åç±»ç»è®¡") |
| | | @Parameters({ |
| | | @Parameter(name = "code", description = "项ç®ç¼ç ", in = ParameterIn.QUERY, example = "0B") |
| | | }) |
| | | @GetMapping(value = "/countVariousDataByPrj") |
| | | public ResponseMsg<Object> countVariousDataByPrj(String code) { |
| | |
| | | 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) { |
| | |
| | | import com.terra.system.entity.sys.UserEntity; |
| | | import com.terra.system.service.data.DictService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * åå
¸ç®¡ç |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "æ°æ®ç®¡ç\\åå
¸ç®¡ç") |
| | | @Tag(name = "æ°æ®ç®¡ç\\åå
¸ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/dict") |
| | | public class DictController extends BaseController { |
| | |
| | | TokenService tokenService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ns", value = "表空é´", dataType = "String", paramType = "query", required = false, example = "bd"), |
| | | @ApiImplicitParam(name = "tab", value = "表å", dataType = "String", paramType = "query", example = "dlg_25w_hyda") |
| | | @Operation(summary = "æ¥è¯¢è®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "ns", description = "表空é´", in = ParameterIn.QUERY, required = false, example = "bd"), |
| | | @Parameter(name = "tab", description = "表å", in = ParameterIn.QUERY, example = "dlg_25w_hyda") |
| | | }) |
| | | @GetMapping({"/selectCount"}) |
| | | public ResponseMsg<Integer> selectCount(String ns, String tab) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ns", value = "表空é´", dataType = "String", paramType = "query", example = "bd"), |
| | | @ApiImplicitParam(name = "tab", value = "表å", dataType = "String", paramType = "query", example = "dlg_25w_hyda"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "ns", description = "表空é´", in = ParameterIn.QUERY, example = "bd"), |
| | | @Parameter(name = "tab", description = "表å", in = ParameterIn.QUERY, example = "dlg_25w_hyda"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<DictEntity>> selectByPage(String ns, String tab, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ns", value = "表空é´", dataType = "String", paramType = "query", example = "bd"), |
| | | @ApiImplicitParam(name = "tab", value = "表å", dataType = "String", paramType = "query", example = "dlg_25w_hyda"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "ns", description = "表空é´", in = ParameterIn.QUERY, example = "bd"), |
| | | @Parameter(name = "tab", description = "表å", in = ParameterIn.QUERY, example = "dlg_25w_hyda"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<DictEntity>> selectByPageAndCount(String ns, String tab, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<DictEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢åå
¸è¡¨ç»æ") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "ç¹"), |
| | | @ApiImplicitParam(name = "hasGeom", value = "嫿Geomåæ®µ", dataType = "Boolean", paramType = "query", example = "false") |
| | | @Operation(summary = "æ¥è¯¢åå
¸è¡¨ç»æ") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "ç¹"), |
| | | @Parameter(name = "hasGeom", description = "嫿Geomåæ®µ", in = ParameterIn.QUERY, example = "false") |
| | | }) |
| | | @GetMapping(value = "/selectDictTab") |
| | | public ResponseMsg<List<TabEntity>> selectDictTab(String name, Boolean hasGeom) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "DictEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insert(@RequestBody DictEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "DictEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> inserts(@RequestBody List<DictEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "DictEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "DictEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8") |
| | |
| | | import com.terra.system.helper.WebHelper; |
| | | import com.terra.system.service.data.DirService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | * @author sws |
| | | * @date 2022-09-22 |
| | | */ |
| | | @Api(tags = "æ°æ®ç®¡ç\\ç®å½ç®¡ç") |
| | | @Tag(name = "æ°æ®ç®¡ç\\ç®å½ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/dir") |
| | | public class DirController extends BaseController { |
| | |
| | | TokenService tokenService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "DirEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertDir", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertDir(@RequestBody DirEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "DirEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertDirs", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertDirs(@RequestBody List<DirEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteDir") |
| | | public ResponseMsg<Integer> deleteDir(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "DirEntity", paramType = "body", example = "") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", example = "") |
| | | }) |
| | | @GetMapping(value = "/deleteDirs") |
| | | public ResponseMsg<Integer> deleteDirs(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "DictEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateDir", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "DirEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateDirs", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢æ°æ®") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢æ°æ®") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectDir") |
| | | public ResponseMsg<DirEntity> selectDir(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æææ°æ®") |
| | | @Operation(summary = "æ¥è¯¢æææ°æ®") |
| | | @GetMapping(value = "/selectDirAll") |
| | | public ResponseMsg<List<DirEntity>> selectDirAll() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸è½½ç®å½ç»æ") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ç®å½ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "ä¸è½½ç®å½ç»æ") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ç®å½ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/downloadDir") |
| | | public void downloadDir(int id, HttpServletResponse res) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢é¡¹ç®") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "西") |
| | | @Operation(summary = "æ¥è¯¢é¡¹ç®") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "西") |
| | | }) |
| | | @GetMapping(value = "/selectProject") |
| | | public ResponseMsg<List<DirEntity>> selectProject(String name) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "é彿¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "pid", value = "ç¶ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "é彿¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "pid", description = "ç¶ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPid") |
| | | public ResponseMsg<List<DirEntity>> selectByPid(int pid) { |
| | |
| | | import com.terra.system.service.data.DictService; |
| | | import com.terra.system.service.data.DomainService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * å¼å |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "æ°æ®ç®¡ç\\å¼å") |
| | | @Tag(name = "æ°æ®ç®¡ç\\å¼å") |
| | | @RestController |
| | | @RequestMapping("/domain") |
| | | public class DomainController extends BaseController { |
| | |
| | | DictService dictService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ns", value = "å称空é´", dataType = "String", paramType = "query", example = "bd"), |
| | | @ApiImplicitParam(name = "tab", value = "表å", dataType = "String", paramType = "query", example = "dlg_25w_aanp"), |
| | | @ApiImplicitParam(name = "code", value = "ç¼ç ", dataType = "String", paramType = "query", example = "210") |
| | | @Operation(summary = "æ¥è¯¢è®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "ns", description = "å称空é´", in = ParameterIn.QUERY, example = "bd"), |
| | | @Parameter(name = "tab", description = "表å", in = ParameterIn.QUERY, example = "dlg_25w_aanp"), |
| | | @Parameter(name = "code", description = "ç¼ç ", in = ParameterIn.QUERY, example = "210") |
| | | }) |
| | | @GetMapping({"/selectCount"}) |
| | | public ResponseMsg<Integer> selectCount(String ns, String tab, String code) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ns", value = "å称空é´", dataType = "String", paramType = "query", example = "bd"), |
| | | @ApiImplicitParam(name = "tab", value = "表å", dataType = "String", paramType = "query", example = "dlg_25w_aanp"), |
| | | @ApiImplicitParam(name = "code", value = "ç¼ç ", dataType = "String", paramType = "query", example = "210"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "ns", description = "å称空é´", in = ParameterIn.QUERY, example = "bd"), |
| | | @Parameter(name = "tab", description = "表å", in = ParameterIn.QUERY, example = "dlg_25w_aanp"), |
| | | @Parameter(name = "code", description = "ç¼ç ", in = ParameterIn.QUERY, example = "210"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<DomainEntity>> selectByPage(String ns, String tab, String code, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ns", value = "å称空é´", dataType = "String", paramType = "query", example = "bd"), |
| | | @ApiImplicitParam(name = "tab", value = "表å", dataType = "String", paramType = "query", example = "b_hy20w_s23"), |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "ç级"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "ns", description = "å称空é´", in = ParameterIn.QUERY, example = "bd"), |
| | | @Parameter(name = "tab", description = "表å", in = ParameterIn.QUERY, example = "b_hy20w_s23"), |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "ç级"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<DomainEntity>> selectByPageAndCount(String ns, String tab, String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectAll") |
| | | public ResponseMsg<List<DomainEntity>> selectAll() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å¼å表éå") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "b_"), |
| | | @ApiImplicitParam(name = "hasGeom", value = "嫿Geomåæ®µ", dataType = "Boolean", paramType = "query", example = "false") |
| | | @Operation(summary = "æ¥è¯¢å¼å表éå") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "b_"), |
| | | @Parameter(name = "hasGeom", description = "嫿Geomåæ®µ", in = ParameterIn.QUERY, example = "false") |
| | | }) |
| | | @GetMapping(value = "/selectDomainTabs") |
| | | public ResponseMsg<List<TabEntity>> selectDomainTabs(String name, Boolean hasGeom) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®è¡¨åæ¥è¯¢å¼ååç§°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ns", value = "å称空é´", dataType = "String", paramType = "query", example = "bd"), |
| | | @ApiImplicitParam(name = "tab", value = "表å", dataType = "String", paramType = "query", example = "b_hy20w_s23") |
| | | @Operation(summary = "æ ¹æ®è¡¨åæ¥è¯¢å¼ååç§°") |
| | | @Parameters({ |
| | | @Parameter(name = "ns", description = "å称空é´", in = ParameterIn.QUERY, example = "bd"), |
| | | @Parameter(name = "tab", description = "表å", in = ParameterIn.QUERY, example = "b_hy20w_s23") |
| | | }) |
| | | @GetMapping(value = "/selectDomainNames") |
| | | public ResponseMsg<List<String>> selectDomainNames(String ns, String tab) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<DomainEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "DomainEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insert(@RequestBody DomainEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "DomainEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> inserts(@RequestBody List<DomainEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "DomainEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "DomainEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8") |
| | |
| | | import com.terra.system.service.sys.DepService; |
| | | import com.terra.system.service.sys.DownlogService; |
| | | import com.terra.system.service.sys.TokenService; |
| | | import io.swagger.annotations.*; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.Parameters; |
| | | |
| | | import io.swagger.v3.oas.annotations.enums.ParameterIn; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | |
| | | * å
æ°æ® |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "æ°æ®ç®¡ç\\ä¿¡æ¯ç®¡ç") |
| | | @Tag(name = "æ°æ®ç®¡ç\\ä¿¡æ¯ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/meta") |
| | | public class MetaController extends BaseController { |
| | |
| | | CadService cadService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "depcode", value = "åä½ç¼ç ", dataType = "String", paramType = "query", example = "00"), |
| | | @ApiImplicitParam(name = "dircode", value = "ç®å½ç¼ç ", dataType = "String", paramType = "query", example = "00"), |
| | | @ApiImplicitParam(name = "verid", value = "çæ¬ID", dataType = "Integer", paramType = "query", example = "0"), |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "depcode", description = "åä½ç¼ç ", in = ParameterIn.QUERY, example = "00"), |
| | | @Parameter(name = "dircode", description = "ç®å½ç¼ç ", in = ParameterIn.QUERY, example = "00"), |
| | | @Parameter(name = "verid", description = "çæ¬ID", in = ParameterIn.QUERY, example = "0"), |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<MetaEntity>> selectByPageAndCount(String depcode, String dircode, Integer verid, String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®GUIDæ¥è¯¢GDB") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "GUID", dataType = "String", paramType = "query", example = "d58e66d9606a4b85e7c8ab43b3db0b55") |
| | | @Operation(summary = "æ ¹æ®GUIDæ¥è¯¢GDB") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "GUID", in = ParameterIn.QUERY, example = "d58e66d9606a4b85e7c8ab43b3db0b55") |
| | | }) |
| | | @GetMapping(value = "/selectGdbByGuid") |
| | | public ResponseMsg<Object> selectGdbByGuid(String guid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®ç¶IDå页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "metaid", value = "ç¶ID", dataType = "String", paramType = "query", example = "0"), |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®ç¶IDå页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "metaid", description = "ç¶ID", in = ParameterIn.QUERY, example = "0"), |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectPageAndCountByPid") |
| | | public ResponseMsg<List<MetaEntity>> selectPageAndCountByPid(Integer metaid, String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®ç®å½IDæ¥è¯¢çæ¬å表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dirid", value = "ç®å½ID", dataType = "Integer", paramType = "query") |
| | | @Operation(summary = "æ ¹æ®ç®å½IDæ¥è¯¢çæ¬å表") |
| | | @Parameters({ |
| | | @Parameter(name = "dirid", description = "ç®å½ID", in = ParameterIn.QUERY) |
| | | }) |
| | | @GetMapping(value = "/selectVerByDirid") |
| | | public ResponseMsg<List<VerEntity>> selectVerByDirid(Integer dirid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<MetaEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è¡¨ä¸æ°æ®") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "å
æ°æ®ID", dataType = "Integer", paramType = "query", example = "115"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10") |
| | | @Operation(summary = "æ¥è¯¢è¡¨ä¸æ°æ®") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "å
æ°æ®ID", in = ParameterIn.QUERY, example = "115"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10") |
| | | }) |
| | | @GetMapping(value = "/selectDbData") |
| | | public ResponseMsg<Object> selectDbData(Integer id, Integer pageIndex, Integer pageSize) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å段信æ¯") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ns", value = "å称空é´", dataType = "String", paramType = "query", example = "bd"), |
| | | @ApiImplicitParam(name = "tab", value = "表å", dataType = "String", paramType = "query", example = "dlg25wAanp") |
| | | @Operation(summary = "æ¥è¯¢å段信æ¯") |
| | | @Parameters({ |
| | | @Parameter(name = "ns", description = "å称空é´", in = ParameterIn.QUERY, example = "bd"), |
| | | @Parameter(name = "tab", description = "表å", in = ParameterIn.QUERY, example = "dlg25wAanp") |
| | | }) |
| | | @GetMapping(value = "/selectTabFields") |
| | | public ResponseMsg<List<DictEntity>> selectTabFields(String ns, String tab) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢Dwg转æ¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "å
æ°æ®ID", dataType = "int", paramType = "query", example = "7715"), |
| | | @ApiImplicitParam(name = "isAttach", value = "æ¯å¦ä¸ºéä»¶", dataType = "Boolean", paramType = "query", example = "false") |
| | | @Operation(summary = "æ¥è¯¢Dwg转æ¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "å
æ°æ®ID", in = ParameterIn.QUERY, example = "7715"), |
| | | @Parameter(name = "isAttach", description = "æ¯å¦ä¸ºéä»¶", in = ParameterIn.QUERY, example = "false") |
| | | }) |
| | | @GetMapping(value = "/selectConvertToDwg") |
| | | public ResponseMsg<Object> selectConvertToDwg(int id, Boolean isAttach) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "MetaEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insert(@RequestBody MetaEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "MetaEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> inserts(@RequestBody List<MetaEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", allowMultiple = true, example = "1") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, schema = @Schema(type = "array"), example = "1") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "MetaEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "MetaEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢ä¸è½½æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢ä¸è½½æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectPageCountForDownload") |
| | | public ResponseMsg<List<DownloadEntity>> selectPageCountForDownload(String name, Integer pageSize, Integer pageIndex, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å
æ°æ®ä¸æº¢åºçåä½ID") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "reqEntity", value = "请æ±ä¸è½½å®ä½", dataType = "DownloadReqEntity", paramType = "body") |
| | | @Operation(summary = "æ¥è¯¢å
æ°æ®ä¸æº¢åºçåä½ID") |
| | | @Parameters({ |
| | | @Parameter(name = "reqEntity", description = "请æ±ä¸è½½å®ä½") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/selectMetaOverflowDep") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®åä½ç¼ç æ°ç»æ¥è¯¢åä½") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "codes", value = "åä½ç¼ç æ°ç»", dataType = "String", paramType = "query", allowMultiple = true, example = "00,0001") |
| | | @Operation(summary = "æ ¹æ®åä½ç¼ç æ°ç»æ¥è¯¢åä½") |
| | | @Parameters({ |
| | | @Parameter(name = "codes", description = "åä½ç¼ç æ°ç»", in = ParameterIn.QUERY, schema = @Schema(type = "array"), example = "00,0001") |
| | | }) |
| | | @GetMapping(value = "/selectDepsByCodes") |
| | | public ResponseMsg<Object> selectDepsByCodes(String[] codes) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "请æ±å
æ°æ®ä¸è½½") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dr", value = "请æ±ä¸è½½å®ä½ç±»", dataType = "DownloadReqEntity", paramType = "body") |
| | | @Operation(summary = "请æ±å
æ°æ®ä¸è½½") |
| | | @Parameters({ |
| | | @Parameter(name = "dr", description = "请æ±ä¸è½½å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/downloadReq") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ä¸è½½æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "æä»¶GUID", dataType = "String", paramType = "query"), |
| | | @ApiImplicitParam(name = "pwd", value = "å¯ç ", dataType = "String", paramType = "query") |
| | | @Operation(summary = "æ¥è¯¢ä¸è½½æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "æä»¶GUID", in = ParameterIn.QUERY), |
| | | @Parameter(name = "pwd", description = "å¯ç ", in = ParameterIn.QUERY) |
| | | }) |
| | | @GetMapping(value = "/selectDownloadFile") |
| | | public ResponseMsg<Boolean> selectDownloadFile(String guid, String pwd) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸è½½æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "æä»¶GUID", dataType = "String", paramType = "query"), |
| | | @ApiImplicitParam(name = "pwd", value = "å¯ç ", dataType = "String", paramType = "query") |
| | | @Operation(summary = "ä¸è½½æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "æä»¶GUID", in = ParameterIn.QUERY), |
| | | @Parameter(name = "pwd", description = "å¯ç ", in = ParameterIn.QUERY) |
| | | }) |
| | | @ResponseBody |
| | | @GetMapping(value = "/downloadFile") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥çæä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "éä»¶Guid", dataType = "String", paramType = "body") |
| | | @Operation(summary = "æ¥çæä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "éä»¶Guid") |
| | | }) |
| | | @GetMapping(value = "/downloadForView") |
| | | public void downloadForView(String guid, HttpServletResponse res) { |
| | |
| | | import com.terra.system.service.data.DirService; |
| | | import com.terra.system.service.sys.DepService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.ArrayList; |
| | |
| | | * 项ç®ç®¡ç |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "æ°æ®ç®¡ç\\项ç®ç®¡ç") |
| | | @Tag(name = "æ°æ®ç®¡ç\\项ç®ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/project") |
| | | public class ProjectController extends BaseController { |
| | |
| | | BaseQueryService baseQueryService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææå使°æ®") |
| | | @Operation(summary = "æ¥è¯¢ææå使°æ®") |
| | | @GetMapping(value = "/selectDepAll") |
| | | public ResponseMsg<List<DepEntity>> selectDepAll() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢é¡¹ç®") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "西") |
| | | @Operation(summary = "æ¥è¯¢é¡¹ç®") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "西") |
| | | }) |
| | | @GetMapping(value = "/selectProject") |
| | | public ResponseMsg<List<DirEntity>> selectProject(String name) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dirid", value = "ç®å½ID", dataType = "String", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "dirid", description = "ç®å½ID", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<Object> selectByPageAndCount(String dirid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å段信æ¯") |
| | | @Operation(summary = "æ¥è¯¢å段信æ¯") |
| | | @GetMapping(value = "/selectFields") |
| | | public ResponseMsg<List<DictEntity>> selectFields() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ä½ç½®") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "x", value = "X", dataType = "Double", paramType = "query", example = "114.178955"), |
| | | @ApiImplicitParam(name = "y", value = "Y", dataType = "Double", paramType = "query", example = "38.991743") |
| | | @Operation(summary = "æ¥è¯¢ä½ç½®") |
| | | @Parameters({ |
| | | @Parameter(name = "x", description = "X", in = ParameterIn.QUERY, example = "114.178955"), |
| | | @Parameter(name = "y", description = "Y", in = ParameterIn.QUERY, example = "38.991743") |
| | | }) |
| | | @GetMapping(value = "/selectLocation") |
| | | public ResponseMsg<Object> selectLocation(double x, double y) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "gid", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "gid", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int gid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "DictEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insert(@RequestBody BsprojectEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "DictEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | import com.terra.system.service.data.RasterService; |
| | | import com.terra.system.service.sys.LayerService; |
| | | 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 io.swagger.v3.oas.annotations.enums.ParameterIn; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | |
| | | * æ°æ®åå¸ |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "æ°æ®ç®¡ç\\åå¸ç®¡ç") |
| | | @Tag(name = "æ°æ®ç®¡ç\\åå¸ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/publish") |
| | | public class PublishController extends BaseController { |
| | |
| | | @Resource |
| | | PathHelper pathHelper; |
| | | |
| | | @ApiOperation(value = "æµè¯æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "seconds", value = "ç§", dataType = "Integer", paramType = "query", example = "30") |
| | | @Operation(summary = "æµè¯æ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "seconds", description = "ç§", in = ParameterIn.QUERY, example = "30") |
| | | }) |
| | | @GetMapping(value = "/selectForTest") |
| | | public ResponseMsg<Object> selectForTest(Integer seconds) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å
æ°æ®") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "depcode", value = "åä½ç¼ç ", dataType = "String", paramType = "query", example = "00"), |
| | | @ApiImplicitParam(name = "dircode", value = "ç®å½ç¼ç ", dataType = "String", paramType = "query", example = "01"), |
| | | @ApiImplicitParam(name = "verid", value = "çæ¬ID", dataType = "Integer", paramType = "query", example = "0"), |
| | | @ApiImplicitParam(name = "type", value = "ç±»å«", dataType = "String", paramType = "query", example = "DOM"), |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å
æ°æ®") |
| | | @Parameters({ |
| | | @Parameter(name = "depcode", description = "åä½ç¼ç ", in = ParameterIn.QUERY, example = "00"), |
| | | @Parameter(name = "dircode", description = "ç®å½ç¼ç ", in = ParameterIn.QUERY, example = "01"), |
| | | @Parameter(name = "verid", description = "çæ¬ID", in = ParameterIn.QUERY, example = "0"), |
| | | @Parameter(name = "type", description = "ç±»å«", in = ParameterIn.QUERY, example = "DOM"), |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectMetasByPage") |
| | | public ResponseMsg<Object> selectMetasByPage(String depcode, String dircode, Integer verid, String type, String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "dircode", value = "ç®å½", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "type", value = "ç±»å«", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "dircode", description = "ç®å½", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "type", description = "ç±»å«", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<PublishEntity>> selectByPageAndCount(String name, String dircode, String type, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<PublishEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢Lasæä»¶åæ ç³»ID") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "å
æ°æ®IDéå", dataType = "Integer[]", paramType = "query", example = "10483,10481,10456,10285") |
| | | @Operation(summary = "æ¥è¯¢Lasæä»¶åæ ç³»ID") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "å
æ°æ®IDéå", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "10483,10481,10456,10285") |
| | | }) |
| | | @GetMapping(value = "/selectLasCs") |
| | | public ResponseMsg<Object> selectLasCs(Integer[] ids, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æ
æ ¼æ°æ®çåæ ç³»ID") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "å
æ°æ®IDéå", dataType = "Integer[]", paramType = "query", example = "10531,10527,10526") |
| | | @Operation(summary = "æ¥è¯¢æ
æ ¼æ°æ®çåæ ç³»ID") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "å
æ°æ®IDéå", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "10531,10527,10526") |
| | | }) |
| | | @GetMapping(value = "/selectRasterCs") |
| | | public ResponseMsg<Object> selectRasterCs(Integer[] ids, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢åæ 转æ¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "x", value = "Xåæ ", dataType = "double", paramType = "query", example = "400925.079"), |
| | | @ApiImplicitParam(name = "y", value = "Yåæ ", dataType = "double", paramType = "query", example = "2541768.173"), |
| | | @ApiImplicitParam(name = "epsg", value = "EPSGç¼ç ", dataType = "int", paramType = "query", example = "4548") |
| | | @Operation(summary = "æ¥è¯¢åæ 转æ¢") |
| | | @Parameters({ |
| | | @Parameter(name = "x", description = "Xåæ ", in = ParameterIn.QUERY, example = "400925.079"), |
| | | @Parameter(name = "y", description = "Yåæ ", in = ParameterIn.QUERY, example = "2541768.173"), |
| | | @Parameter(name = "epsg", description = "EPSGç¼ç ", in = ParameterIn.QUERY, example = "4548") |
| | | }) |
| | | @GetMapping(value = "/selectCsTransform") |
| | | public Object selectCsTransform(double x, double y, int epsg) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å叿°æ®") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "PubEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥å叿°æ®") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insertForPub", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Object> insertForPub(@RequestBody PubEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", allowMultiple = true, example = "1") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, schema = @Schema(type = "array"), example = "1") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "PublishEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | import com.terra.system.service.data.StyleService; |
| | | import com.terra.system.service.sys.DownlogService; |
| | | 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.media.Schema; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | * @author sws |
| | | * @date 2022-09.26 |
| | | */ |
| | | @Api(tags = "æ°æ®ç®¡ç\\æ ·å¼ç®¡ç") |
| | | @Tag(name = "æ°æ®ç®¡ç\\æ ·å¼ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/style") |
| | | public class StyleController extends BaseController { |
| | |
| | | private final static String TAB_NAME = "lf.sys_style"; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", required = false, example = "a") |
| | | @Operation(summary = "æ¥è¯¢è®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, required = false, example = "a") |
| | | }) |
| | | @GetMapping({"/selectCount"}) |
| | | public ResponseMsg<Integer> selectCount(String name) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", required = false, example = "a"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, required = false, example = "a"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<StyleEntity>> selectByPage(String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "a"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "a"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<StyleEntity>> selectByPageAndCount(String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "StyleEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertStyle", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertStyle(@RequestBody StyleEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "StyleEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertStyles", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertStyles(@RequestBody List<StyleEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteStyle") |
| | | public ResponseMsg<Integer> deleteStyle(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteStyles") |
| | | public ResponseMsg<Integer> deleteStyles(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "StyleEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateStyle", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectStyle") |
| | | public ResponseMsg<StyleEntity> selectStyle(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectStyleAll") |
| | | public ResponseMsg<List<StyleEntity>> selectStyleAll() { |
| | | |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸ä¼ æä»¶") |
| | | @Operation(summary = "ä¸ä¼ æä»¶") |
| | | @ResponseBody |
| | | @PostMapping(value = "/upload") |
| | | public ResponseMsg<String> upload(@RequestParam("file") MultipartFile file, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸è½½æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "éä»¶Guid", dataType = "String", paramType = "body") |
| | | @Operation(summary = "ä¸è½½æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "éä»¶Guid") |
| | | }) |
| | | @GetMapping(value = "/download") |
| | | public void download(String guid, HttpServletResponse res) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸è½½æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "æä»¶GUID", dataType = "String", paramType = "query") |
| | | @Operation(summary = "ä¸è½½æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "æä»¶GUID", in = ParameterIn.QUERY) |
| | | }) |
| | | @RequestMapping(value = "/downloadFile", method = RequestMethod.GET) |
| | | public void downloadFile(String guid, HttpServletRequest req, HttpServletResponse res) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "请æ±ä¸è½½") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guids", value = "éä»¶Guidæ°ç»", dataType = "String", paramType = "body", allowMultiple = true, example = "e5b6ae0889b88111f13a4b6e048348db,fa4f299e901a0c46e634f8fcc8185c0c") |
| | | @Operation(summary = "请æ±ä¸è½½") |
| | | @Parameters({ |
| | | @Parameter(name = "guids", description = "éä»¶Guidæ°ç»", schema = @Schema(type = "array"), example = "e5b6ae0889b88111f13a4b6e048348db,fa4f299e901a0c46e634f8fcc8185c0c") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/downloadReqForGuids") |
| | |
| | | import com.terra.system.service.data.PublishService; |
| | | import com.terra.system.service.data.TaskService; |
| | | 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 io.swagger.v3.oas.annotations.enums.ParameterIn; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletRequest; |
| | |
| | | * ä»»å¡ |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "æ°æ®ç®¡ç\\ä»»å¡ç®¡ç") |
| | | @Tag(name = "æ°æ®ç®¡ç\\ä»»å¡ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/task") |
| | | public class TaskController extends BaseController { |
| | |
| | | PublishService publishService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "ä»»å¡åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "status", value = "ä»»å¡ç¶æ", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "type", value = "ä»»å¡ç±»å«", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "ä»»å¡åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "status", description = "ä»»å¡ç¶æ", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "type", description = "ä»»å¡ç±»å«", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<TaskEntity>> selectByPageAndCount(String name, Integer status, String type, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<TaskEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "TaskEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insert(@RequestBody TaskEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "TaskEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> inserts(@RequestBody List<TaskEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä»»å¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä»»å¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteTask") |
| | | public ResponseMsg<Object> deleteTask(int id, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "TaskEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "TaskEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8") |
| | |
| | | import com.terra.system.entity.sys.UserEntity; |
| | | import com.terra.system.service.data.VerService; |
| | | 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.media.Schema; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * @author SWS |
| | | * @date 2022-09.29 |
| | | */ |
| | | @Api(tags = "æ°æ®ç®¡ç\\çæ¬ç®¡ç") |
| | | @Tag(name = "æ°æ®ç®¡ç\\çæ¬ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/ver") |
| | | public class VerController extends BaseController { |
| | |
| | | TokenService tokenService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dirid", value = "ç®å½ID", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "dirid", description = "ç®å½ID", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<VerEntity>> selectByPageAndCount(Integer dirid, String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "VersionEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertVersion", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertVersion(@RequestBody VerEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "List<VersionEntity>", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå", schema = @Schema(type = "array"), example = "") |
| | | }) |
| | | @PostMapping(value = "/insertVersions", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertVersions(@RequestParam List<VerEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteVersion") |
| | | public ResponseMsg<Integer> deleteVersion(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "List<Integer>", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deleteVersions") |
| | | public ResponseMsg<Integer> deleteVersions(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "VersionEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateVersion", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectVersion") |
| | | public ResponseMsg<VerEntity> selectVersion(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectVersionAll") |
| | | public ResponseMsg<List<VerEntity>> selectVersionAll() { |
| | | try { |
| | |
| | | import com.terra.system.config.PropertiesConfig; |
| | | import com.terra.system.helper.StringHelper; |
| | | import com.terra.system.helper.WebHelper; |
| | | 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 io.swagger.v3.oas.annotations.enums.ParameterIn; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.apache.commons.logging.Log; |
| | | import org.apache.commons.logging.LogFactory; |
| | | import javax.annotation.Resource; |
| | |
| | | * WMTSæå¡ |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "æ°æ®ç®¡ç\\WMTSæå¡") |
| | | @Tag(name = "æ°æ®ç®¡ç\\WMTSæå¡") |
| | | @RestController |
| | | @RequestMapping("/wmts") |
| | | public class WmtsController { |
| | |
| | | private final static Log log = LogFactory.getLog(WmtsController.class); |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "è·åWMTSå
æ°æ®") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "token", value = "令ç", required = true, dataType = "String", defaultValue = "token", paramType = "path") |
| | | @Operation(summary = "è·åWMTSå
æ°æ®") |
| | | @Parameters({ |
| | | @Parameter(name = "token", description = "令ç", required = true, example = "token", in = ParameterIn.PATH) |
| | | }) |
| | | @GetMapping("select/{token}/WMTSCapabilities.xml") |
| | | public void selectWmtsCapabilities(@PathVariable(name = "token") String token, HttpServletRequest req, HttpServletResponse res) { |
| | |
| | | } |
| | | } |
| | | |
| | | @ApiOperation(value = "è·åWMTSç¦ç") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "token", value = "令ç", required = true, dataType = "String", defaultValue = "token", paramType = "path"), |
| | | @ApiImplicitParam(name = "layer", value = "å¾å±ç±»å", required = true, dataType = "String", defaultValue = "img"), |
| | | @ApiImplicitParam(name = "tilematrix", value = "å±çº§", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "tilerow", value = "è¡å·", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "tilecol", value = "åå·", required = true, dataType = "Integer") |
| | | @Operation(summary = "è·åWMTSç¦ç") |
| | | @Parameters({ |
| | | @Parameter(name = "token", description = "令ç", required = true, example = "token", in = ParameterIn.PATH), |
| | | @Parameter(name = "layer", description = "å¾å±ç±»å", required = true, example = "img"), |
| | | @Parameter(name = "tilematrix", description = "å±çº§", required = true), |
| | | @Parameter(name = "tilerow", description = "è¡å·", required = true), |
| | | @Parameter(name = "tilecol", description = "åå·", required = true) |
| | | }) |
| | | @GetMapping("select/{token}/tile") |
| | | public void selectWmtsTile(@PathVariable(name = "token") String token, HttpServletRequest req, HttpServletResponse res) { |
| | |
| | | import com.terra.system.helper.PathHelper; |
| | | import com.terra.system.helper.StringHelper; |
| | | import com.terra.system.service.data.FmeService; |
| | | 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 org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | protected FmeService fmeService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ä»»å¡ç¶æ") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ä»»å¡ID", dataType = "String", paramType = "query", example = "29db09ee-2aae-4c62-bec0-0b5c5d8084e4") |
| | | @Operation(summary = "æ¥è¯¢ä»»å¡ç¶æ") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ä»»å¡ID", in = ParameterIn.QUERY, example = "29db09ee-2aae-4c62-bec0-0b5c5d8084e4") |
| | | }) |
| | | @GetMapping(value = "/selectTaskStatus") |
| | | public Object selectTaskStatus(String id, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸è½½è´¨æ£ç»æ") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ä»»å¡ID", dataType = "String", paramType = "query", example = "29db09ee-2aae-4c62-bec0-0b5c5d8084e4") |
| | | @Operation(summary = "ä¸è½½è´¨æ£ç»æ") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ä»»å¡ID", in = ParameterIn.QUERY, example = "29db09ee-2aae-4c62-bec0-0b5c5d8084e4") |
| | | }) |
| | | @GetMapping(value = "/downloadResult") |
| | | public void downloadResult(String id, HttpServletRequest req, HttpServletResponse res) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æäº¤æ°æ®è´¨æ£") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "FME请æ±å®ä½ç±»", dataType = "FmeReqEntity", paramType = "body") |
| | | @Operation(summary = "æäº¤æ°æ®è´¨æ£") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "FME请æ±å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/uploadChecks") |
| | |
| | | } |
| | | |
| | | /*@SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢OSGBæ£æ¥") |
| | | @Operation(summary = "æ¥è¯¢OSGBæ£æ¥") |
| | | @GetMapping(value = "/selectCheckOsgb") |
| | | public ResponseMsg<Object> selectCheckOsgb(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è¡¨æ ¼æ°æ®æ£æ¥") |
| | | @Operation(summary = "æ¥è¯¢è¡¨æ ¼æ°æ®æ£æ¥") |
| | | @GetMapping(value = "/selectCheckXls") |
| | | public ResponseMsg<Object> selectCheckXls(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ç¹äºæ£æ¥") |
| | | @Operation(summary = "æ¥è¯¢ç¹äºæ£æ¥") |
| | | @GetMapping(value = "/selectCheckLaz") |
| | | public ResponseMsg<Object> selectCheckLaz(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢é«ç¨æ£æ¥") |
| | | @Operation(summary = "æ¥è¯¢é«ç¨æ£æ¥") |
| | | @GetMapping(value = "/selectCheckDem") |
| | | public ResponseMsg<Object> selectCheckDem(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å±æ§æ£æ¥") |
| | | @Operation(summary = "æ¥è¯¢å±æ§æ£æ¥") |
| | | @GetMapping(value = "/selectCheckAttrs") |
| | | public ResponseMsg<Object> selectCheckAttrs(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æææ£æ¥") |
| | | @Operation(summary = "æ¥è¯¢æææ£æ¥") |
| | | @GetMapping(value = "/selectCheckTopology") |
| | | public ResponseMsg<Object> selectCheckTopology(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å¾é¢æ´é¥°æ£æ¥") |
| | | @Operation(summary = "æ¥è¯¢å¾é¢æ´é¥°æ£æ¥") |
| | | @GetMapping(value = "/selectCheckDecorate") |
| | | public ResponseMsg<Object> selectCheckDecorate(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢åç¹æ£æ¥") |
| | | @Operation(summary = "æ¥è¯¢åç¹æ£æ¥") |
| | | @GetMapping(value = "/selectCheckOrigin") |
| | | public ResponseMsg<Object> selectCheckOrigin(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æ
æ ¼æ£æ¥") |
| | | @Operation(summary = "æ¥è¯¢æ
æ ¼æ£æ¥") |
| | | @GetMapping(value = "/selectCheckDom") |
| | | public ResponseMsg<Object> selectCheckDom(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æ°å¦åºç¡æ£æ¥") |
| | | @Operation(summary = "æ¥è¯¢æ°å¦åºç¡æ£æ¥") |
| | | @GetMapping(value = "/selectCheckMath") |
| | | public ResponseMsg<Object> selectCheckMath(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å
æ°æ®æ£æ¥") |
| | | @Operation(summary = "æ¥è¯¢å
æ°æ®æ£æ¥") |
| | | @GetMapping(value = "/selectCheckMeta") |
| | | public ResponseMsg<Object> selectCheckMeta(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æ»è´¨æ£") |
| | | @Operation(summary = "æ¥è¯¢æ»è´¨æ£") |
| | | @GetMapping(value = "/selectCheckMain") |
| | | public ResponseMsg<Object> selectCheckMain(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "é»è¾ä¸è´æ§æ£æ¥") |
| | | @Operation(summary = "é»è¾ä¸è´æ§æ£æ¥") |
| | | @GetMapping(value = "/checkLogical") |
| | | public ResponseMsg<Object> checkLogical(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å项ææå®æ´æ§æ£æ¥") |
| | | @Operation(summary = "å项ææå®æ´æ§æ£æ¥") |
| | | @GetMapping(value = "/checkSingleIntegrity") |
| | | public ResponseMsg<Object> checkSingleIntegrity(HttpServletRequest req) { |
| | | try { |
| | |
| | | }*/ |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå¡æ³¨å") |
| | | @Operation(summary = "æå¡æ³¨å") |
| | | @GetMapping(value = "/selectServerRegister") |
| | | public ResponseMsg<Object> selectServerRegister(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå¡ç³è¯·") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "æå¡ID", dataType = "String", paramType = "query", example = "195f77eb-19dd-4e34-afc1-fcff8f758f7b"), |
| | | @ApiImplicitParam(name = "pubid", value = "åå¸ID", dataType = "Integer", paramType = "query", example = "1"), |
| | | @Operation(summary = "æå¡ç³è¯·") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "æå¡ID", in = ParameterIn.QUERY, example = "195f77eb-19dd-4e34-afc1-fcff8f758f7b"), |
| | | @Parameter(name = "pubid", description = "åå¸ID", in = ParameterIn.QUERY, example = "1"), |
| | | }) |
| | | @GetMapping(value = "/selectServerApply") |
| | | public ResponseMsg<Object> selectServerApply(String id, Integer pubid, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤èµæº") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "æå¡ID", dataType = "String", paramType = "query", example = "6f4b6783-4b98-4d46-a0d9-43cdb5f339dc") |
| | | @Operation(summary = "å é¤èµæº") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "æå¡ID", in = ParameterIn.QUERY, example = "6f4b6783-4b98-4d46-a0d9-43cdb5f339dc") |
| | | }) |
| | | @GetMapping(value = "/selectDeleteRes") |
| | | public ResponseMsg<Object> selectDeleteRes(String id, HttpServletRequest req) { |
| | |
| | | import com.terra.system.service.data.*; |
| | | import com.terra.system.service.sys.DepService; |
| | | import com.terra.system.service.sys.TokenService; |
| | | 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 org.springframework.web.bind.annotation.GetMapping; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | |
| | | DictService dictService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®ç¶IDå页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "metaid", value = "ç¶ID", dataType = "String", paramType = "query", example = "0"), |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®ç¶IDå页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "metaid", description = "ç¶ID", in = ParameterIn.QUERY, example = "0"), |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectPageAndCountByPid") |
| | | public ResponseMsg<List<MetaEntity>> selectPageAndCountByPid(Integer metaid, String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææåä½") |
| | | @Operation(summary = "æ¥è¯¢ææåä½") |
| | | @GetMapping(value = "/selectDepAll") |
| | | public ResponseMsg<List<DepEntity>> selectDepAll() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææç®å½") |
| | | @Operation(summary = "æ¥è¯¢ææç®å½") |
| | | @GetMapping(value = "/selectDirAll") |
| | | public ResponseMsg<List<DirEntity>> selectDirAll() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®ç®å½IDæ¥è¯¢çæ¬å表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dirid", value = "ç®å½ID", dataType = "Integer", paramType = "query") |
| | | @Operation(summary = "æ ¹æ®ç®å½IDæ¥è¯¢çæ¬å表") |
| | | @Parameters({ |
| | | @Parameter(name = "dirid", description = "ç®å½ID", in = ParameterIn.QUERY) |
| | | }) |
| | | @GetMapping(value = "/selectVerByDirid") |
| | | public ResponseMsg<List<VerEntity>> selectVerByDirid(Integer dirid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢åæ ç³»") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "zoning", value = "带å·", dataType = "String", paramType = "query", example = "6度æå¸¦å·") |
| | | @Operation(summary = "æ¥è¯¢åæ ç³»") |
| | | @Parameters({ |
| | | @Parameter(name = "zoning", description = "带å·", in = ParameterIn.QUERY, example = "6度æå¸¦å·") |
| | | }) |
| | | @GetMapping(value = "/selectCoords") |
| | | public ResponseMsg<Object> selectCoords(String zoning) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢é¡¹ç®åç§°") |
| | | @Operation(summary = "æ¥è¯¢é¡¹ç®åç§°") |
| | | @GetMapping(value = "/selectProject") |
| | | public ResponseMsg<Object> selectProject() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææè¡¨") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "ç¹"), |
| | | @ApiImplicitParam(name = "hasGeom", value = "嫿Geomåæ®µ", dataType = "Boolean", paramType = "query", example = "false") |
| | | @Operation(summary = "æ¥è¯¢ææè¡¨") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "ç¹"), |
| | | @Parameter(name = "hasGeom", description = "嫿Geomåæ®µ", in = ParameterIn.QUERY, example = "false") |
| | | }) |
| | | @GetMapping(value = "/selectTabs") |
| | | public ResponseMsg<List<TabEntity>> selectTabs(String name, Boolean hasGeom) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å段信æ¯") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ns", value = "å称空é´", dataType = "String", paramType = "query", example = "bd"), |
| | | @ApiImplicitParam(name = "tab", value = "表å", dataType = "String", paramType = "query", example = "dlg25wAanp") |
| | | @Operation(summary = "æ¥è¯¢å段信æ¯") |
| | | @Parameters({ |
| | | @Parameter(name = "ns", description = "å称空é´", in = ParameterIn.QUERY, example = "bd"), |
| | | @Parameter(name = "tab", description = "表å", in = ParameterIn.QUERY, example = "dlg25wAanp") |
| | | }) |
| | | @GetMapping(value = "/selectFields") |
| | | public ResponseMsg<List<DictEntity>> selectFields(String ns, String tab) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è¡¨ä¸æ°æ®") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "å
æ°æ®ID", dataType = "Integer", paramType = "query", example = "115"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10") |
| | | @Operation(summary = "æ¥è¯¢è¡¨ä¸æ°æ®") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "å
æ°æ®ID", in = ParameterIn.QUERY, example = "115"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10") |
| | | }) |
| | | @GetMapping(value = "/selectDbData") |
| | | public ResponseMsg<Object> selectDbData(Integer id, Integer pageIndex, Integer pageSize) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢ä¸ä¼ æ°æ®å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢ä¸ä¼ æ°æ®å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageForUpload") |
| | | public ResponseMsg<Object> selectByPageForUpload(String name, Integer pageSize, Integer pageIndex, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®å
æ°æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®å
æ°æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectMetaById") |
| | | public ResponseMsg<MetaEntity> selectMetaById(int id) { |
| | |
| | | import com.terra.system.helper.StringHelper; |
| | | import com.terra.system.service.all.UploadAttachService; |
| | | import com.terra.system.service.data.UploadService; |
| | | 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.media.Schema; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | * æ°æ®å
¥åº |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "æ°æ®ç®¡ç\\æ°æ®ä¸ä¼ ") |
| | | @Tag(name = "æ°æ®ç®¡ç\\æ°æ®ä¸ä¼ ") |
| | | @RestController |
| | | @RequestMapping("/dataUpload") |
| | | public class UploadController extends QueryController { |
| | |
| | | UploadAttachService uploadAttachService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è·¯å¾") |
| | | @Operation(summary = "æ¥è¯¢è·¯å¾") |
| | | @GetMapping(value = "/selectPath") |
| | | public ResponseMsg<String> selectPath() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸ä¼ æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "path", value = "è·¯å¾", dataType = "String", paramType = "query") |
| | | @Operation(summary = "ä¸ä¼ æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "path", description = "è·¯å¾", in = ParameterIn.QUERY) |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/uploadFiles") |
| | |
| | | * formData.append("ids", 1209); formData.append("ids", 1180); formData.append("ids", 1387); |
| | | */ |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸ä¼ Exceléä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "path", value = "è·¯å¾", dataType = "String", paramType = "query"), |
| | | @ApiImplicitParam(name = "ids", value = "å
æ°æ®éå", dataType = "Integer", allowMultiple = true, paramType = "query") |
| | | @Operation(summary = "ä¸ä¼ Exceléä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "path", description = "è·¯å¾", in = ParameterIn.QUERY), |
| | | @Parameter(name = "ids", description = "å
æ°æ®éå", schema = @Schema(type = "array"), in = ParameterIn.QUERY) |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/uploadXlsAnnex") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "path", value = "è·¯å¾", dataType = "String", paramType = "query") |
| | | @Operation(summary = "æ¥è¯¢æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "path", description = "è·¯å¾", in = ParameterIn.QUERY) |
| | | }) |
| | | @GetMapping(value = "/selectFiles") |
| | | public ResponseMsg<List<MetaFileEntity>> selectFiles(String path) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å 餿件") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "MetaEntity", paramType = "body") |
| | | @Operation(summary = "å 餿件") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/deleteFiles") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æ å°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "path", value = "è·¯å¾", dataType = "String", paramType = "query", example = "20230722"), |
| | | @ApiImplicitParam(name = "dirid", value = "ç®å½ID", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "verid", value = "çæ¬ID", dataType = "Integer", paramType = "query", example = "0"), |
| | | @ApiImplicitParam(name = "epsgCode", value = "åæ ç¼ç ", dataType = "String", paramType = "query", example = "EPSG:4490") |
| | | @Operation(summary = "æ¥è¯¢æ å°") |
| | | @Parameters({ |
| | | @Parameter(name = "path", description = "è·¯å¾", in = ParameterIn.QUERY, example = "20230722"), |
| | | @Parameter(name = "dirid", description = "ç®å½ID", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "verid", description = "çæ¬ID", in = ParameterIn.QUERY, example = "0"), |
| | | @Parameter(name = "epsgCode", description = "åæ ç¼ç ", in = ParameterIn.QUERY, example = "EPSG:4490") |
| | | }) |
| | | @GetMapping(value = "/selectMappers") |
| | | public ResponseMsg<Object> selectMappers(String path, Integer dirid, Integer verid, String epsgCode, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å
æ°æ®æä»¶éå", dataType = "MetaFileEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å
æ°æ®æä»¶éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/insertFiles") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥KMLæä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å
æ°æ®æä»¶éå", dataType = "MetaFileEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥KMLæä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å
æ°æ®æä»¶éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/insertKml") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å
æ°æ®") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", allowMultiple = true, example = "1") |
| | | @Operation(summary = "å é¤å
æ°æ®") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, schema = @Schema(type = "array"), example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteMetas") |
| | | public ResponseMsg<Integer> deleteMetas(@RequestParam List<Integer> ids) { |
| | |
| | | import com.terra.system.service.sys.DownlogService; |
| | | import com.terra.system.service.sys.TokenService; |
| | | import com.terra.system.service.sys.UserService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | * æ°æ®ç³è¯· |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "综åå±ç¤º\\æ°æ®ç³è¯·") |
| | | @Tag(name = "综åå±ç¤º\\æ°æ®ç³è¯·") |
| | | @RestController |
| | | @RequestMapping("/apply") |
| | | public class ApplyController extends BaseController { |
| | |
| | | DownloadService downloadService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥æ°æ®ç³è¯·") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dr", value = "请æ±ä¸è½½å®ä½", dataType = "DownloadReqEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥æ°æ®ç³è¯·") |
| | | @Parameters({ |
| | | @Parameter(name = "dr", description = "请æ±ä¸è½½å®ä½") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/insertApply") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢ç³è¯·") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "uname", value = "ç¨æ·å", dataType = "String", paramType = "query", example = "å"), |
| | | @ApiImplicitParam(name = "status", value = "ç¶æ", dataType = "Integer", paramType = "query", example = "0"), |
| | | @ApiImplicitParam(name = "start", value = "å¼å§æ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-12-09 09:00:00"), |
| | | @ApiImplicitParam(name = "end", value = "ç»ææ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-12-31 23:00:00"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢ç³è¯·") |
| | | @Parameters({ |
| | | @Parameter(name = "uname", description = "ç¨æ·å", in = ParameterIn.QUERY, example = "å"), |
| | | @Parameter(name = "status", description = "ç¶æ", in = ParameterIn.QUERY, example = "0"), |
| | | @Parameter(name = "start", description = "å¼å§æ¶é´", in = ParameterIn.QUERY, example = "2022-12-09 09:00:00"), |
| | | @Parameter(name = "end", description = "ç»ææ¶é´", in = ParameterIn.QUERY, example = "2022-12-31 23:00:00"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<Object> selectByPage(String uname, Integer status, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å¾
å®¡æ ¸æ°") |
| | | @Operation(summary = "æ¥è¯¢å¾
å®¡æ ¸æ°") |
| | | @GetMapping(value = "/selectSubmits") |
| | | public ResponseMsg<Object> selectSubmits(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æµç¨") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "applyid", value = "æ°æ®ç³è¯·ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ¥è¯¢æµç¨") |
| | | @Parameters({ |
| | | @Parameter(name = "applyid", description = "æ°æ®ç³è¯·ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectFlows") |
| | | public ResponseMsg<Object> selectFlows(Integer applyid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "åºå¼ç³è¯·") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "applyid", value = "æ°æ®ç³è¯·ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "åºå¼ç³è¯·") |
| | | @Parameters({ |
| | | @Parameter(name = "applyid", description = "æ°æ®ç³è¯·ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/updateForDiscard") |
| | | public ResponseMsg<Object> updateForDiscard(Integer applyid, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "éæ°æäº¤") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "applyid", value = "æ°æ®ç³è¯·ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "éæ°æäº¤") |
| | | @Parameters({ |
| | | @Parameter(name = "applyid", description = "æ°æ®ç³è¯·ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/updateForResubmit") |
| | | public ResponseMsg<Object> updateForResubmit(Integer applyid, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æäº¤æµç¨") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "flowId", value = "ç³è¯·æµç¨ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æäº¤æµç¨") |
| | | @Parameters({ |
| | | @Parameter(name = "flowId", description = "ç³è¯·æµç¨ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/updateForSubmit") |
| | | public ResponseMsg<Object> updateForSubmit(Integer flowId, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æåæµç¨") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "flowId", value = "ç³è¯·æµç¨ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æåæµç¨") |
| | | @Parameters({ |
| | | @Parameter(name = "flowId", description = "ç³è¯·æµç¨ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/updateForReject") |
| | | public ResponseMsg<Object> updateForReject(Integer flowId, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸è½½æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "æä»¶GUID", dataType = "String", paramType = "query") |
| | | @Operation(summary = "ä¸è½½æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "æä»¶GUID", in = ParameterIn.QUERY) |
| | | }) |
| | | @ResponseBody |
| | | @GetMapping(value = "/downloadFile") |
| | |
| | | import com.terra.system.service.sys.AttachService; |
| | | import com.terra.system.service.sys.DownlogService; |
| | | 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.media.Schema; |
| | | 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("/comprehensive") |
| | | public class ComprehensiveController extends ModelController { |
| | |
| | | UploadAttachService uploadAttachService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢å叿¸
å") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢å叿¸
å") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectPubById") |
| | | public ResponseMsg<PublishEntity> selectPubById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ç®¡çº¿") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "西æ°ä¸è¾"), |
| | | @Operation(summary = "æ¥è¯¢ç®¡çº¿") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "西æ°ä¸è¾"), |
| | | }) |
| | | @GetMapping(value = "/selectPipelines") |
| | | public ResponseMsg<Object> selectPipelines(String name) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è·¯ç½") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "x1", value = "X1", dataType = "Double", paramType = "query", example = "116.78999"), |
| | | @ApiImplicitParam(name = "y1", value = "Y1", dataType = "Double", paramType = "query", example = "39.9468"), |
| | | @ApiImplicitParam(name = "x2", value = "X2", dataType = "Double", paramType = "query", example = "116.80458"), |
| | | @ApiImplicitParam(name = "y2", value = "Y2", dataType = "Double", paramType = "query", example = "39.94758") |
| | | @Operation(summary = "æ¥è¯¢è·¯ç½") |
| | | @Parameters({ |
| | | @Parameter(name = "x1", description = "X1", in = ParameterIn.QUERY, example = "116.78999"), |
| | | @Parameter(name = "y1", description = "Y1", in = ParameterIn.QUERY, example = "39.9468"), |
| | | @Parameter(name = "x2", description = "X2", in = ParameterIn.QUERY, example = "116.80458"), |
| | | @Parameter(name = "y2", description = "Y2", in = ParameterIn.QUERY, example = "39.94758") |
| | | }) |
| | | @GetMapping(value = "/selectRoute") |
| | | public ResponseMsg<Object> selectRoute(double x1, double y1, double x2, double y2) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸ä¼ ShapeFileæä»¶") |
| | | @Operation(summary = "ä¸ä¼ ShapeFileæä»¶") |
| | | @ResponseBody |
| | | @PostMapping(value = "/uploadShp", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Object> uploadShp(HttpServletRequest req, HttpServletResponse res) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸è½½ShapeFileæä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "æ ç»JSONå®ä½ç±»éå", dataType = "MarkJsonEntity", paramType = "body") |
| | | @Operation(summary = "ä¸è½½ShapeFileæä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "æ ç»JSONå®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/downloadShp", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @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) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸è½½æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "æä»¶GUID", dataType = "String", paramType = "query") |
| | | @Operation(summary = "ä¸è½½æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "æä»¶GUID", in = ParameterIn.QUERY) |
| | | }) |
| | | @RequestMapping(value = "/downloadFile", method = RequestMethod.GET) |
| | | public void downloadFile(String guid, HttpServletRequest req, HttpServletResponse res) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥çæä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "éä»¶Guid", dataType = "String", paramType = "body") |
| | | @Operation(summary = "æ¥çæä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "éä»¶Guid") |
| | | }) |
| | | @GetMapping(value = "/downloadForView") |
| | | public void downloadForView(String guid, HttpServletResponse res) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "请æ±ä¸è½½") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guids", value = "éä»¶Guidæ°ç»", dataType = "String", paramType = "body", allowMultiple = true, example = "e5b6ae0889b88111f13a4b6e048348db,fa4f299e901a0c46e634f8fcc8185c0c") |
| | | @Operation(summary = "请æ±ä¸è½½") |
| | | @Parameters({ |
| | | @Parameter(name = "guids", description = "éä»¶Guidæ°ç»", schema = @Schema(type = "array"), example = "e5b6ae0889b88111f13a4b6e048348db,fa4f299e901a0c46e634f8fcc8185c0c") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/downloadReqForGuids") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "请æ±ä¸è½½") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "tab", value = "表å", dataType = "String", paramType = "body", example = "bd.b_borehole"), |
| | | @ApiImplicitParam(name = "guids", value = "éä»¶Guidæ°ç»", dataType = "String", paramType = "body", allowMultiple = true, example = "08e5b4ad-93b8-46f6-adaa-46a6274af4ce,6f94f4f8-6e8d-44e7-8803-3d068d34983f") |
| | | @Operation(summary = "请æ±ä¸è½½") |
| | | @Parameters({ |
| | | @Parameter(name = "tab", description = "表å", example = "bd.b_borehole"), |
| | | @Parameter(name = "guids", description = "éä»¶Guidæ°ç»", schema = @Schema(type = "array"), example = "08e5b4ad-93b8-46f6-adaa-46a6274af4ce,6f94f4f8-6e8d-44e7-8803-3d068d34983f") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/downloadReqForTabGuids") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "tabName", value = "表å", dataType = "String", paramType = "query", example = "lf.sys_style"), |
| | | @ApiImplicitParam(name = "eventid", value = "主é®", dataType = "String", paramType = "query", example = "fa25979a5ef8b43ba82a0be35b3fb0d4") |
| | | @Operation(summary = "æ¥è¯¢æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "tabName", description = "表å", in = ParameterIn.QUERY, example = "lf.sys_style"), |
| | | @Parameter(name = "eventid", description = "主é®", in = ParameterIn.QUERY, example = "fa25979a5ef8b43ba82a0be35b3fb0d4") |
| | | }) |
| | | @GetMapping(value = "/selectFiles") |
| | | public ResponseMsg<List<AttachEntity>> selectFiles(String tabName, String eventid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å 餿件") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å 餿件") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deleteFiles(@RequestParam List<Integer> ids) { |
| | |
| | | import com.terra.system.service.data.VerService; |
| | | import com.terra.system.service.show.DataLibService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | * èµæé¦ |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "综åå±ç¤º\\èµæé¦") |
| | | @Tag(name = "综åå±ç¤º\\èµæé¦") |
| | | @RestController |
| | | @RequestMapping("/dataLib") |
| | | public class DataLibController extends BaseQueryController { |
| | |
| | | VerService verService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®ç®å½IDæ¥è¯¢çæ¬å表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dirid", value = "ç®å½ID", dataType = "Integer", paramType = "query") |
| | | @Operation(summary = "æ ¹æ®ç®å½IDæ¥è¯¢çæ¬å表") |
| | | @Parameters({ |
| | | @Parameter(name = "dirid", description = "ç®å½ID", in = ParameterIn.QUERY) |
| | | }) |
| | | @GetMapping(value = "/selectVerByDirid") |
| | | public ResponseMsg<List<VerEntity>> selectVerByDirid(Integer dirid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å
æ°æ®") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "depcode", value = "åä½ç¼ç ", dataType = "String", paramType = "query", example = "00"), |
| | | @ApiImplicitParam(name = "types", value = "èµæç±»å«", dataType = "String", paramType = "query", example = "åºç¡æµç»,åºç¡å°ç¾,åºç¡åå¯,åè§æ°æ®,ç®¡çæ°æ®,æµç»ï¼ESVï¼,åå¯ï¼EGEï¼,å°ç¾ï¼EGDï¼,æ´åºï¼EGDï¼"), |
| | | @ApiImplicitParam(name = "dirs", value = "项ç®ç¼ç ", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å
æ°æ®") |
| | | @Parameters({ |
| | | @Parameter(name = "depcode", description = "åä½ç¼ç ", in = ParameterIn.QUERY, example = "00"), |
| | | @Parameter(name = "types", description = "èµæç±»å«", in = ParameterIn.QUERY, example = "åºç¡æµç»,åºç¡å°ç¾,åºç¡åå¯,åè§æ°æ®,ç®¡çæ°æ®,æµç»ï¼ESVï¼,åå¯ï¼EGEï¼,å°ç¾ï¼EGDï¼,æ´åºï¼EGDï¼"), |
| | | @Parameter(name = "dirs", description = "项ç®ç¼ç ", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectMetasForPage") |
| | | public ResponseMsg<Object> selectMetasForPage(String depcode, String types, String dirs, String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è¡¨ä¸æ°æ®") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "å
æ°æ®ID", dataType = "Integer", paramType = "query", example = "115"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10") |
| | | @Operation(summary = "æ¥è¯¢è¡¨ä¸æ°æ®") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "å
æ°æ®ID", in = ParameterIn.QUERY, example = "115"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10") |
| | | }) |
| | | @GetMapping(value = "/selectDbData") |
| | | public ResponseMsg<Object> selectDbData(Integer id, Integer pageIndex, Integer pageSize) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "请æ±å
æ°æ®ä¸è½½") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dr", value = "请æ±ä¸è½½å®ä½", dataType = "DownloadReqEntity", paramType = "body") |
| | | @Operation(summary = "请æ±å
æ°æ®ä¸è½½") |
| | | @Parameters({ |
| | | @Parameter(name = "dr", description = "请æ±ä¸è½½å®ä½") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/downloadReq") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ä¸è½½æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "æä»¶GUID", dataType = "String", paramType = "query"), |
| | | @ApiImplicitParam(name = "pwd", value = "å¯ç ", dataType = "String", paramType = "query") |
| | | @Operation(summary = "æ¥è¯¢ä¸è½½æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "æä»¶GUID", in = ParameterIn.QUERY), |
| | | @Parameter(name = "pwd", description = "å¯ç ", in = ParameterIn.QUERY) |
| | | }) |
| | | @GetMapping(value = "/selectDownloadFile") |
| | | public ResponseMsg<Boolean> selectDownloadFile(String guid, String pwd) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸è½½æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "æä»¶GUID", dataType = "String", paramType = "query"), |
| | | @ApiImplicitParam(name = "pwd", value = "å¯ç ", dataType = "String", paramType = "query") |
| | | @Operation(summary = "ä¸è½½æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "æä»¶GUID", in = ParameterIn.QUERY), |
| | | @Parameter(name = "pwd", description = "å¯ç ", in = ParameterIn.QUERY) |
| | | }) |
| | | @ResponseBody |
| | | @GetMapping(value = "/downloadFile") |
| | |
| | | import com.terra.system.service.show.ExportService; |
| | | import com.terra.system.service.sys.DownlogService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | * å¨çº¿å¶å¾ |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "综åå±ç¤º\\å¨çº¿å¶å¾") |
| | | @Tag(name = "综åå±ç¤º\\å¨çº¿å¶å¾") |
| | | @RestController |
| | | @RequestMapping("/export") |
| | | public class ExportController extends BaseController { |
| | |
| | | DownloadService downloadService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢ä¸è½½æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢ä¸è½½æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<DownloadEntity>> selectPageCountForDownload(String name, Integer pageSize, Integer pageIndex, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ°å»ºåºå¾") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å¨çº¿å¶å¾å®ä½ç±»", dataType = "ExportEntity", paramType = "body") |
| | | @Operation(summary = "æ°å»ºåºå¾") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å¨çº¿å¶å¾å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/insertMap", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸è½½åºå¾") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "æä»¶GUID", dataType = "String", paramType = "query") |
| | | @Operation(summary = "ä¸è½½åºå¾") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "æä»¶GUID", in = ParameterIn.QUERY) |
| | | }) |
| | | @RequestMapping(value = "/downloadFile", method = RequestMethod.GET) |
| | | public void downloadFile(String guid, HttpServletRequest req, HttpServletResponse res) { |
| | |
| | | import com.terra.system.service.data.PublishService; |
| | | import com.terra.system.service.show.InquiryService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | |
| | | * æ¥è¯¢ |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "综åå±ç¤º\\æ¥è¯¢") |
| | | @Tag(name = "综åå±ç¤º\\æ¥è¯¢") |
| | | @RestController |
| | | @RequestMapping("/inquiry") |
| | | public class InquiryController extends BaseQueryController { |
| | |
| | | PublishService publishService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸ä¼ Shpæä»¶è¯»åç¬¬ä¸æ¡è®°å½çWKT") |
| | | @Operation(summary = "ä¸ä¼ Shpæä»¶è¯»åç¬¬ä¸æ¡è®°å½çWKT") |
| | | @ResponseBody |
| | | @PostMapping(value = "/uploadShp") |
| | | public ResponseMsg<ShpRecordEntity> uploadShp(HttpServletRequest req, HttpServletResponse res) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸è½½ç¦ç") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "dt", value = "ä¸è½½ç¦çå®ä½ç±»", dataType = "DownloadTileEntity", paramType = "body") |
| | | @Operation(summary = "ä¸è½½ç¦ç") |
| | | @Parameters({ |
| | | @Parameter(name = "dt", description = "ä¸è½½ç¦çå®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/downloadTiles") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸è½½æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "æä»¶GUID", dataType = "String", paramType = "query") |
| | | @Operation(summary = "ä¸è½½æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "æä»¶GUID", in = ParameterIn.QUERY) |
| | | }) |
| | | @ResponseBody |
| | | @GetMapping(value = "/downloadFile") |
| | |
| | | import com.terra.system.service.show.MarkService; |
| | | import com.terra.system.service.sys.DownlogService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * æ ç» |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "综åå±ç¤º\\æ ç»") |
| | | @Tag(name = "综åå±ç¤º\\æ ç»") |
| | | @RestController |
| | | @RequestMapping("/mark") |
| | | public class MarkController extends BaseController { |
| | |
| | | DownloadService downloadService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<MarkEntity>> selectByPageAndCount(Integer pageSize, Integer pageIndex, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<MarkEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "MarkEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insert(@RequestBody MarkEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "MarkEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> inserts(@RequestBody List<MarkEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "MarkEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "MarkEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8") |
| | |
| | | import com.terra.system.helper.StringHelper; |
| | | import com.terra.system.service.show.ModelService; |
| | | import com.terra.system.service.sys.TokenService; |
| | | 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 org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | TokenService tokenService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢æ¨¡åå¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "layerid", value = "å¾å±ID", dataType = "Integer", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢æ¨¡åå¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "layerid", description = "å¾å±ID", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectModelByPageAndCount") |
| | | public ResponseMsg<List<ModelEntity>> selectModelByPageAndCount(Integer layerid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢æ¨¡å") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢æ¨¡å") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectModelById") |
| | | public ResponseMsg<ModelEntity> selectModelById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®Guidæ¥è¯¢æ¨¡å") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "layerid", value = "å¾å±ID", dataType = "Integer", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "modelid", value = "模åID", dataType = "String", paramType = "query", example = "") |
| | | @Operation(summary = "æ ¹æ®Guidæ¥è¯¢æ¨¡å") |
| | | @Parameters({ |
| | | @Parameter(name = "layerid", description = "å¾å±ID", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "modelid", description = "模åID", in = ParameterIn.QUERY, example = "") |
| | | }) |
| | | @GetMapping(value = "/selectModelByGuid") |
| | | public ResponseMsg<ModelEntity> selectModelByGuid(Integer layerid, String modelid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸ä¸ªæ¨¡å") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "ModelEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸ä¸ªæ¨¡å") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insertModel", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertModel(@RequestBody ModelEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤ä¸ªæ¨¡å") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "ModelEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥å¤ä¸ªæ¨¡å") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @PostMapping(value = "/insertModels", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertModels(@RequestBody List<ModelEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸ä¸ªæ¨¡å") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸ä¸ªæ¨¡å") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteModel") |
| | | public ResponseMsg<Integer> deleteModel(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤ä¸ªæ¨¡å") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤ä¸ªæ¨¡å") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deleteModels") |
| | | public ResponseMsg<Integer> deleteModels(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸ä¸ªæ¨¡å") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "ModelEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸ä¸ªæ¨¡å") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateModel", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤ä¸ªæ¨¡å") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "ModelEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°å¤ä¸ªæ¨¡å") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateModels", produces = "application/json; charset=UTF-8") |
| | |
| | | import com.terra.system.entity.sys.UserEntity; |
| | | import com.terra.system.service.sys.ArgsService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * åæ°è®¾ç½® |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\ç³»ç»é
ç½®") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\ç³»ç»é
ç½®") |
| | | @RestController |
| | | @RequestMapping("/args") |
| | | public class ArgsController extends BaseController { |
| | |
| | | TokenService tokenService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", required = false, example = "æææ") |
| | | @Operation(summary = "æ¥è¯¢è®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, required = false, example = "æææ") |
| | | }) |
| | | @GetMapping({"/selectCount"}) |
| | | public ResponseMsg<Integer> selectCount(String name) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "æææ"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "æææ"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<ArgsEntity>> selectByPage(String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "æææ"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "æææ"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<ArgsEntity>> selectByPageAndCount(String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectAll") |
| | | public ResponseMsg<List<ArgsEntity>> selectAll() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<ArgsEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | /*@SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "ArgsEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", dataType = "ArgsEntity") |
| | | }) |
| | | @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insert(@RequestBody ArgsEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "ArgsEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå", dataType = "ArgsEntity") |
| | | }) |
| | | @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> inserts(@RequestBody List<ArgsEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | }*/ |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "ArgsEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | /*@SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "ArgsEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå", dataType = "ArgsEntity") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8") |
| | |
| | | import com.terra.system.service.all.PermsService; |
| | | import com.terra.system.service.sys.AuthService; |
| | | 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.media.Schema; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * @author SWS |
| | | * @date 2022-09.28 |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\æé管ç") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\æé管ç") |
| | | @RestController |
| | | @RequestMapping("/auth") |
| | | public class AuthController extends BaseController { |
| | |
| | | PermsService permsService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", required = false, example = "sys_auth") |
| | | @Operation(summary = "æ¥è¯¢è®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, required = false, example = "sys_auth") |
| | | }) |
| | | @GetMapping({"/selectCount"}) |
| | | public ResponseMsg<Integer> selectCount(String name) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "sys_auth"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "sys_auth"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<AuthEntity>> selectByPage(String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<AuthEntity>> selectByPageAndCount(String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®èåå页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "menuid", value = "èåID", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®èåå页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "menuid", description = "èåID", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageForMenu") |
| | | public ResponseMsg<List<AuthEntity>> selectByPageForMenu(Integer menuid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "AuthEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertAuth", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertAuth(@RequestBody AuthEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "List<AuthEntity>", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå", schema = @Schema(type = "array"), example = "") |
| | | }) |
| | | @PostMapping(value = "/insertAuths", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertAuths(@RequestBody List<AuthEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteAuth") |
| | | public ResponseMsg<Integer> deleteAuth(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "List<Integer>", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deleteAuths") |
| | | public ResponseMsg<Integer> deleteAuths(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "LoginEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", schema = @Schema(type = "array"), example = "") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateAuth", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectAuth") |
| | | public ResponseMsg<AuthEntity> selectAuth(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectAuthAll") |
| | | public ResponseMsg<List<AuthEntity>> selectAuthAll() { |
| | | try { |
| | |
| | | import com.terra.system.entity.sys.UserEntity; |
| | | import com.terra.system.service.sys.BlacklistService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * é»åå |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\é»åå") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\é»åå") |
| | | @RestController |
| | | @RequestMapping("/blacklist") |
| | | public class BlacklistController extends BaseController { |
| | |
| | | TokenService tokenService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ip", value = "IPå°å", dataType = "String", paramType = "query", required = false, example = "192."), |
| | | @ApiImplicitParam(name = "type", value = "ç±»å«", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ¥è¯¢è®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "ip", description = "IPå°å", in = ParameterIn.QUERY, required = false, example = "192."), |
| | | @Parameter(name = "type", description = "ç±»å«", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping({"/selectCount"}) |
| | | public ResponseMsg<Integer> selectCount(String ip, Integer type) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ip", value = "IPå°å", dataType = "String", paramType = "query", example = "192."), |
| | | @ApiImplicitParam(name = "type", value = "ç±»å«", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "ip", description = "IPå°å", in = ParameterIn.QUERY, example = "192."), |
| | | @Parameter(name = "type", description = "ç±»å«", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<BlacklistEntity>> selectByPage(String ip, Integer type, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ip", value = "IPå°å", dataType = "String", paramType = "query", required = false, example = "192."), |
| | | @ApiImplicitParam(name = "type", value = "ç±»å«", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "ip", description = "IPå°å", in = ParameterIn.QUERY, required = false, example = "192."), |
| | | @Parameter(name = "type", description = "ç±»å«", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<BlacklistEntity>> selectByPageAndCount(String ip, Integer type, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectAll") |
| | | public ResponseMsg<List<BlacklistEntity>> selectAll() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<BlacklistEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "BlacklistEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insert(@RequestBody BlacklistEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "BlacklistEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> inserts(@RequestBody List<BlacklistEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "BlacklistEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "BlacklistEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8") |
| | |
| | | import com.terra.system.entity.all.ResponseMsg; |
| | | import com.terra.system.entity.sys.ResEntity; |
| | | import com.terra.system.service.all.ScheduleService; |
| | | import io.swagger.annotations.Api; |
| | | 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.tags.Tag; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | |
| | | * @author WWW |
| | | * @date 2022-09-21 |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\æ§å¶å°") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\æ§å¶å°") |
| | | @RestController |
| | | @RequestMapping("/ctrl") |
| | | public class CtrlController extends BaseController { |
| | |
| | | private ScheduleService scheduleService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æå¡å¨ç¶æ") |
| | | @Operation(summary = "æ¥è¯¢æå¡å¨ç¶æ") |
| | | @GetMapping(value = "/selectServerStatus") |
| | | public ResponseMsg<JSONObject> selectServerStatus() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢Cpuä¿¡æ¯") |
| | | @Operation(summary = "æ¥è¯¢Cpuä¿¡æ¯") |
| | | @GetMapping(value = "/selectCpuInfo") |
| | | public ResponseMsg<JSONObject> selectCpuInfo() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å
åä¿¡æ¯") |
| | | @Operation(summary = "æ¥è¯¢å
åä¿¡æ¯") |
| | | @GetMapping(value = "/selectMemInfo") |
| | | public ResponseMsg<JSONObject> selectMemInfo() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢å¨çº¿ç¨æ·") |
| | | @Operation(summary = "æ¥è¯¢å¨çº¿ç¨æ·") |
| | | @GetMapping(value = "/selectOnlineUsers") |
| | | public ResponseMsg<List<JSONObject>> selectOnlineUsers() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æå¡èµæºç¶æ") |
| | | @Operation(summary = "æ¥è¯¢æå¡èµæºç¶æ") |
| | | @GetMapping(value = "/selectResStatus") |
| | | public ResponseMsg<List<ResEntity>> selectResStatus() { |
| | | try { |
| | |
| | | import com.terra.system.helper.StringHelper; |
| | | import com.terra.system.service.sys.DepService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * @author sws |
| | | * @date 2022-09-23 |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\åä½ç®¡ç") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\åä½ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/dep") |
| | | public class DepController extends BaseController { |
| | |
| | | TokenService tokenService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "DepEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertDep", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertDep(@RequestBody DepEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "DepEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertDes", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertDes(@RequestBody List<DepEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteDep") |
| | | public ResponseMsg<Integer> deleteDep(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteDeps") |
| | | public ResponseMsg<Integer> deleteDeps(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "DepEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateDep", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "DepEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateDeps", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectDep") |
| | | public ResponseMsg<DepEntity> selectDep(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æææ°æ®") |
| | | @Operation(summary = "æ¥è¯¢æææ°æ®") |
| | | @GetMapping(value = "/selectDepAll") |
| | | public ResponseMsg<List<DepEntity>> selectDepAll() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "é彿¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åä½åç§°", dataType = "String", paramType = "query", required = false, example = "ä¸å½xxxå·¥ç¨æéå
¬å¸") |
| | | @Operation(summary = "é彿¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åä½åç§°", in = ParameterIn.QUERY, required = false, example = "ä¸å½xxxå·¥ç¨æéå
¬å¸") |
| | | }) |
| | | @GetMapping(value = "/selectDepRecursive") |
| | | public ResponseMsg<List<DepEntity>> selectDepRecursive(String name) { |
| | |
| | | import com.terra.system.entity.sys.DownlogEntity; |
| | | import com.terra.system.service.sys.DownlogService; |
| | | 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.bind.annotation.*; |
| | | import java.sql.Timestamp; |
| | | import java.util.List; |
| | |
| | | * ä¸è½½æ¥å¿ |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\ä¸è½½æ¥å¿") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\ä¸è½½æ¥å¿") |
| | | @RestController |
| | | @RequestMapping("/downlog") |
| | | public class DownlogController extends BaseController { |
| | |
| | | TokenService tokenService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "uname", value = "ç¨æ·å", dataType = "String", paramType = "query", example = "å"), |
| | | @ApiImplicitParam(name = "type", value = "ç±»å", dataType = "Integer", paramType = "query", example = "3"), |
| | | @ApiImplicitParam(name = "start", value = "å¼å§æ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-12-09 09:00:00"), |
| | | @ApiImplicitParam(name = "end", value = "ç»ææ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-12-25 17:00:00"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "uname", description = "ç¨æ·å", in = ParameterIn.QUERY, example = "å"), |
| | | @Parameter(name = "type", description = "ç±»å", in = ParameterIn.QUERY, example = "3"), |
| | | @Parameter(name = "start", description = "å¼å§æ¶é´", in = ParameterIn.QUERY, example = "2022-12-09 09:00:00"), |
| | | @Parameter(name = "end", description = "ç»ææ¶é´", in = ParameterIn.QUERY, example = "2022-12-25 17:00:00"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<Object> selectByPageAndCount(String uname, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) { |
| | |
| | | import com.terra.system.service.all.PermsService; |
| | | import com.terra.system.service.sys.LayerService; |
| | | 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 io.swagger.v3.oas.annotations.enums.ParameterIn; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | | |
| | | @Api(tags = "è¿ç»´ç®¡ç\\å¾å±ç®¡ç") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\å¾å±ç®¡ç") |
| | | @RestController |
| | | @SuppressWarnings("ALL") |
| | | @RequestMapping("/layer") |
| | |
| | | PermsService permsService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<LayerEntity>> selectByPageAndCount(String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectAll") |
| | | public ResponseMsg<List<LayerEntity>> selectAll(Integer flag) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<LayerEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "LayerEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insert(@RequestBody LayerEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "LayerEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> inserts(@RequestBody List<LayerEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "LayerEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "LayerEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8") |
| | |
| | | import com.terra.system.entity.sys.UserEntity; |
| | | import com.terra.system.service.sys.LoginService; |
| | | 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.media.Schema; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.sql.Timestamp; |
| | |
| | | * @author SWS |
| | | * @date 2022-09.28 |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\ç»å½æ¥å¿") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\ç»å½æ¥å¿") |
| | | @RestController |
| | | @RequestMapping("/login") |
| | | public class LoginController extends BaseController { |
| | |
| | | TokenService tokenService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "uname", value = "ç¨æ·å", dataType = "String", paramType = "query", example = "管çå"), |
| | | @ApiImplicitParam(name = "type", value = "ç±»å", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "start", value = "å¼å§æ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"), |
| | | @ApiImplicitParam(name = "end", value = "ç»ææ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00") |
| | | @Operation(summary = "æ¥è¯¢è®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "uname", description = "ç¨æ·å", in = ParameterIn.QUERY, example = "管çå"), |
| | | @Parameter(name = "type", description = "ç±»å", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "start", description = "å¼å§æ¶é´", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"), |
| | | @Parameter(name = "end", description = "ç»ææ¶é´", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00") |
| | | }) |
| | | @GetMapping({"/selectCount"}) |
| | | public ResponseMsg<Integer> selectCount(String uname, Integer type, Timestamp start, Timestamp end) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "uname", value = "ç¨æ·å", dataType = "String", paramType = "query", example = "管çå"), |
| | | @ApiImplicitParam(name = "type", value = "ç±»å", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "start", value = "å¼å§æ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"), |
| | | @ApiImplicitParam(name = "end", value = "ç»ææ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "uname", description = "ç¨æ·å", in = ParameterIn.QUERY, example = "管çå"), |
| | | @Parameter(name = "type", description = "ç±»å", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "start", description = "å¼å§æ¶é´", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"), |
| | | @Parameter(name = "end", description = "ç»ææ¶é´", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<LoginEntity>> selectByPage(String uname, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "uname", value = "ç¨æ·å", dataType = "String", paramType = "query", example = "管çå"), |
| | | @ApiImplicitParam(name = "type", value = "ç±»å", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "start", value = "å¼å§æ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"), |
| | | @ApiImplicitParam(name = "end", value = "ç»ææ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "uname", description = "ç¨æ·å", in = ParameterIn.QUERY, example = "管çå"), |
| | | @Parameter(name = "type", description = "ç±»å", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "start", description = "å¼å§æ¶é´", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"), |
| | | @Parameter(name = "end", description = "ç»ææ¶é´", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<LoginEntity>> selectByPageAndCount(String uname, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "LoginEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertLogin", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertLogin(@RequestBody LoginEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "List<LoginEntity>", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå", schema = @Schema(type = "array"), example = "") |
| | | }) |
| | | @PostMapping(value = "/insertLogins", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertLogins(@RequestBody List<LoginEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteLogin") |
| | | public ResponseMsg<Integer> deleteLogin(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "List<Integer>", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deleteLogins") |
| | | public ResponseMsg<Integer> deleteLogins(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "LoginEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateLogin", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectLogin") |
| | | public ResponseMsg<LoginEntity> selectLogin(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectLoginAll") |
| | | public ResponseMsg<List<LoginEntity>> selectLoginAll() { |
| | | try { |
| | |
| | | import com.terra.system.service.all.PermsService; |
| | | import com.terra.system.service.sys.MenuAuthService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * èå-æé |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\èåæé") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\èåæé") |
| | | @RestController |
| | | @RequestMapping("/menuAuth") |
| | | public class MenuAuthController extends BaseController { |
| | |
| | | PermsService permsService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "menuid", value = "èåID", dataType = "Integer", paramType = "query", required = false, example = "") |
| | | @Operation(summary = "æ¥è¯¢è®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "menuid", description = "èåID", in = ParameterIn.QUERY, required = false, example = "") |
| | | }) |
| | | @GetMapping({"/selectCount"}) |
| | | public ResponseMsg<Integer> selectCount(Integer menuid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "menuid", value = "èåID", dataType = "Integer", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "menuid", description = "èåID", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<MenuAuthEntity>> selectByPage(Integer menuid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "menuid", value = "èåID", dataType = "Integer", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "menuid", description = "èåID", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<MenuAuthEntity>> selectByPageAndCount(Integer menuid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®è§è²ID+èåIDå页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleid", value = "è§è²ID", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "menuid", value = "èåID", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®è§è²ID+èåIDå页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "roleid", description = "è§è²ID", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "menuid", description = "èåID", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageForRole") |
| | | public ResponseMsg<List<MenuAuthEntity>> selectByPageForRole(Integer roleid, Integer menuid, Integer pageSize, Integer pageIndex) { |
| | |
| | | return fail("æ¯é¡µé¡µæ°æå页æ°å°äº1", null); |
| | | } |
| | | |
| | | int count = menuAuthService.selectCountForRole(roleid, menuid); |
| | | int count = menuAuthService.selectCountForRole(roleid, menuid); |
| | | if (count == 0) { |
| | | return success(0, null); |
| | | } |
| | | |
| | | List<MenuAuthEntity> rs = menuAuthService.selectByPageForRole(roleid, menuid, pageSize, pageSize * (pageIndex - 1)); |
| | | List<MenuAuthEntity> rs = menuAuthService.selectByPageForRole(roleid, menuid, pageSize, pageSize * (pageIndex - 1)); |
| | | |
| | | return success(count, rs); |
| | | } catch (Exception ex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectAll") |
| | | public ResponseMsg<List<MenuAuthEntity>> selectAll() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<MenuAuthEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "MenuAuthEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insert(@RequestBody MenuAuthEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "MenuAuthEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> inserts(@RequestBody List<MenuAuthEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "MenuAuthEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "MenuAuthEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8") |
| | |
| | | import com.terra.system.service.all.PermsService; |
| | | import com.terra.system.service.sys.MenuService; |
| | | 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.media.Schema; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * @author sws |
| | | * @date 2022-09-23 |
| | | */ |
| | | @Api(tags= "è¿ç»´ç®¡ç\\èå管ç") |
| | | @Tag(name= "è¿ç»´ç®¡ç\\èå管ç") |
| | | @RestController |
| | | @RequestMapping("/menu") |
| | | public class MenuController extends BaseController { |
| | |
| | | PermsService permsService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "MenusEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertMenu", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertMenu(@RequestBody MenuEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "MenusEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertMenus", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertMenus(@RequestBody List<MenuEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteMenu") |
| | | public ResponseMsg<Integer> deleteMenu(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "List<Integer>", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deleteMenus") |
| | | public ResponseMsg<Integer> deleteMenus(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "MenusEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateMenu", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "MenusEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateMenus", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectMenu") |
| | | public ResponseMsg<MenuEntity> selectMenu(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectMenuAll") |
| | | public ResponseMsg<List<MenuEntity>> selectMenuAll() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "é彿¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "èååç§°", dataType = "String", paramType = "query", required = false, example = "管éåºç¡å¤§æ°æ®å¹³å°") |
| | | @Operation(summary = "é彿¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "èååç§°", in = ParameterIn.QUERY, required = false, example = "管éåºç¡å¤§æ°æ®å¹³å°") |
| | | }) |
| | | @GetMapping(value = "/selectMenuRecursive") |
| | | public ResponseMsg<Object> selectMenuRecursive(String name) { |
| | |
| | | import com.terra.system.entity.sys.UserEntity; |
| | | import com.terra.system.service.sys.OperateService; |
| | | 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.media.Schema; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.sql.Timestamp; |
| | |
| | | * @author SWS |
| | | * @date 2022-09.28 |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\æä½æ¥å¿") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\æä½æ¥å¿") |
| | | @RestController |
| | | @RequestMapping("/operate") |
| | | public class OperateController extends BaseController { |
| | |
| | | TokenService tokenService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "uname", value = "ç¨æ·å", dataType = "String", paramType = "query", example = "管çå"), |
| | | @ApiImplicitParam(name = "type", value = "ç±»å", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "start", value = "å¼å§æ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"), |
| | | @ApiImplicitParam(name = "end", value = "ç»ææ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00") |
| | | @Operation(summary = "æ¥è¯¢è®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "uname", description = "ç¨æ·å", in = ParameterIn.QUERY, example = "管çå"), |
| | | @Parameter(name = "type", description = "ç±»å", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "start", description = "å¼å§æ¶é´", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"), |
| | | @Parameter(name = "end", description = "ç»ææ¶é´", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00") |
| | | }) |
| | | @GetMapping({"/selectCount"}) |
| | | public ResponseMsg<Integer> selectCount(String uname, Integer type, Timestamp start, Timestamp end) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "uname", value = "ç¨æ·å", dataType = "String", paramType = "query", example = "管çå"), |
| | | @ApiImplicitParam(name = "type", value = "ç±»å", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "start", value = "å¼å§æ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"), |
| | | @ApiImplicitParam(name = "end", value = "ç»ææ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "uname", description = "ç¨æ·å", in = ParameterIn.QUERY, example = "管çå"), |
| | | @Parameter(name = "type", description = "ç±»å", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "start", description = "å¼å§æ¶é´", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"), |
| | | @Parameter(name = "end", description = "ç»ææ¶é´", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<OperateEntity>> selectByPage(String uname, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "uname", value = "ç¨æ·å", dataType = "String", paramType = "query", example = "管çå"), |
| | | @ApiImplicitParam(name = "type", value = "ç±»å", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "start", value = "å¼å§æ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"), |
| | | @ApiImplicitParam(name = "end", value = "ç»ææ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-10 17:00:00"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "uname", description = "ç¨æ·å", in = ParameterIn.QUERY, example = "管çå"), |
| | | @Parameter(name = "type", description = "ç±»å", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "start", description = "å¼å§æ¶é´", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"), |
| | | @Parameter(name = "end", description = "ç»ææ¶é´", in = ParameterIn.QUERY, example = "2022-10-10 17:00:00"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<OperateEntity>> selectByPageAndCount(String uname, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "OperateEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertOperate", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertOperate(@RequestBody OperateEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "List<OperateEntity>", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå", schema = @Schema(type = "array"), example = "") |
| | | }) |
| | | @PostMapping(value = "/insertOperates", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertOperates(@RequestBody List<OperateEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteOperate") |
| | | public ResponseMsg<Integer> deleteOperate(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "List<Integer>", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deleteOperates") |
| | | public ResponseMsg<Integer> deleteOperates(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "OperateEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateOperate", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectOperate") |
| | | public ResponseMsg<OperateEntity> selectOperate(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectOperateAll") |
| | | public ResponseMsg<List<OperateEntity>> selectOperateAll() { |
| | | try { |
| | |
| | | import com.terra.system.service.all.UploadAttachService; |
| | | import com.terra.system.service.sys.ReportService; |
| | | 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 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("/report") |
| | | public class ReportController extends BaseController { |
| | |
| | | private final static String TAB_NAME = "lf.sys_report"; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<ReportEntity>> selectByPageAndCount(String name, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<ReportEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "ReportEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insert(@RequestBody ReportEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "ReportEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸ä¼ æä»¶") |
| | | @Operation(summary = "ä¸ä¼ æä»¶") |
| | | @ResponseBody |
| | | @PostMapping(value = "/upload") |
| | | public ResponseMsg<String> upload(@RequestParam("file") MultipartFile file, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸è½½æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "éä»¶Guid", dataType = "String", paramType = "body") |
| | | @Operation(summary = "ä¸è½½æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "éä»¶Guid") |
| | | }) |
| | | @GetMapping(value = "/download") |
| | | public void download(String guid, HttpServletResponse res) { |
| | |
| | | import com.terra.system.service.all.UploadAttachService; |
| | | import com.terra.system.service.sys.ResService; |
| | | 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 SWS |
| | | * @date 2022-09.28 |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\èµæºç®¡ç") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\èµæºç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/res") |
| | | public class ResController extends BaseController { |
| | |
| | | private final static String TAB_NAME = "lf.sys_res"; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "status", value = "ç¶æ", dataType = "Integer", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "category", value = "æå¡ç±»å«", dataType = "Integer", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "type", value = "æå¡ç±»å", dataType = "Integer", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "data", value = "æ°æ®ç±»å", dataType = "Integer", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "status", description = "ç¶æ", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "category", description = "æå¡ç±»å«", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "type", description = "æå¡ç±»å", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "data", description = "æ°æ®ç±»å", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<ResEntity>> selectByPageAndCount(String name, Integer status, Integer category, Integer type, Integer data, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®è§è²å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleid", value = "è§è²ID", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®è§è²å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "roleid", description = "è§è²ID", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageForRole") |
| | | public ResponseMsg<List<ResEntity>> selectByPageForRole(Integer roleid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectAll") |
| | | public ResponseMsg<List<ResEntity>> selectAll() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<ResEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "ResEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insert(@RequestBody ResEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "ResEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> inserts(@RequestBody List<ResEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "ResEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "ResEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸ä¼ æä»¶") |
| | | @Operation(summary = "ä¸ä¼ æä»¶") |
| | | @ResponseBody |
| | | @PostMapping(value = "/upload") |
| | | public ResponseMsg<String> upload(@RequestParam("file") MultipartFile file, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "ä¸è½½æä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "éä»¶Guid", dataType = "String", paramType = "body") |
| | | @Operation(summary = "ä¸è½½æä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "éä»¶Guid") |
| | | }) |
| | | @GetMapping(value = "/download") |
| | | public void download(String guid, HttpServletResponse res) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥çæä»¶") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "guid", value = "éä»¶Guid", dataType = "String", paramType = "body") |
| | | @Operation(summary = "æ¥çæä»¶") |
| | | @Parameters({ |
| | | @Parameter(name = "guid", description = "éä»¶Guid") |
| | | }) |
| | | @GetMapping(value = "/downloadForView") |
| | | public void downloadForView(String guid, HttpServletResponse res) { |
| | |
| | | import com.terra.system.entity.sys.UserEntity; |
| | | import com.terra.system.service.sys.ResLogService; |
| | | 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 io.swagger.v3.oas.annotations.enums.ParameterIn; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | import java.util.List; |
| | | |
| | | @SuppressWarnings("ALL") |
| | | @Api(tags = "è¿ç»´ç®¡ç\\èµæºæ¥å¿") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\èµæºæ¥å¿") |
| | | @RestController |
| | | @RequestMapping("/resLog") |
| | | public class ResLogController extends BaseController { |
| | |
| | | TokenService tokenService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "resid", value = "èµæºID", dataType = "Integer", paramType = "query", required = false, example = "") |
| | | @Operation(summary = "æ¥è¯¢è®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "resid", description = "èµæºID", in = ParameterIn.QUERY, required = false, example = "") |
| | | }) |
| | | @GetMapping({"/selectCount"}) |
| | | public ResponseMsg<Integer> selectCount(Integer resid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "resid", value = "èµæºID", dataType = "Integer", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "resid", description = "èµæºID", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<ResLogEntity>> selectByPage(Integer resid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "resid", value = "èµæºID", dataType = "Integer", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "resid", description = "èµæºID", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<ResLogEntity>> selectByPageAndCount(Integer resid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<ResLogEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | import com.terra.system.entity.sys.UserEntity; |
| | | import com.terra.system.service.sys.ResOpService; |
| | | 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.media.Schema; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.sql.Timestamp; |
| | |
| | | * @author SWS |
| | | * @date 2022-09.28 |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\èµæºæä½") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\èµæºæä½") |
| | | @RestController |
| | | @RequestMapping("/resOp") |
| | | public class ResOpController extends BaseController { |
| | |
| | | TokenService tokenService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "èµæºåç§°", dataType = "String", paramType = "query", example = "天å°å¾"), |
| | | @ApiImplicitParam(name = "type", value = "æä½ç±»å", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "start", value = "å¼å§æ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"), |
| | | @ApiImplicitParam(name = "end", value = "ç»ææ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-10 18:00:00"), |
| | | @Operation(summary = "æ¥è¯¢è®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "èµæºåç§°", in = ParameterIn.QUERY, example = "天å°å¾"), |
| | | @Parameter(name = "type", description = "æä½ç±»å", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "start", description = "å¼å§æ¶é´", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"), |
| | | @Parameter(name = "end", description = "ç»ææ¶é´", in = ParameterIn.QUERY, example = "2022-10-10 18:00:00"), |
| | | }) |
| | | @GetMapping({"/selectCount"}) |
| | | public ResponseMsg<Integer> selectCount(String name, Integer type, Timestamp start, Timestamp end) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "èµæºåç§°", dataType = "String", paramType = "query", example = "天å°å¾"), |
| | | @ApiImplicitParam(name = "type", value = "æä½ç±»å", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "start", value = "å¼å§æ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"), |
| | | @ApiImplicitParam(name = "end", value = "ç»ææ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-10 18:00:00"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "èµæºåç§°", in = ParameterIn.QUERY, example = "天å°å¾"), |
| | | @Parameter(name = "type", description = "æä½ç±»å", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "start", description = "å¼å§æ¶é´", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"), |
| | | @Parameter(name = "end", description = "ç»ææ¶é´", in = ParameterIn.QUERY, example = "2022-10-10 18:00:00"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<ResOpEntity>> selectByPage(String name, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "èµæºåç§°", dataType = "String", paramType = "query", example = "天å°å¾"), |
| | | @ApiImplicitParam(name = "type", value = "æä½ç±»å", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "start", value = "å¼å§æ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-09 09:00:00"), |
| | | @ApiImplicitParam(name = "end", value = "ç»ææ¶é´", dataType = "Timestamp", paramType = "query", example = "2022-10-10 18:00:00"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "èµæºåç§°", in = ParameterIn.QUERY, example = "天å°å¾"), |
| | | @Parameter(name = "type", description = "æä½ç±»å", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "start", description = "å¼å§æ¶é´", in = ParameterIn.QUERY, example = "2022-10-09 09:00:00"), |
| | | @Parameter(name = "end", description = "ç»ææ¶é´", in = ParameterIn.QUERY, example = "2022-10-10 18:00:00"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<ResOpEntity>> selectByPageAndCount(String name, Integer type, Timestamp start, Timestamp end, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "com.terra.system.entity.sys.ResOpEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertResOp", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertResOp(@RequestBody ResOpEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "List<ResOpEntity>", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå", schema = @Schema(type = "array"), example = "") |
| | | }) |
| | | @PostMapping(value = "/insertResOps", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertResOps(@RequestBody List<ResOpEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteLogin") |
| | | public ResponseMsg<Integer> deleteResOp(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "List<Integer>", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deleteResOps") |
| | | public ResponseMsg<Integer> deleteResOps(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "IDæ°ç»", dataType = "LoginEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "IDæ°ç»", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateResOp", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectResOp") |
| | | public ResponseMsg<ResOpEntity> selectResOp(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectResOpAll") |
| | | public ResponseMsg<List<ResOpEntity>> selectResOpAll() { |
| | | try { |
| | |
| | | import com.terra.system.service.all.PermsService; |
| | | import com.terra.system.service.sys.RoleService; |
| | | 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.media.Schema; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * @author SWS |
| | | * @date 2022-09.28 |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\è§è²ç®¡ç") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\è§è²ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/role") |
| | | public class RoleController extends BaseController { |
| | |
| | | PermsService permsService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "Admin"), |
| | | @ApiImplicitParam(name = "depid", value = "åä½ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ¥è¯¢è®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "Admin"), |
| | | @Parameter(name = "depid", description = "åä½ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping({"/selectCount"}) |
| | | public ResponseMsg<Integer> selectCount(String name, Integer depid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "Admin"), |
| | | @ApiImplicitParam(name = "depid", value = "åä½ID", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "Admin"), |
| | | @Parameter(name = "depid", description = "åä½ID", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<RoleEntity>> selectByPage(String name, Integer depid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "åç§°", dataType = "String", paramType = "query", example = "Admin"), |
| | | @ApiImplicitParam(name = "depid", value = "åä½ID", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "åç§°", in = ParameterIn.QUERY, example = "Admin"), |
| | | @Parameter(name = "depid", description = "åä½ID", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<RoleEntity>> selectByPageAndCount(String name, Integer depid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "RoleEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertRole", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertRole(@RequestBody RoleEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "List<RoleEntity>", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå", schema = @Schema(type = "array"), example = "") |
| | | }) |
| | | @PostMapping(value = "/insertRoles", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertRoles(@RequestBody List<RoleEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteRole") |
| | | public ResponseMsg<Integer> deleteRole(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "List<Integer>", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deleteAuths") |
| | | public ResponseMsg<Integer> deleteRoles(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "RoleEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateRole", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectRole") |
| | | public ResponseMsg<RoleEntity> selectRole(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectRoleAll") |
| | | public ResponseMsg<List<RoleEntity>> selectRoleAll() { |
| | | try { |
| | |
| | | import com.terra.system.service.all.PermsService; |
| | | import com.terra.system.service.sys.RoleLayerService; |
| | | 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 io.swagger.v3.oas.annotations.enums.ParameterIn; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | import java.util.List; |
| | | |
| | | @SuppressWarnings("ALL") |
| | | @Api(tags = "è¿ç»´ç®¡ç\\è§è²å¾å±") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\è§è²å¾å±") |
| | | @RestController |
| | | @RequestMapping("/roleLayer") |
| | | public class RoleLayerController extends BaseController { |
| | |
| | | PermsService permsService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®è§è²IDæ¥è¯¢å¾å±") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleid", value = "è§è²ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®è§è²IDæ¥è¯¢å¾å±") |
| | | @Parameters({ |
| | | @Parameter(name = "roleid", description = "è§è²ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectResByRole") |
| | | public ResponseMsg<Object> selectLayersByRole(Integer roleid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleid", value = "è§è²ID", dataType = "Integer", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "roleid", description = "è§è²ID", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<RoleLayerEntity>> selectByPageAndCount(Integer roleid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<RoleLayerEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "RoleLayerEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insert(@RequestBody RoleLayerEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "RoleLayerEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> inserts(@RequestBody List<RoleLayerEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "RoleLayerEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "RoleLayerEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8") |
| | |
| | | import com.terra.system.service.all.PermsService; |
| | | import com.terra.system.service.sys.RoleMenuAuthService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * è§è²-èå |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\è§è²èå") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\è§è²èå") |
| | | @RestController |
| | | @RequestMapping("/roleMenuAuth") |
| | | public class RoleMenuAuthController extends BaseController { |
| | |
| | | PermsService permsService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleid", value = "è§è²ID", dataType = "Integer", paramType = "query", required = false, example = "") |
| | | @Operation(summary = "æ¥è¯¢è®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "roleid", description = "è§è²ID", in = ParameterIn.QUERY, required = false, example = "") |
| | | }) |
| | | @GetMapping({"/selectCount"}) |
| | | public ResponseMsg<Integer> selectCount(Integer roleid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleid", value = "è§è²ID", dataType = "Integer", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "roleid", description = "è§è²ID", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<RoleMenuAuthEntity>> selectByPage(Integer roleid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleid", value = "è§è²ID", dataType = "Integer", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "roleid", description = "è§è²ID", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<RoleMenuAuthEntity>> selectByPageAndCount(Integer roleid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®è§è²ID+èåIDå页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleid", value = "è§è²ID", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "menuid", value = "èåID", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®è§è²ID+èåIDå页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "roleid", description = "è§è²ID", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "menuid", description = "èåID", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageForRole") |
| | | public ResponseMsg<List<RoleMenuAuthEntity>> selectByPageForRole(Integer roleid, Integer menuid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectAll") |
| | | public ResponseMsg<List<RoleMenuAuthEntity>> selectAll() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<RoleMenuAuthEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "RoleMenuAuthEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insert(@RequestBody RoleMenuAuthEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "RoleMenuAuthEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> inserts(@RequestBody List<RoleMenuAuthEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "RoleMenuAuthEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "RoleMenuAuthEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8") |
| | |
| | | import com.terra.system.service.all.PermsService; |
| | | import com.terra.system.service.sys.RoleResService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * è§è²-èµæº |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\è§è²èµæº") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\è§è²èµæº") |
| | | @RestController |
| | | @RequestMapping("/roleRes") |
| | | public class RoleResController extends BaseController { |
| | |
| | | PermsService permsService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®è§è²IDæ¥è¯¢èµæº") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleid", value = "è§è²ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®è§è²IDæ¥è¯¢èµæº") |
| | | @Parameters({ |
| | | @Parameter(name = "roleid", description = "è§è²ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectResByRole") |
| | | public ResponseMsg<List<RoleResEntity>> selectResByRole(Integer roleid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleid", value = "è§è²ID", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "roleid", description = "è§è²ID", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<RoleResEntity>> selectByPageAndCount(Integer roleid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<RoleResEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "RoleResEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insert(@RequestBody RoleResEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "RoleResEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> inserts(@RequestBody List<RoleResEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "RoleResEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "RoleResEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8") |
| | |
| | | import com.terra.system.service.all.PermsService; |
| | | import com.terra.system.service.sys.RoleUserService; |
| | | 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.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * è§è²-ç¨æ· |
| | | * @author WWW |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\ç¨æ·è§è²") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\ç¨æ·è§è²") |
| | | @RestController |
| | | @RequestMapping("/roleUser") |
| | | public class RoleUserController extends BaseController { |
| | |
| | | PermsService permsService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢è®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleid", value = "è§è²ID", dataType = "Integer", paramType = "query", required = false, example = "") |
| | | @Operation(summary = "æ¥è¯¢è®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "roleid", description = "è§è²ID", in = ParameterIn.QUERY, required = false, example = "") |
| | | }) |
| | | @GetMapping({"/selectCount"}) |
| | | public ResponseMsg<Integer> selectCount(Integer roleid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleid", value = "è§è²ID", dataType = "Integer", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "roleid", description = "è§è²ID", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPage") |
| | | public ResponseMsg<List<RoleUserEntity>> selectByPage(Integer roleid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "roleid", value = "è§è²ID", dataType = "Integer", paramType = "query", example = ""), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "roleid", description = "è§è²ID", in = ParameterIn.QUERY, example = ""), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<RoleUserEntity>> selectByPageAndCount(Integer roleid, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectAll") |
| | | public ResponseMsg<List<RoleUserEntity>> selectAll() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectById") |
| | | public ResponseMsg<RoleUserEntity> selectById(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "RoleUserEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @PostMapping(value = "/insert", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insert(@RequestBody RoleUserEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "RoleUserEntity", paramType = "body") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @PostMapping(value = "/inserts", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> inserts(@RequestBody List<RoleUserEntity> list, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/delete") |
| | | public ResponseMsg<Integer> delete(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "Integer", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deletes") |
| | | public ResponseMsg<Integer> deletes(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "RoleUserEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/update", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "RoleUserEntity", paramType = "body") |
| | | @Operation(summary = "æ´æ°å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updates", produces = "application/json; charset=UTF-8") |
| | |
| | | import com.terra.system.entity.sys.UserEntity; |
| | | import com.terra.system.helper.StringHelper; |
| | | 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.media.Schema; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * @author WWW |
| | | * @date 2022-09-28 |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\令ç管ç") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\令ç管ç") |
| | | @RestController |
| | | @RequestMapping("/token") |
| | | public class TokenController extends BaseController { |
| | |
| | | TokenService tokenService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "令ç", dataType = "String", paramType = "query", example = "ec101de8-1403-4d8f-ad13-edab8358399b"), |
| | | @ApiImplicitParam(name = "type", value = "ç±»å", dataType = "Integer", paramType = "query", example = "0"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "name", description = "令ç", in = ParameterIn.QUERY, example = "ec101de8-1403-4d8f-ad13-edab8358399b"), |
| | | @Parameter(name = "type", description = "ç±»å", in = ParameterIn.QUERY, example = "0"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<TokenEntity>> selectByPageAndCount(String name, Integer type, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "TokenEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertToken", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertToken(@RequestBody TokenEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å建æ°ä»¤ç") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "type", value = "令çç±»å«ï¼0-临æ¶ï¼1-åºå®", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "min", value = "åéæ°ï¼é»è®¤1个æ", dataType = "Integer", paramType = "query", example = "43200") |
| | | @Operation(summary = "å建æ°ä»¤ç") |
| | | @Parameters({ |
| | | @Parameter(name = "type", description = "令çç±»å«ï¼0-临æ¶ï¼1-åºå®", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "min", description = "åéæ°ï¼é»è®¤1个æ", in = ParameterIn.QUERY, example = "43200") |
| | | }) |
| | | @GetMapping(value = "/insertNewToken") |
| | | public ResponseMsg<Object> insertNewToken(Integer type, Integer min, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteToken") |
| | | public ResponseMsg<Integer> deleteToken(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "List<Integer>", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deleteTokens") |
| | | public ResponseMsg<Integer> deleteTokens(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "TokenEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateToken", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ´æ°ä»¤ç为失æ") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "令çID", dataType = "Integer", paramType = "query", example = "6563") |
| | | @Operation(summary = "æ ¹æ®IDæ´æ°ä»¤ç为失æ") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "令çID", in = ParameterIn.QUERY, example = "6563") |
| | | }) |
| | | @GetMapping(value = "/updateExpireById") |
| | | public ResponseMsg<Integer> updateExpireById(Integer id, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®Tokenæ´æ°ä»¤ç为失æ") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "tk", value = "令ç", dataType = "String", paramType = "query", example = "2edea2a2-e307-4baa-992c-b477ce0566dd") |
| | | @Operation(summary = "æ ¹æ®Tokenæ´æ°ä»¤ç为失æ") |
| | | @Parameters({ |
| | | @Parameter(name = "tk", description = "令ç", in = ParameterIn.QUERY, example = "2edea2a2-e307-4baa-992c-b477ce0566dd") |
| | | }) |
| | | @GetMapping(value = "/updateExpireByToken") |
| | | public ResponseMsg<Integer> updateExpireByToken(String tk, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1658") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1658") |
| | | }) |
| | | @GetMapping(value = "/selectToken") |
| | | public ResponseMsg<TokenEntity> selectToken(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢(æææå
ç)") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "6563") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢(æææå
ç)") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "6563") |
| | | }) |
| | | @GetMapping(value = "/selectOneById") |
| | | public ResponseMsg<TokenEntity> selectOneById(Integer id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®tokenæ¥è¯¢(æææå
ç)") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "tk", value = "令ç", dataType = "String", paramType = "query", example = "2edea2a2-e307-4baa-992c-b477ce0566dd") |
| | | @Operation(summary = "æ ¹æ®tokenæ¥è¯¢(æææå
ç)") |
| | | @Parameters({ |
| | | @Parameter(name = "tk", description = "令ç", in = ParameterIn.QUERY, example = "2edea2a2-e307-4baa-992c-b477ce0566dd") |
| | | }) |
| | | @GetMapping(value = "/selectOneByToken") |
| | | public ResponseMsg<TokenEntity> selectOneByToken(String tk) { |
| | |
| | | import com.terra.system.helper.StringHelper; |
| | | import com.terra.system.service.sys.TokenService; |
| | | import com.terra.system.service.sys.UserService; |
| | | 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.media.Schema; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | |
| | | * @author sws |
| | | * @date 2022-09-27 |
| | | */ |
| | | @Api(tags = "è¿ç»´ç®¡ç\\ç¨æ·ç®¡ç") |
| | | @Tag(name = "è¿ç»´ç®¡ç\\ç¨æ·ç®¡ç") |
| | | @RestController |
| | | @RequestMapping("/user") |
| | | public class UserController extends BaseController { |
| | |
| | | TokenService tokenService; |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "uname", value = "ç¨æ·å", dataType = "String", paramType = "query", example = "室"), |
| | | @ApiImplicitParam(name = "depcode", value = "åä½ç¼ç ", dataType = "String", paramType = "query", example = "00"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "uname", description = "ç¨æ·å", in = ParameterIn.QUERY, example = "室"), |
| | | @Parameter(name = "depcode", description = "åä½ç¼ç ", in = ParameterIn.QUERY, example = "00"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageAndCount") |
| | | public ResponseMsg<List<UserEntity>> selectByPageAndCount(String uname, String depcode, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®è§è²+åä½å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "uname", value = "ç¨æ·å", dataType = "String", paramType = "query", example = "室"), |
| | | @ApiImplicitParam(name = "roleid", value = "è§è²ID", dataType = "Integer", paramType = "query", example = "1"), |
| | | @ApiImplicitParam(name = "depcode", value = "åä½ç¼ç ", dataType = "String", paramType = "query", example = "00"), |
| | | @ApiImplicitParam(name = "pageSize", value = "æ¯é¡µæ¡æ°", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "å页æ°ï¼ä»1å¼å§ï¼", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®è§è²+åä½å页æ¥è¯¢å¹¶è¿åè®°å½æ°") |
| | | @Parameters({ |
| | | @Parameter(name = "uname", description = "ç¨æ·å", in = ParameterIn.QUERY, example = "室"), |
| | | @Parameter(name = "roleid", description = "è§è²ID", in = ParameterIn.QUERY, example = "1"), |
| | | @Parameter(name = "depcode", description = "åä½ç¼ç ", in = ParameterIn.QUERY, example = "00"), |
| | | @Parameter(name = "pageSize", description = "æ¯é¡µæ¡æ°", in = ParameterIn.QUERY, example = "10"), |
| | | @Parameter(name = "pageIndex", description = "å页æ°ï¼ä»1å¼å§ï¼", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectByPageForRole") |
| | | public ResponseMsg<List<UserEntity>> selectByPageForRole(String uname, Integer roleid, String depcode, Integer pageSize, Integer pageIndex) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectUser") |
| | | public ResponseMsg<UserEntity> selectUser(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®ç¨æ·IDæ¥è¯¢") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "uid", value = "ç¨æ·ID", dataType = "String", paramType = "query", example = "admin") |
| | | @Operation(summary = "æ ¹æ®ç¨æ·IDæ¥è¯¢") |
| | | @Parameters({ |
| | | @Parameter(name = "uid", description = "ç¨æ·ID", in = ParameterIn.QUERY, example = "admin") |
| | | }) |
| | | @GetMapping(value = "/selectByUid") |
| | | public ResponseMsg<UserEntity> selectByUid(String uid) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææ") |
| | | @Operation(summary = "æ¥è¯¢ææ") |
| | | @GetMapping(value = "/selectUserAll") |
| | | public ResponseMsg<List<UserEntity>> selectUserAll() { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æ¯/å¦ä¸ºç®¡çå") |
| | | @Operation(summary = "æ¥è¯¢æ¯/å¦ä¸ºç®¡çå") |
| | | @GetMapping(value = "/selectForIsAdmin") |
| | | public ResponseMsg<Boolean> selectForIsAdmin(HttpServletRequest req) { |
| | | try { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢æ¯/å¦ä¸ºç®¡çå") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ç¨æ·ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ¥è¯¢æ¯/å¦ä¸ºç®¡çå") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ç¨æ·ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectIsAdmin") |
| | | public ResponseMsg<Boolean> selectIsAdmin(Integer id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ç®¡çåç¨æ·") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "type", value = "管çåç±»å«", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ¥è¯¢ç®¡çåç¨æ·") |
| | | @Parameters({ |
| | | @Parameter(name = "type", description = "管çåç±»å«", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectAdminUsers") |
| | | public ResponseMsg<Object> selectAdminUsers(Integer type) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®ç¨æ·IDæ¥è¯¢è§è²") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ç¨æ·ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®ç¨æ·IDæ¥è¯¢è§è²") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ç¨æ·ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectRoleByUserId") |
| | | public ResponseMsg<Object> selectRoleByUserId(Integer id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ ¹æ®è§è²æ¥è¯¢ç¨æ·") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "è§è²ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "æ ¹æ®è§è²æ¥è¯¢ç¨æ·") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "è§è²ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/selectUserByRoleId") |
| | | public ResponseMsg<Object> selectUserByRoleId(Integer id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "UserEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @PostMapping(value = "/insertUser", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Integer> insertUser(@RequestBody UserEntity entity, HttpServletRequest req) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æå
¥å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "å®ä½ç±»éå", dataType = "List<UserEntity>", paramType = "body", example = "") |
| | | @Operation(summary = "æå
¥å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "list", description = "å®ä½ç±»éå", schema = @Schema(type = "array"), example = "") |
| | | }) |
| | | @PostMapping(value = "/insertUsers", produces = "application/json; charset=UTF-8") |
| | | @SuppressWarnings("AlibabaRemoveCommentedCode") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "id", value = "ID", dataType = "Integer", paramType = "query", example = "1") |
| | | @Operation(summary = "å é¤ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1") |
| | | }) |
| | | @GetMapping(value = "/deleteUser") |
| | | public ResponseMsg<Integer> deleteUser(int id) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "å é¤å¤æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "ids", value = "IDæ°ç»", dataType = "List<Integer>", paramType = "query", example = "1,2") |
| | | @Operation(summary = "å é¤å¤æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "ids", description = "IDæ°ç»", schema = @Schema(type = "array"), in = ParameterIn.QUERY, example = "1,2") |
| | | }) |
| | | @GetMapping(value = "/deleteUsers") |
| | | public ResponseMsg<Integer> deleteUsers(@RequestParam List<Integer> ids) { |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°ä¸æ¡") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "å®ä½ç±»", dataType = "UserEntity", paramType = "body", example = "") |
| | | @Operation(summary = "æ´æ°ä¸æ¡") |
| | | @Parameters({ |
| | | @Parameter(name = "entity", description = "å®ä½ç±»", example = "") |
| | | }) |
| | | @ResponseBody |
| | | @PostMapping(value = "/updateUser", produces = "application/json; charset=UTF-8") |
| | |
| | | } |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ´æ°å¤ä¸ªç¨æ·å¯ç ") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "adminPwd", value = "管çåå¯ç ", dataType = "String", paramType = "body", example = ""), |
| | | @ApiImplicitParam(name = "newPwd", value = "æ°å¯ç ", dataType = "String", paramType = "body", example = ""), |
| | | @ApiImplicitParam(name = "ids", value = "ç¨æ·IDéå", dataType = "List<Integer>", paramType = "body", example = "") |
| | | @Operation(summary = "æ´æ°å¤ä¸ªç¨æ·å¯ç ") |
| | | @Parameters({ |
| | | @Parameter(name = "adminPwd", description = "管çåå¯ç ", example = ""), |
| | | @Parameter(name = "newPwd", description = "æ°å¯ç ", example = ""), |
| | | @Parameter(name = "ids", description = "ç¨æ·IDéå", schema = @Schema(type = "array"), example = "") |
| | | }) |
| | | @PostMapping(value = "/updateUsersPwd", produces = "application/json; charset=UTF-8") |
| | | public ResponseMsg<Boolean> updateUsersPwd(@RequestBody UserUpdateEntity uue, HttpServletRequest req) { |
| | |
| | | /** |
| | | * æéæé¤è·¯å¾ï¼/proxyï¼è¦æ±å
¨é¨å°å |
| | | */ |
| | | public static String[] EXCLUDE_PATH = new String[]{"/sign/", "/perms/", "/fmeit/", "/crds/", "/floatserver/", "/wmts/select", "/onemap/", "/swagger", "/error"}; |
| | | public static String[] EXCLUDE_PATH = new String[]{"/sign/", "/perms/", "/wmts/select", "/swagger", "/v3/api-docs", "/error"}; |
| | | |
| | | public final static int I1 = 1; |
| | | |
| | |
| | | package com.terra.system.service.data; |
| | | |
| | | import com.google.common.collect.Lists; |
| | | import cn.hutool.core.collection.ListUtil; |
| | | import com.terra.system.entity.all.BaseEntity; |
| | | import com.terra.system.entity.all.StaticData; |
| | | import com.terra.system.entity.data.*; |
| | |
| | | private <T> int batchInserts(BasicMapper basicMapper, List<T> list) { |
| | | int rows = 0; |
| | | //int count = (int) Math.ceil(list.size() / StaticData.D100) |
| | | List<List<T>> subLists = Lists.partition(list, StaticData.I50); |
| | | List<List<T>> subLists = ListUtil.partition(list, StaticData.I50); |
| | | for (List<T> sub : subLists) { |
| | | try { |
| | | rows += basicMapper.insertBatch(sub); |
| | |
| | | discovery: |
| | | # æå¡æ³¨åå°å |
| | | server-addr: 127.0.0.1:8848 |
| | | group: JHS_GROUP |
| | | config: |
| | | group: JHS_GROUP |
| | | # é
ç½®ä¸å¿å°å |