已重命名14个文件
已添加9个文件
已修改80个文件
已删除77个文件
| | |
| | | <version>${tomcat.version}</version> |
| | | </dependency> |
| | | |
| | | <!-- pagehelper å页æä»¶ --> |
| | | <dependency> |
| | | <groupId>com.github.pagehelper</groupId> |
| | | <artifactId>pagehelper-spring-boot-starter</artifactId> |
| | | <version>${pagehelper.boot.version}</version> |
| | | </dependency> |
| | | |
| | | <!-- io常ç¨å·¥å
·ç±» --> |
| | | <dependency> |
| | | <groupId>commons-io</groupId> |
| | | <artifactId>commons-io</artifactId> |
| | | <version>${commons.io.version}</version> |
| | | </dependency> |
| | | |
| | | <!-- excelå·¥å
· --> |
| | | <dependency> |
| | | <groupId>org.apache.poi</groupId> |
| | | <artifactId>poi-ooxml</artifactId> |
| | | <version>${poi.version}</version> |
| | | </dependency> |
| | | |
| | | <!-- 代ç çæä½¿ç¨æ¨¡æ¿ --> |
| | | <dependency> |
| | | <groupId>org.apache.velocity</groupId> |
| | | <artifactId>velocity-engine-core</artifactId> |
| | | <version>${velocity.version}</version> |
| | | </dependency> |
| | | |
| | | <!-- JSON è§£æå¨åçæå¨ --> |
| | |
| | | <module>se-common</module> |
| | | <module>se-gateway</module> |
| | | <module>se-system</module> |
| | | <module>se-collect</module> |
| | | <module>se-discover</module> |
| | | <module>se-publish</module> |
| | | </modules> |
| | | <packaging>pom</packaging> |
| | | |
| | |
| | | <optional>true</optional> |
| | | </dependency> |
| | | |
| | | <!--mybatis-plus--> |
| | | <dependency> |
| | | <groupId>com.baomidou</groupId> |
| | | <artifactId>mybatis-plus-boot-starter</artifactId> |
| | | <version>3.5.1</version> |
| | | </dependency> |
| | | |
| | | <!--redis--> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-data-redis</artifactId> |
| | | </dependency> |
| | | |
| | | <!--postgresql--> |
| | | <dependency> |
| | | <groupId>org.postgresql</groupId> |
| | |
| | | <artifactId>spring-boot-starter-aop</artifactId> |
| | | </dependency> |
| | | |
| | | <!--fastjson--> |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
| | | <artifactId>fastjson</artifactId> |
| | | <version>1.2.47</version> |
| | | </dependency> |
| | | |
| | | <!--æ´ådruidæ°æ®æº--> |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
| | |
| | | <version>1.2.25</version> |
| | | </dependency> |
| | | |
| | | <!--text--> |
| | | <dependency> |
| | | <groupId>org.apache.commons</groupId> |
| | | <artifactId>commons-text</artifactId> |
| | | <version>1.1</version> |
| | | </dependency> |
| | | |
| | | <!--swagger--> |
| | | <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> |
| | | </dependency> |
| | | |
| | | <!--httpclient--> |
| | | <dependency> |
| | | <groupId>org.apache.httpcomponents</groupId> |
| | | <artifactId>httpclient</artifactId> |
| | | </dependency> |
| | | |
| | | <!--websocket--> |
| | | <dependency> |
| | | <groupId>javax.websocket</groupId> |
| | | <artifactId>javax.websocket-api</artifactId> |
| | | <version>1.0</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-websocket</artifactId> |
| | | </dependency> |
| | | |
| | | <!--hutool--> |
| | | <dependency> |
| | | <groupId>cn.hutool</groupId> |
| | | <artifactId>hutool-all</artifactId> |
| | | <version>5.7.20</version> |
| | | </dependency> |
| | | |
| | | <!--commons-fileupload--> |
| | | <dependency> |
| | | <groupId>commons-fileupload</groupId> |
| | | <artifactId>commons-fileupload</artifactId> |
| | | <version>1.4</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>commons-io</groupId> |
| | | <artifactId>commons-io</artifactId> |
| | | <version>2.11.0</version> |
| | | </dependency> |
| | | |
| | | <!--gdal--> |
| | | <dependency> |
| | | <groupId>org.gdal</groupId> |
| | | <artifactId>gdal</artifactId> |
| | | <version>3.2.0</version> |
| | | </dependency> |
| | | |
| | | <!--zip4j--> |
| | | <dependency> |
| | | <groupId>net.lingala.zip4j</groupId> |
| | | <artifactId>zip4j</artifactId> |
| | | <version>2.6.4</version> |
| | | </dependency> |
| | | |
| | | <!--easyexcel--> |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
| | | <artifactId>easyexcel</artifactId> |
| | | <version>2.2.10</version> |
| | | </dependency> |
| | | |
| | | <!--servlet--> |
| | | <dependency> |
| | | <groupId>javax.servlet</groupId> |
| | | <artifactId>javax.servlet-api</artifactId> |
| | | <version>3.1.0</version> |
| | | <scope>provided</scope> |
| | | </dependency> |
| | | |
| | | <!--apache.poi--> |
| | | <dependency> |
| | | <groupId>org.apache.poi</groupId> |
| | | <artifactId>poi-ooxml</artifactId> |
| | | <version>3.16</version> |
| | | </dependency> |
| | | |
| | | <!--proj4j--> |
| | | <dependency> |
| | | <groupId>org.osgeo</groupId> |
| | | <artifactId>proj4j</artifactId> |
| | | <version>0.1.0</version> |
| | | </dependency> |
| | | |
| | | <!--JTS--> |
| | | <dependency> |
| | | <groupId>org.locationtech.jts</groupId> |
| | | <artifactId>jts-core</artifactId> |
| | | <version>1.19.0</version> |
| | | </dependency> |
| | | |
| | | <!-- se-common --> |
| | |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.context.annotation.EnableAspectJAutoProxy; |
| | | import org.springframework.scheduling.annotation.EnableAsync; |
| | | import springfox.documentation.swagger2.annotations.EnableSwagger2; |
| | | |
| | | @EnableAsync |
| | | @EnableSwagger2 |
| | | @EnableAspectJAutoProxy(exposeProxy = true) |
| | | @SpringBootApplication(scanBasePackages = {"com.terra.collect.*"}) |
| | | public class SeCollectApp |
| | |
| | | package com.terra.collect.controller; |
| | | |
| | | import com.terra.collect.controller.all.BaseController; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import com.terra.common.controller.all.BaseController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.terra.collect.entity.all.ResponseMsg; |
| | | import com.terra.common.entity.all.ResponseMsg; |
| | | import java.util.Date; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | |
| | | @Api(tags = "æ°æ®æ±é\\æµè¯æå¡") |
| | | @RestController |
| | | @RequestMapping("/test") |
| | | public class TestController extends BaseController { |
| | | public static final SimpleDateFormat YMDHMS_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | |
| | | @ApiOperation(value = "Test") |
| | | @GetMapping(value = "/test") |
| | | public ResponseMsg<Object> test() { |
| | | try { |
| | | String date = YMDHMS_FORMAT.format(new Date()); |
| | | |
| | | return success(date); |
| | | return success("Collect", date); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | server: |
| | | tomcat: |
| | | uri-encoding: UTF-8 |
| | | max-connections: 5000 |
| | | max-http-form-post-size: 100MB |
| | | threads: |
| | | max: 2000 |
| | | servlet: |
| | | context-path: / |
| | | |
| | | spring: |
| | | # redis |
| | | redis: |
| | | database: 0 |
| | | host: 192.168.11.203 |
| | | port: 6379 |
| | | password: rediS_5L#F4_Server |
| | | timeout: 10000 |
| | | lettuce: |
| | | pool: |
| | | max-active: 1000 |
| | | max-wait: -1 |
| | | max-idle: 10 |
| | | min-idle: 5 |
| | | # session |
| | | session: |
| | | timeout: PT20M |
| | | # servlet |
| | | servlet: |
| | | multipart: |
| | | enabled: true |
| | | max-file-size: 204800MB |
| | | max-request-size: 1048576MB |
| | | # jackson |
| | | jackson: |
| | | time-zone: GMT+8 |
| | | date-format: yyyy-MM-dd HH:mm:ss |
| | | locale: zh_CN |
| | | # datasource |
| | | datasource: |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | url: jdbc:postgresql://192.168.11.203:5432/jhs?useAffectedRows=true |
| | | username: postgres |
| | | password: Postgres!_17_jHs |
| | | driver-class-name: org.postgresql.Driver |
| | | platform: POSTGRESQL |
| | | filters: stat,wall,log4j |
| | | connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 |
| | | logAbandoned: true |
| | | # druid |
| | | druid: |
| | | initial-size: 5 |
| | | min-idle: 5 |
| | | max-active: 100 |
| | | max-wait: 60000 |
| | | time-between-eviction-runs-millis: 60000 |
| | | min-evictable-idle-time-millis: 300000 |
| | | max-pool-prepared-statement-per-connection-size: 50 |
| | | pool-prepared-statements: true |
| | | validation-query: SELECT 1 |
| | | test-while-idle: true |
| | | test-on-borrow: false |
| | | test-on-return: false |
| | | filters: stat,wall |
| | | stat-view-servlet: |
| | | enabled: false |
| | | |
| | | mybatis-plus: |
| | | config-location: classpath:mybatis.xml |
| | | |
| | | logging: |
| | | config: classpath:logback.xml |
| | | |
| | | remote: |
| | | maxTotalConnect: 0 |
| | | maxConnectPerRoute: 1000 |
| | | connectTimeout: 30000 |
| | | readTimeout: -1 |
| | | |
| | | sys: |
| | | swaggerEnable: true |
| | |
| | | discovery: |
| | | # æå¡æ³¨åå°å |
| | | server-addr: 127.0.0.1:8848 |
| | | group: JHS_GROUP |
| | | #namespace: public |
| | | config: |
| | | group: JHS_GROUP |
| | | # é
ç½®ä¸å¿å°å |
| | |
| | | <setting name="logImpl" value="NO_LOGGING" /> |
| | | </settings> |
| | | <typeAliases> |
| | | <!--âç±»åå«åé
ç½®--> |
| | | <package name="com.terra.collect.entity"/> |
| | | </typeAliases> |
| | | </configuration> |
| | |
| | | |
| | | <dependencies> |
| | | |
| | | <!-- SpringCloud Openfeign --> |
| | | <!--mybatis-plus--> |
| | | <dependency> |
| | | <groupId>org.springframework.cloud</groupId> |
| | | <artifactId>spring-cloud-starter-openfeign</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- SpringCloud Loadbalancer --> |
| | | <dependency> |
| | | <groupId>org.springframework.cloud</groupId> |
| | | <artifactId>spring-cloud-starter-loadbalancer</artifactId> |
| | | <groupId>com.baomidou</groupId> |
| | | <artifactId>mybatis-plus-boot-starter</artifactId> |
| | | <version>3.5.1</version> |
| | | </dependency> |
| | | |
| | | <!-- Spring Context Support --> |
| | | <!-- SpringDoc webmvc --> |
| | | <dependency> |
| | | <groupId>org.springframework</groupId> |
| | | <artifactId>spring-context-support</artifactId> |
| | | <groupId>org.springdoc</groupId> |
| | | <artifactId>springdoc-openapi-ui</artifactId> |
| | | <version>${springdoc.version}</version> |
| | | </dependency> |
| | | |
| | | <!-- Spring Web --> |
| | | <dependency> |
| | | <groupId>org.springframework</groupId> |
| | | <artifactId>spring-web</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- Transmittable ThreadLocal --> |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
| | | <artifactId>transmittable-thread-local</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- Pagehelper --> |
| | | <dependency> |
| | | <groupId>com.github.pagehelper</groupId> |
| | | <artifactId>pagehelper-spring-boot-starter</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- Hibernate Validator --> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-validation</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- Jackson --> |
| | | <dependency> |
| | | <groupId>com.fasterxml.jackson.core</groupId> |
| | | <artifactId>jackson-databind</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- Alibaba Fastjson --> |
| | | <!-- JSON è§£æå¨åçæå¨ --> |
| | | <dependency> |
| | | <groupId>com.alibaba.fastjson2</groupId> |
| | | <artifactId>fastjson2</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- Jwt --> |
| | | <dependency> |
| | | <groupId>io.jsonwebtoken</groupId> |
| | | <artifactId>jjwt</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- Jaxb --> |
| | | <dependency> |
| | | <groupId>javax.xml.bind</groupId> |
| | | <artifactId>jaxb-api</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- Apache Lang3 --> |
| | | <dependency> |
| | | <groupId>org.apache.commons</groupId> |
| | | <artifactId>commons-lang3</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- Commons Io --> |
| | | <dependency> |
| | | <groupId>commons-io</groupId> |
| | | <artifactId>commons-io</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- excelå·¥å
· --> |
| | | <dependency> |
| | | <groupId>org.apache.poi</groupId> |
| | | <artifactId>poi-ooxml</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- Java Servlet --> |
| | | <dependency> |
| | | <groupId>javax.servlet</groupId> |
| | | <artifactId>javax.servlet-api</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- SpringBoot Boot Redis --> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-data-redis</artifactId> |
| | | </dependency> |
| | | |
| | | </dependencies> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.terra.common.config; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.DbType; |
| | | import com.baomidou.mybatisplus.autoconfigure.ConfigurationCustomizer; |
| | | import com.baomidou.mybatisplus.core.MybatisConfiguration; |
| | | import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; |
| | | import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; |
| | | import com.terra.common.extend.CustomizedSqlInjector; |
| | | import org.apache.ibatis.type.JdbcType; |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | import org.springframework.transaction.annotation.EnableTransactionManagement; |
| | | |
| | | /** |
| | | * Mybatis-Pluså页é
ç½® |
| | | * @author WWW |
| | | */ |
| | | @EnableTransactionManagement |
| | | @Configuration |
| | | @MapperScan("com.terra.*.mapper") |
| | | public class MybatisPlusConfig { |
| | | /** |
| | | * æ°çå页æä»¶,ä¸ç¼åäºç¼éµå¾ªmybatisçè§å,éè¦è®¾ç½® |
| | | * MybatisConfiguration#useDeprecatedExecutor = false |
| | | * é¿å
ç¼ååºç°é®é¢(è¯¥å±æ§ä¼å¨æ§æä»¶ç§»é¤åä¸åç§»é¤) |
| | | */ |
| | | @Bean |
| | | public MybatisPlusInterceptor mybatisPlusInterceptor() { |
| | | MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); |
| | | interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.POSTGRE_SQL)); |
| | | return interceptor; |
| | | } |
| | | |
| | | @Bean |
| | | public ConfigurationCustomizer configurationCustomizer() { |
| | | return new ConfigurationCustomizer() { |
| | | @Override |
| | | public void customize(MybatisConfiguration configuration) { |
| | | configuration.setCacheEnabled(true); |
| | | configuration.setMapUnderscoreToCamelCase(true); |
| | | configuration.setCallSettersOnNulls(true); |
| | | configuration.setJdbcTypeForNull(JdbcType.NULL); |
| | | } |
| | | }; |
| | | } |
| | | |
| | | @Bean |
| | | public CustomizedSqlInjector customizedSqlInjector() { |
| | | return new CustomizedSqlInjector(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.terra.common.config; |
| | | |
| | | import com.terra.common.entity.all.SpringDocProperties; |
| | | import io.swagger.v3.oas.models.Components; |
| | | import io.swagger.v3.oas.models.OpenAPI; |
| | | import io.swagger.v3.oas.models.info.Info; |
| | | import io.swagger.v3.oas.models.security.SecurityRequirement; |
| | | import io.swagger.v3.oas.models.security.SecurityScheme; |
| | | import io.swagger.v3.oas.models.servers.Server; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.boot.context.properties.EnableConfigurationProperties; |
| | | import org.springframework.context.annotation.Bean; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * Swagger ææ¡£é
ç½® |
| | | * |
| | | * @author admin |
| | | */ |
| | | @EnableConfigurationProperties(SpringDocProperties.class) |
| | | @ConditionalOnProperty(name = "springdoc.api-docs.enabled", havingValue = "true", matchIfMissing = true) |
| | | public class SpringDocAutoConfiguration |
| | | { |
| | | @Bean |
| | | @ConditionalOnMissingBean(OpenAPI.class) |
| | | public OpenAPI openApi(SpringDocProperties properties) |
| | | { |
| | | return new OpenAPI().components(new Components() |
| | | // 设置认è¯ç请æ±å¤´ |
| | | .addSecuritySchemes("apikey", securityScheme())) |
| | | .addSecurityItem(new SecurityRequirement().addList("apikey")) |
| | | .info(convertInfo(properties.getInfo())) |
| | | .servers(servers(properties.getGatewayUrl())); |
| | | } |
| | | |
| | | public SecurityScheme securityScheme() |
| | | { |
| | | return new SecurityScheme().type(SecurityScheme.Type.APIKEY) |
| | | .name("Authorization") |
| | | .in(SecurityScheme.In.HEADER) |
| | | .scheme("Bearer"); |
| | | } |
| | | |
| | | private Info convertInfo(SpringDocProperties.InfoProperties infoProperties) |
| | | { |
| | | Info info = new Info(); |
| | | info.setTitle(infoProperties.getTitle()); |
| | | info.setDescription(infoProperties.getDescription()); |
| | | info.setContact(infoProperties.getContact()); |
| | | info.setLicense(infoProperties.getLicense()); |
| | | info.setVersion(infoProperties.getVersion()); |
| | | return info; |
| | | } |
| | | |
| | | public List<Server> servers(String gatewayUrl) |
| | | { |
| | | List<Server> serverList = new ArrayList<>(); |
| | | serverList.add(new Server().url(gatewayUrl)); |
| | | return serverList; |
| | | } |
| | | } |
ÎļþÃû´Ó se-collect/src/main/java/com/terra/collect/controller/all/BaseController.java ÐÞ¸Ä |
| | |
| | | package com.terra.collect.controller.all; |
| | | package com.terra.common.controller.all; |
| | | |
| | | import com.terra.collect.entity.all.HttpStatus; |
| | | import com.terra.collect.entity.all.ResponseMsg; |
| | | import com.terra.common.entity.all.HttpStatus; |
| | | import com.terra.common.entity.all.ResponseMsg; |
| | | import org.apache.commons.logging.Log; |
| | | import org.apache.commons.logging.LogFactory; |
| | | |
ÎļþÃû´Ó se-discover/src/main/java/com/terra/discover/entity/all/HttpStatus.java ÐÞ¸Ä |
| | |
| | | package com.terra.discover.entity.all; |
| | | package com.terra.common.entity.all; |
| | | |
| | | /** |
| | | * Httpç¶æç ç±» |
ÎļþÃû´Ó se-publish/src/main/java/com/terra/publish/entity/all/ResponseMsg.java ÐÞ¸Ä |
| | |
| | | package com.terra.publish.entity.all; |
| | | package com.terra.common.entity.all; |
| | | |
| | | import com.terra.common.entity.all.HttpStatus; |
| | | |
| | | /** |
| | | * ååºæ¶æ¯ç±» |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.terra.common.entity.all; |
| | | |
| | | import io.swagger.v3.oas.models.info.Contact; |
| | | import io.swagger.v3.oas.models.info.License; |
| | | import org.springframework.boot.context.properties.ConfigurationProperties; |
| | | import org.springframework.boot.context.properties.NestedConfigurationProperty; |
| | | |
| | | /** |
| | | * Swagger é
ç½®å±æ§ |
| | | * |
| | | * @author admin |
| | | */ |
| | | @ConfigurationProperties(prefix = "springdoc") |
| | | public class SpringDocProperties |
| | | { |
| | | /** |
| | | * ç½å
³ |
| | | */ |
| | | private String gatewayUrl; |
| | | |
| | | /** |
| | | * ææ¡£åºæ¬ä¿¡æ¯ |
| | | */ |
| | | @NestedConfigurationProperty |
| | | private InfoProperties info = new InfoProperties(); |
| | | |
| | | /** |
| | | * <p> |
| | | * ææ¡£çåºç¡å±æ§ä¿¡æ¯ |
| | | * </p> |
| | | * |
| | | * @see io.swagger.v3.oas.models.info.Info |
| | | * |
| | | * ä¸ºäº springboot èªå¨ç产é
ç½®æç¤ºä¿¡æ¯ï¼æä»¥è¿éå¤å¶ä¸ä¸ªç±»åºæ¥ |
| | | */ |
| | | public static class InfoProperties |
| | | { |
| | | /** |
| | | * æ é¢ |
| | | */ |
| | | private String title = null; |
| | | |
| | | /** |
| | | * æè¿° |
| | | */ |
| | | private String description = null; |
| | | |
| | | /** |
| | | * èç³»äººä¿¡æ¯ |
| | | */ |
| | | @NestedConfigurationProperty |
| | | private Contact contact = null; |
| | | |
| | | /** |
| | | * 许å¯è¯ |
| | | */ |
| | | @NestedConfigurationProperty |
| | | private License license = null; |
| | | |
| | | /** |
| | | * çæ¬ |
| | | */ |
| | | private String version = null; |
| | | |
| | | public String getTitle() |
| | | { |
| | | return title; |
| | | } |
| | | |
| | | public void setTitle(String title) |
| | | { |
| | | this.title = title; |
| | | } |
| | | |
| | | public String getDescription() |
| | | { |
| | | return description; |
| | | } |
| | | |
| | | public void setDescription(String description) |
| | | { |
| | | this.description = description; |
| | | } |
| | | |
| | | public Contact getContact() |
| | | { |
| | | return contact; |
| | | } |
| | | |
| | | public void setContact(Contact contact) |
| | | { |
| | | this.contact = contact; |
| | | } |
| | | |
| | | public License getLicense() |
| | | { |
| | | return license; |
| | | } |
| | | |
| | | public void setLicense(License license) |
| | | { |
| | | this.license = license; |
| | | } |
| | | |
| | | public String getVersion() |
| | | { |
| | | return version; |
| | | } |
| | | |
| | | public void setVersion(String version) |
| | | { |
| | | this.version = version; |
| | | } |
| | | } |
| | | |
| | | public String getGatewayUrl() |
| | | { |
| | | return gatewayUrl; |
| | | } |
| | | |
| | | public void setGatewayUrl(String gatewayUrl) |
| | | { |
| | | this.gatewayUrl = gatewayUrl; |
| | | } |
| | | |
| | | public InfoProperties getInfo() |
| | | { |
| | | return info; |
| | | } |
| | | |
| | | public void setInfo(InfoProperties info) |
| | | { |
| | | this.info = info; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.terra.common.entity.all; |
| | | |
| | | import com.alibaba.fastjson2.JSON; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * éææ°æ®ç±» |
| | | * @author WWW |
| | | */ |
| | | public class StaticData { |
| | | /** |
| | | * æéæé¤è·¯å¾ï¼/proxyï¼è¦æ±å
¨é¨å°å |
| | | */ |
| | | public static String[] EXCLUDE_PATH = new String[]{"/sign/", "/perms/", "/fmeit/", "/crds/", "/floatserver/", "/wmts/select", "/onemap/", "/swagger", "/error"}; |
| | | |
| | | public final static int I1 = 1; |
| | | |
| | | public final static int I2 = 2; |
| | | |
| | | public final static int FOUR = 4; |
| | | |
| | | public final static int I5 = 5; |
| | | |
| | | public final static int NINE = 9; |
| | | |
| | | public final static int I10 = 10; |
| | | |
| | | public final static int SIXTEEN = 16; |
| | | |
| | | public final static int TWO_HUNDRED = 200; |
| | | |
| | | public final static int I100000 = 100000; |
| | | |
| | | public final static int I1000000 = 1000000; |
| | | |
| | | public static final double D90 = 90.0; |
| | | |
| | | public static final double D100 = 100.0; |
| | | |
| | | public static final double D1024 = 1024.0; |
| | | |
| | | public static final double D1050 = 1050.0; |
| | | |
| | | public static final int I12 = 12; |
| | | |
| | | public static final int I23 = 23; |
| | | |
| | | public static final int I24 = 24; |
| | | |
| | | public static final int I31 = 31; |
| | | |
| | | public static final int I50 = 50; |
| | | |
| | | public static final int I60 = 60; |
| | | |
| | | public static final int I90 = 90; |
| | | |
| | | public static final int I90_NEG = -90; |
| | | |
| | | public final static int I100 = 100; |
| | | |
| | | public final static int I120 = 120; |
| | | |
| | | public static final int I180 = 180; |
| | | |
| | | public static final int I180_NEG = -180; |
| | | |
| | | public static final int I1000 = 1000; |
| | | |
| | | public static final int I2050 = 2050; |
| | | |
| | | public static final int I4326 = 4326; |
| | | |
| | | public static final int I4490 = 4490; |
| | | |
| | | public final static String S1 = "1"; |
| | | |
| | | public final static String EQ = "="; |
| | | |
| | | public final static String POINT = "."; |
| | | |
| | | public final static String COMMA = ","; |
| | | |
| | | public final static String TILDE = "~"; |
| | | |
| | | public final static String SINGLE_QUOTES = "'"; |
| | | |
| | | public final static String BBOREHOLE = "bborehole"; |
| | | |
| | | public final static String SLASH = "/"; |
| | | |
| | | public final static String IN = "in"; |
| | | |
| | | public final static String DWG = "dwg"; |
| | | |
| | | public final static String ZIP = ".zip"; |
| | | |
| | | public final static String XLS = ".xls"; |
| | | |
| | | public final static String XLSX = ".xlsx"; |
| | | |
| | | public final static String MDB = ".mdb"; |
| | | |
| | | public final static String KML = ".kml"; |
| | | |
| | | public final static String SHP = ".shp"; |
| | | |
| | | public final static String NGDB = "gdb"; |
| | | |
| | | public final static String GDB = ".gdb"; |
| | | |
| | | public final static String JPG = ".jpg"; |
| | | |
| | | public final static String IMG = ".img"; |
| | | |
| | | public final static String MPT = ".mpt"; |
| | | |
| | | public final static String D3DML = ".3dml"; |
| | | |
| | | public final static String TIF = ".tif"; |
| | | |
| | | public final static String TIFF = ".tiff"; |
| | | |
| | | public final static String LAS = ".las"; |
| | | |
| | | public final static String OSGB = ".osgb"; |
| | | |
| | | public static String ADMIN = "admin"; |
| | | |
| | | public final static String SYS_META = "sysmeta"; |
| | | |
| | | public final static String VERSION = "1.0.0"; |
| | | |
| | | public final static String TOKEN_KEY = "token"; |
| | | |
| | | public final static String TOKEN_COOKIE_KEY = "token"; |
| | | |
| | | public final static String TEXT_ENCODER = "UTF-8"; |
| | | |
| | | public final static String CHECK_MAIN = "checkMain"; |
| | | |
| | | public final static String OBJECT = "java.lang.Object"; |
| | | |
| | | public final static String DRUID_COOKIE_KEY = "JSESSIONID"; |
| | | |
| | | public final static String YES = "YES"; |
| | | |
| | | public final static String NO = "NO"; |
| | | |
| | | public final static String ROUTE = "线路"; |
| | | |
| | | public final static String CROSSING = "ç©¿è·¨è¶"; |
| | | |
| | | public final static String LINESTRING = "LINESTRING"; |
| | | |
| | | public final static String MULTILINESTRING = "MULTILINESTRING"; |
| | | |
| | | public final static String POLYGON = "POLYGON"; |
| | | |
| | | public final static String MULTIPOLYGON = "MULTIPOLYGON"; |
| | | |
| | | public final static String MULTICURVE = "MULTICURVE"; |
| | | |
| | | public final static String COMPOUNDCURVE = "COMPOUNDCURVE"; |
| | | |
| | | public final static String CGCS2000 = "CGCS2000"; |
| | | |
| | | public static final String NO_FILE = JSON.toJSONString(new ResponseMsg<String>(HttpStatus.NOT_FOUND, "æä»¶æ¾ä¸å°")); |
| | | |
| | | /** |
| | | * 16è¿å¶ |
| | | */ |
| | | public static final char[] HEX_DIGITS = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'}; |
| | | |
| | | /** |
| | | * æ
æ ¼æ°æ®æ©å±å |
| | | */ |
| | | public final static List<String> RASTER_EXT = new ArrayList<>(Arrays.asList(".img", ".tif", ".tiff", ".jpg", ".jp2")); |
| | | |
| | | /** |
| | | * å¯ç æ£åè¡¨è¾¾å¼ |
| | | */ |
| | | public final static String PWD_REG = "^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![a-z0-9]+$)(?![a-z\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)(?![0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]+$)[a-zA-Z0-9\\W!@#$%^&*`~()\\-_+=,.?;<>]{12,20}$"; |
| | | |
| | | /** |
| | | * MPTæä»¶æ©å±å |
| | | */ |
| | | public final static List<String> MPT_EXT = new ArrayList<>(Arrays.asList(".midx", ".strmi", ".ei.midx", ".ei.mpt", ".ei.strmi")); |
| | | |
| | | /** |
| | | * JPGæä»¶æ©å±å |
| | | */ |
| | | public final static List<String> JPG_EXT = new ArrayList<>(Arrays.asList(".jpg.aux.xml", ".jpg.ovr", ".jpg.xml", ".jgw", ".prj")); |
| | | |
| | | /** |
| | | * JP2æä»¶æ©å±å |
| | | */ |
| | | public final static List<String> JP2_EXT = new ArrayList<>(Arrays.asList(".jp2.aux.xml", ".jp2.ovr", ".jp2.xml", ".jgw", ".prj", ".jp2.html", ".jp2.txt")); |
| | | |
| | | /** |
| | | * IMGæä»¶æ©å±å |
| | | */ |
| | | public final static List<String> IMG_EXT = new ArrayList<>(Arrays.asList(".rrd", ".img.aux.xml", ".hdr", ".img.enp", ".img.xml")); |
| | | |
| | | /** |
| | | * TIFæä»¶æ©å±å |
| | | */ |
| | | public final static List<String> TIF_EXT = new ArrayList<>(Arrays.asList(".prj", ".tfw", ".aux", ".tif.ovr", ".tif.aux.xml", ".tif.xml")); |
| | | |
| | | /** |
| | | * TIFFæä»¶æ©å±å |
| | | */ |
| | | public final static List<String> TIFF_EXT = new ArrayList<>(Arrays.asList(".prj", ".tfw", ".aux", ".tiff.ovr", ".tiff.aux.xml", ".tiff.xml")); |
| | | |
| | | /** |
| | | * SHPæä»¶æ©å±å |
| | | */ |
| | | public final static List<String> SHP_EXT = new ArrayList<>(Arrays.asList(".shx", ".dbf", ".prj", ".cpg")); |
| | | |
| | | /** |
| | | * Mapperæé¤æ©å±å |
| | | */ |
| | | public final static List<String> MAPPER_EXCLUDE_EXT = new ArrayList<>(Arrays.asList(".jpg.aux.xml", ".jpg.xml", ".jp2.aux.xml", ".jp2.xml", ".jp2.html", ".jp2.txt", ".img.aux.xml", ".img.xml", ".tif.aux.xml", ".tif.xml", ".tiff.aux.xml", ".tiff.xml", ".shp.xml", ".ecw.xml", "ecw.aux.xml")); |
| | | |
| | | /** |
| | | * æææä»¶æ©å±å |
| | | */ |
| | | public final static List<String> ALL_EXTENSION = new ArrayList<>(Arrays.asList(".txt", ".xml", ".pdf", ".xls", ".xlsx", ".doc", ".docx", ".ppt", ".pptx", ".shp", ".gdb", ".mdb", ".dwg", ".las", ".laz", ".cpt", ".mpt", ".ei.mpt", ".fly", ".efb", ".g3d", ".fbx", ".obj", ".3dm", ".3dml", ".osgb", ".rvt", ".ifc", ".jpg", ".jp2", ".png", ".img", ".tif", ".tiff", ".dem", ".bmp", ".gif", ".rmvb", ".rm", ".mp3", ".mp4", ".avi", ".wma", ".wmv", ".7z", ".rar", ".zip", ".lz", ".kml")); |
| | | |
| | | /** |
| | | * æå
¥æé¤å段 |
| | | */ |
| | | public final static List<String> INSERT_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("gid", "objectid", "updateuser", "updatetime", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName")); |
| | | |
| | | /** |
| | | * æ´æ°æé¤å段 |
| | | */ |
| | | public final static List<String> UPDATE_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("objectid", "createuser", "createtime", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName")); |
| | | |
| | | /** |
| | | * 读åæé¤å段 |
| | | */ |
| | | public final static List<String> READ_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("gid", "eventid", "parentid", "objectid", "dirid", "depid", "verid", "createtime", "createuser", "updateuser", "updatetime", "shape_leng", "shape_area", "serialversionuid", "dirname", "depname", "vername", "createname", "updatename")); |
| | | |
| | | /** |
| | | * MDBæé¤å段 |
| | | */ |
| | | public final static List<String> MDB_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("Shape", "SHAPE_LENG", "Shape_Length", "Shape_Area", "OBJECTID_1")); |
| | | |
| | | /** |
| | | * æ ç»Shpæé¤å段 |
| | | */ |
| | | public final static List<String> MARK_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("wkt", "geom", "objectid", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName")); |
| | | |
| | | /** |
| | | * GDBæé¤å段 |
| | | */ |
| | | public final static List<String> GDB_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("geom", "objectid", "shape_leng", "shape_area", "serialVersionUID", "dirName", "depName", "verName", "createName", "updateName")); |
| | | |
| | | /** |
| | | * 管线åæè¡¨åéå |
| | | */ |
| | | public final static List<String> PIPE_ANALYSIS_TABS = new ArrayList<>(Arrays.asList("bd.dlg_25w_hydl", "bd.dlg_25w_lrdl", "bd.dlg_25w_lrrl", "bd.dlg_25w_hyda")); |
| | | |
| | | /** |
| | | * 管线æé¤å段 |
| | | */ |
| | | public final static List<String> PIPE_EXCLUDE_FIELDS = new ArrayList<>(Arrays.asList("serialVersionUID", "tabs", "pwd", "gid", "wkt")); |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.terra.common.extend; |
| | | |
| | | import com.baomidou.mybatisplus.core.injector.AbstractMethod; |
| | | import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector; |
| | | import com.baomidou.mybatisplus.core.metadata.TableInfo; |
| | | import com.terra.common.extend.UpdateBatchMethod; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * èªå®ä¹æ¹æ³SQL注å
¥å¨ |
| | | * @author WWW |
| | | */ |
| | | public class CustomizedSqlInjector extends DefaultSqlInjector { |
| | | /** |
| | | * 妿åªéå¢å æ¹æ³ï¼ä¿çmybatis plusèªå¸¦æ¹æ³ï¼ |
| | | * å¯ä»¥å
è·åsuper.getMethodList()ï¼åæ·»å add |
| | | */ |
| | | @Override |
| | | public List<AbstractMethod> getMethodList(Class<?> mapperClass, TableInfo tableInfo) { |
| | | List<AbstractMethod> methodList = super.getMethodList(mapperClass, tableInfo); |
| | | methodList.add(new InsertBatchMethod()); |
| | | methodList.add(new UpdateBatchMethod()); |
| | | |
| | | return methodList; |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.terra.common.extend; |
| | | |
| | | import com.baomidou.mybatisplus.core.injector.AbstractMethod; |
| | | import com.baomidou.mybatisplus.core.metadata.TableFieldInfo; |
| | | import com.baomidou.mybatisplus.core.metadata.TableInfo; |
| | | import com.terra.common.entity.all.StaticData; |
| | | import org.apache.ibatis.executor.keygen.NoKeyGenerator; |
| | | import org.apache.ibatis.mapping.MappedStatement; |
| | | import org.apache.ibatis.mapping.SqlSource; |
| | | |
| | | /** |
| | | * æ¹éæå
¥æ¹æ³ |
| | | * @author WWW |
| | | */ |
| | | @SuppressWarnings("ALL") |
| | | public class InsertBatchMethod extends AbstractMethod { |
| | | /** |
| | | * insert into user(id, name, age) values (1, "a", 17), (2, "b", 18); |
| | | * <script> |
| | | * insert into user(id, name, age) values |
| | | * <foreach collection="list" item="item" index="index" open="(" separator="),(" close=")"> |
| | | * #{item.id}, #{item.name}, #{item.age} |
| | | * </foreach> |
| | | * </script> |
| | | */ |
| | | @Override |
| | | public MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, TableInfo tableInfo) { |
| | | final String sql = "<script>insert into %s %s values %s</script>"; |
| | | final String fieldSql = prepareFieldSql(tableInfo); |
| | | final String valueSql = prepareValuesSql(tableInfo); |
| | | final String sqlResult = String.format(sql, tableInfo.getTableName(), fieldSql, valueSql); |
| | | |
| | | SqlSource sqlSource = languageDriver.createSqlSource(configuration, sqlResult, modelClass); |
| | | |
| | | // 第ä¸ä¸ªåæ°å¿
é¡»åRootMapperçèªå®ä¹æ¹æ³åä¸è´ |
| | | return this.addInsertMappedStatement(mapperClass, modelClass, "insertBatch", sqlSource, new NoKeyGenerator(), null, null); |
| | | } |
| | | |
| | | private String prepareFieldSql(TableInfo tableInfo) { |
| | | StringBuilder fieldSql = new StringBuilder(); |
| | | // fieldSql.append(tableInfo.getKeyColumn()).append(",") |
| | | // tableInfo.getFieldList().forEach(x -> fieldSql.append(x.getColumn()).append(",")) |
| | | for (TableFieldInfo f : tableInfo.getFieldList()) { |
| | | if (StaticData.INSERT_EXCLUDE_FIELDS.contains(f.getProperty())) { |
| | | continue; |
| | | } |
| | | |
| | | fieldSql.append(f.getColumn()).append(","); |
| | | } |
| | | |
| | | fieldSql.delete(fieldSql.length() - 1, fieldSql.length()); |
| | | fieldSql.insert(0, "("); |
| | | fieldSql.append(")"); |
| | | |
| | | return fieldSql.toString(); |
| | | } |
| | | |
| | | private String prepareValuesSql(TableInfo tableInfo) { |
| | | final StringBuilder valueSql = new StringBuilder(); |
| | | valueSql.append("<foreach collection=\"list\" item=\"item\" index=\"index\" open=\"(\" separator=\"),(\" close=\")\">"); |
| | | // valueSql.append("#{item.").append(tableInfo.getKeyProperty()).append("},") |
| | | // tableInfo.getFieldList().forEach(x -> valueSql.append("#{item.").append(x.getProperty()).append("},")) |
| | | for (TableFieldInfo f : tableInfo.getFieldList()) { |
| | | if (StaticData.INSERT_EXCLUDE_FIELDS.contains(f.getProperty())) { |
| | | continue; |
| | | } |
| | | |
| | | valueSql.append("geom".equals(f.getProperty()) ? "${item." : "#{item.").append(f.getProperty()).append("},"); |
| | | } |
| | | |
| | | valueSql.delete(valueSql.length() - 1, valueSql.length()); |
| | | valueSql.append("</foreach>"); |
| | | |
| | | return valueSql.toString(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.terra.common.extend; |
| | | |
| | | import com.baomidou.mybatisplus.core.injector.AbstractMethod; |
| | | import com.baomidou.mybatisplus.core.metadata.TableFieldInfo; |
| | | import com.baomidou.mybatisplus.core.metadata.TableInfo; |
| | | import com.baomidou.mybatisplus.core.toolkit.sql.SqlScriptUtils; |
| | | import com.terra.common.entity.all.StaticData; |
| | | import org.apache.ibatis.mapping.MappedStatement; |
| | | import org.apache.ibatis.mapping.SqlSource; |
| | | |
| | | /** |
| | | * æ¹éæ´æ°æ¹æ³ |
| | | * @author WWW |
| | | */ |
| | | @SuppressWarnings("ALL") |
| | | public class UpdateBatchMethod extends AbstractMethod { |
| | | /** |
| | | * update user set name = "a", age = 17 where id = 1; |
| | | * update user set name = "b", age = 18 where id = 2; |
| | | * <script> |
| | | * <foreach collection="list" item="item" separator=";"> |
| | | * update user |
| | | * <set> |
| | | * <if test="item.name != null and item.name != ''"> |
| | | * name = #{item.name,jdbcType=VARCHAR}, |
| | | * </if> |
| | | * <if test="item.age != null"> |
| | | * age = #{item.age,jdbcType=INTEGER}, |
| | | * </if> |
| | | * </set> |
| | | * where id = #{item.id,jdbcType=INTEGER} |
| | | * </foreach> |
| | | * </script> |
| | | */ |
| | | @Override |
| | | public MappedStatement injectMappedStatement(Class<?> mapperClass, Class<?> modelClass, TableInfo tableInfo) { |
| | | String sql = "<script>\n<foreach collection=\"list\" item=\"item\" separator=\";\">\nupdate %s %s where %s=#{%s} %s\n</foreach>\n</script>"; |
| | | String additional = tableInfo.isWithVersion() ? tableInfo.getVersionFieldInfo().getVersionOli("item", "item.") : "" + tableInfo.getLogicDeleteSql(true, true); |
| | | //String setSql = sqlSet(tableInfo.isWithLogicDelete(), false, tableInfo, false, "item", "item."); |
| | | String setSql = getSqlSet(tableInfo.isWithLogicDelete(), false, tableInfo, false, "item", "item."); |
| | | String sqlResult = String.format(sql, tableInfo.getTableName(), setSql, tableInfo.getKeyColumn(), "item." + tableInfo.getKeyProperty(), additional); |
| | | |
| | | // update %s %s where %s=#{%s} %s |
| | | // update tab set a=#{a} where gid=1 |
| | | |
| | | SqlSource sqlSource = languageDriver.createSqlSource(configuration, sqlResult, modelClass); |
| | | |
| | | // 第ä¸ä¸ªåæ°å¿
é¡»åRootMapperçèªå®ä¹æ¹æ³åä¸è´ |
| | | return this.addUpdateMappedStatement(mapperClass, modelClass, "updateBatch", sqlSource); |
| | | } |
| | | |
| | | private String getSqlSet(boolean logic, boolean ew, TableInfo table, boolean judgeAliasNull, final String alias, final String prefix) { |
| | | // String sqlScript = table.getAllSqlSet(logic, prefix); |
| | | String sqlScript = getSqlSet(table); |
| | | if (judgeAliasNull) { |
| | | sqlScript = SqlScriptUtils.convertIf(sqlScript, String.format("%s != null", alias), true); |
| | | } |
| | | if (ew) { |
| | | sqlScript = sqlScript + "\n"; |
| | | sqlScript = sqlScript + this.convertIfEwParam("ew.sqlSet", false); |
| | | } |
| | | |
| | | sqlScript = SqlScriptUtils.convertSet(sqlScript); |
| | | |
| | | return sqlScript; |
| | | } |
| | | |
| | | private String getSqlSet(TableInfo tableInfo) { |
| | | StringBuilder sb = new StringBuilder(); |
| | | for (TableFieldInfo f : tableInfo.getFieldList()) { |
| | | if (StaticData.UPDATE_EXCLUDE_FIELDS.contains(f.getProperty())) { |
| | | continue; |
| | | } |
| | | |
| | | if ("geom".equals(f.getProperty())) { |
| | | sb.append("<if test=\"item['geom'] != null\">geom=${item.geom},</if>\n"); |
| | | continue; |
| | | } |
| | | |
| | | sb.append(String.format("<if test=\"item['%s'] != null\">%s=#{item.%s},</if>\n", f.getProperty(), f.getColumn(), f.getProperty())); |
| | | } |
| | | sb.deleteCharAt(sb.length() - 1); |
| | | |
| | | return sb.toString(); |
| | | } |
| | | } |
| | |
| | | com.terra.common.utils.SpringUtils |
| | | com.terra.common.service.RedisService |
| | | com.terra.common.configure.RedisConfig |
| | | com.terra.common.config.MybatisPlusConfig |
| | | com.terra.common.config.SpringDocAutoConfiguration |
| | |
| | | </description> |
| | | |
| | | <dependencies> |
| | | |
| | | <!-- SpringCloud Alibaba Nacos --> |
| | | |
| | | <!-- SpringCloud Alibaba Nacos --> |
| | | <dependency> |
| | | <groupId>com.alibaba.cloud</groupId> |
| | | <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> |
| | | </dependency> |
| | | |
| | | |
| | | <!-- SpringCloud Alibaba Nacos Config --> |
| | | <dependency> |
| | | <groupId>com.alibaba.cloud</groupId> |
| | | <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- SpringCloud Alibaba Sentinel --> |
| | | |
| | | <!-- SpringCloud Alibaba Sentinel --> |
| | | <dependency> |
| | | <groupId>com.alibaba.cloud</groupId> |
| | | <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId> |
| | |
| | | <optional>true</optional> |
| | | </dependency> |
| | | |
| | | <!--mybatis-plus--> |
| | | <dependency> |
| | | <groupId>com.baomidou</groupId> |
| | | <artifactId>mybatis-plus-boot-starter</artifactId> |
| | | <version>3.5.1</version> |
| | | </dependency> |
| | | |
| | | <!--redis--> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-data-redis</artifactId> |
| | | </dependency> |
| | | |
| | | <!--postgresql--> |
| | | <dependency> |
| | | <groupId>org.postgresql</groupId> |
| | |
| | | <artifactId>spring-boot-starter-aop</artifactId> |
| | | </dependency> |
| | | |
| | | <!--fastjson--> |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
| | | <artifactId>fastjson</artifactId> |
| | | <version>1.2.47</version> |
| | | </dependency> |
| | | |
| | | <!--æ´ådruidæ°æ®æº--> |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
| | |
| | | <version>1.2.25</version> |
| | | </dependency> |
| | | |
| | | <!--text--> |
| | | <dependency> |
| | | <groupId>org.apache.commons</groupId> |
| | | <artifactId>commons-text</artifactId> |
| | | <version>1.1</version> |
| | | </dependency> |
| | | |
| | | <!--swagger--> |
| | | <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> |
| | | </dependency> |
| | | |
| | | <!--httpclient--> |
| | | <dependency> |
| | | <groupId>org.apache.httpcomponents</groupId> |
| | | <artifactId>httpclient</artifactId> |
| | | </dependency> |
| | | |
| | | <!--websocket--> |
| | | <dependency> |
| | | <groupId>javax.websocket</groupId> |
| | | <artifactId>javax.websocket-api</artifactId> |
| | | <version>1.0</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-websocket</artifactId> |
| | | </dependency> |
| | | |
| | | <!--hutool--> |
| | | <dependency> |
| | | <groupId>cn.hutool</groupId> |
| | | <artifactId>hutool-all</artifactId> |
| | | <version>5.7.20</version> |
| | | </dependency> |
| | | |
| | | <!--commons-fileupload--> |
| | | <dependency> |
| | | <groupId>commons-fileupload</groupId> |
| | | <artifactId>commons-fileupload</artifactId> |
| | | <version>1.4</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>commons-io</groupId> |
| | | <artifactId>commons-io</artifactId> |
| | | <version>2.11.0</version> |
| | | </dependency> |
| | | |
| | | <!--gdal--> |
| | | <dependency> |
| | | <groupId>org.gdal</groupId> |
| | | <artifactId>gdal</artifactId> |
| | | <version>3.2.0</version> |
| | | </dependency> |
| | | |
| | | <!--zip4j--> |
| | | <dependency> |
| | | <groupId>net.lingala.zip4j</groupId> |
| | | <artifactId>zip4j</artifactId> |
| | | <version>2.6.4</version> |
| | | </dependency> |
| | | |
| | | <!--easyexcel--> |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
| | | <artifactId>easyexcel</artifactId> |
| | | <version>2.2.10</version> |
| | | </dependency> |
| | | |
| | | <!--servlet--> |
| | | <dependency> |
| | | <groupId>javax.servlet</groupId> |
| | | <artifactId>javax.servlet-api</artifactId> |
| | | <version>3.1.0</version> |
| | | <scope>provided</scope> |
| | | </dependency> |
| | | |
| | | <!--apache.poi--> |
| | | <dependency> |
| | | <groupId>org.apache.poi</groupId> |
| | | <artifactId>poi-ooxml</artifactId> |
| | | <version>3.16</version> |
| | | </dependency> |
| | | |
| | | <!--proj4j--> |
| | | <dependency> |
| | | <groupId>org.osgeo</groupId> |
| | | <artifactId>proj4j</artifactId> |
| | | <version>0.1.0</version> |
| | | </dependency> |
| | | |
| | | <!--JTS--> |
| | | <dependency> |
| | | <groupId>org.locationtech.jts</groupId> |
| | | <artifactId>jts-core</artifactId> |
| | | <version>1.19.0</version> |
| | | </dependency> |
| | | |
| | | <!-- se-common --> |
| | |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.context.annotation.EnableAspectJAutoProxy; |
| | | import org.springframework.scheduling.annotation.EnableAsync; |
| | | import springfox.documentation.swagger2.annotations.EnableSwagger2; |
| | | |
| | | @EnableAsync |
| | | @EnableSwagger2 |
| | | @EnableAspectJAutoProxy(exposeProxy = true) |
| | | @SpringBootApplication(scanBasePackages = {"com.terra.discover.*"}) |
| | | public class SeDiscoverApp |
| | |
| | | package com.terra.discover.controller; |
| | | |
| | | import com.terra.discover.controller.all.BaseController; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import com.terra.common.controller.all.BaseController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.terra.discover.entity.all.ResponseMsg; |
| | | import com.terra.common.entity.all.ResponseMsg; |
| | | import java.util.Date; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | |
| | | @Api(tags = "ç¥è¯åç°\\æµè¯æå¡") |
| | | @RestController |
| | | @RequestMapping("/test") |
| | | public class TestController extends BaseController { |
| | | public static final SimpleDateFormat YMDHMS_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | |
| | | @ApiOperation(value = "Test") |
| | | @GetMapping(value = "/test") |
| | | public ResponseMsg<Object> test() { |
| | | try { |
| | | String date = YMDHMS_FORMAT.format(new Date()); |
| | | |
| | | return success(date); |
| | | return success("Discover", date); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | |
| | | discovery: |
| | | # æå¡æ³¨åå°å |
| | | server-addr: 127.0.0.1:8848 |
| | | group: JHS_GROUP |
| | | config: |
| | | group: JHS_GROUP |
| | | # é
ç½®ä¸å¿å°å |
| | |
| | | <setting name="logImpl" value="NO_LOGGING" /> |
| | | </settings> |
| | | <typeAliases> |
| | | <package name="com.terra.discover.entity"/> |
| | | <!--âç±»åå«åé
ç½®--> |
| | | <package name="com.terra.collect.entity"/> |
| | | </typeAliases> |
| | | </configuration> |
| | |
| | | <artifactId>spring-cloud-loadbalancer</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- se-common --> |
| | | <!-- Springdoc --> |
| | | <dependency> |
| | | <groupId>com.terra</groupId> |
| | | <artifactId>se-common</artifactId> |
| | | <version>1.0.2</version> |
| | | <scope>compile</scope> |
| | | <groupId>org.springdoc</groupId> |
| | | <artifactId>springdoc-openapi-webflux-ui</artifactId> |
| | | <version>${springdoc.version}</version> |
| | | </dependency> |
| | | |
| | | <!-- Alibaba Fastjson --> |
| | | <dependency> |
| | | <groupId>com.alibaba.fastjson2</groupId> |
| | | <artifactId>fastjson2</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- Java Servlet --> |
| | | <dependency> |
| | | <groupId>javax.servlet</groupId> |
| | | <artifactId>javax.servlet-api</artifactId> |
| | | </dependency> |
| | | |
| | | </dependencies> |
ÎļþÃû´Ó se-gateway/src/main/java/com/terra/gateway/SeGatewayApplication.java ÐÞ¸Ä |
| | |
| | | * @author admin |
| | | */ |
| | | @SpringBootApplication(exclude = {DataSourceAutoConfiguration.class }) |
| | | public class SeGatewayApplication { |
| | | public class SeGatewayApp { |
| | | private static String TEST; |
| | | |
| | | @Value("${spring.test}") |
| | |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | SpringApplication.run(SeGatewayApplication.class, args); |
| | | SpringApplication.run(SeGatewayApp.class, args); |
| | | System.out.println("----------ç½å
³æ¨¡åå¯å¨æå---------- \n"); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.terra.gateway.config; |
| | | |
| | | import com.alibaba.nacos.client.naming.event.InstancesChangeEvent; |
| | | import com.alibaba.nacos.common.notify.Event; |
| | | import com.alibaba.nacos.common.notify.NotifyCenter; |
| | | import com.alibaba.nacos.common.notify.listener.Subscriber; |
| | | import com.terra.gateway.utils.StringUtils; |
| | | import org.springdoc.core.AbstractSwaggerUiConfigProperties; |
| | | import org.springdoc.core.SwaggerUiConfigProperties; |
| | | import org.springframework.beans.factory.InitializingBean; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.cloud.client.discovery.DiscoveryClient; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | import java.util.Set; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * SpringDocé
置类 |
| | | * |
| | | * @author admin |
| | | */ |
| | | @Configuration(proxyBeanMethods = false) |
| | | @ConditionalOnProperty(value = "springdoc.api-docs.enabled", matchIfMissing = true) |
| | | public class SpringDocConfig implements InitializingBean |
| | | { |
| | | @Autowired |
| | | private SwaggerUiConfigProperties swaggerUiConfigProperties; |
| | | |
| | | @Autowired |
| | | private DiscoveryClient discoveryClient; |
| | | |
| | | /** |
| | | * å¨åå§ååè°ç¨çæ¹æ³ |
| | | */ |
| | | @Override |
| | | public void afterPropertiesSet() |
| | | { |
| | | NotifyCenter.registerSubscriber(new SwaggerDocRegister(swaggerUiConfigProperties, discoveryClient)); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * Swaggerææ¡£æ³¨åå¨ |
| | | */ |
| | | class SwaggerDocRegister extends Subscriber<InstancesChangeEvent> |
| | | { |
| | | @Autowired |
| | | private SwaggerUiConfigProperties swaggerUiConfigProperties; |
| | | |
| | | @Autowired |
| | | private DiscoveryClient discoveryClient; |
| | | |
| | | private final static String[] EXCLUDE_ROUTES = new String[] { "se-gateway" }; |
| | | |
| | | public SwaggerDocRegister(SwaggerUiConfigProperties swaggerUiConfigProperties, DiscoveryClient discoveryClient) |
| | | { |
| | | this.swaggerUiConfigProperties = swaggerUiConfigProperties; |
| | | this.discoveryClient = discoveryClient; |
| | | } |
| | | |
| | | /** |
| | | * äºä»¶åè°æ¹æ³ï¼å¤çInstancesChangeEventäºä»¶ |
| | | * @param event äºä»¶å¯¹è±¡ |
| | | */ |
| | | @Override |
| | | public void onEvent(InstancesChangeEvent event) |
| | | { |
| | | Set<AbstractSwaggerUiConfigProperties.SwaggerUrl> swaggerUrlSet = discoveryClient.getServices() |
| | | .stream() |
| | | .flatMap(serviceId -> discoveryClient.getInstances(serviceId).stream()) |
| | | .filter(instance -> !StringUtils.equalsAnyIgnoreCase(instance.getServiceId(), EXCLUDE_ROUTES)) |
| | | .map(instance -> { |
| | | AbstractSwaggerUiConfigProperties.SwaggerUrl swaggerUrl = new AbstractSwaggerUiConfigProperties.SwaggerUrl(); |
| | | swaggerUrl.setName(instance.getServiceId()); |
| | | swaggerUrl.setUrl(String.format("/%s/v3/api-docs", instance.getServiceId())); |
| | | return swaggerUrl; |
| | | }) |
| | | .collect(Collectors.toSet()); |
| | | |
| | | swaggerUiConfigProperties.setUrls(swaggerUrlSet); |
| | | } |
| | | |
| | | /** |
| | | * 订é
ç±»åæ¹æ³ï¼è¿å订é
çäºä»¶ç±»å |
| | | * @return 订é
çäºä»¶ç±»å |
| | | */ |
| | | @Override |
| | | public Class<? extends Event> subscribeType() |
| | | { |
| | | return InstancesChangeEvent.class; |
| | | } |
| | | } |
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/constant/Constants.java ÐÞ¸Ä |
| | |
| | | package com.terra.common.constant; |
| | | package com.terra.gateway.constant; |
| | | |
| | | /** |
| | | * éç¨å¸¸éä¿¡æ¯ |
| | |
| | | /** |
| | | * èªå¨è¯å«json对象ç½ååé
ç½®ï¼ä»
å
许解æçå
åï¼èå´è¶å°è¶å®å
¨ï¼ |
| | | */ |
| | | public static final String[] JSON_WHITELIST_STR = { "org.springframework", "com.terra" }; |
| | | public static final String[] JSON_WHITELIST_STR = { "org.springframework", "com.ruoyi" }; |
| | | |
| | | /** |
| | | * 宿¶ä»»å¡ç½ååé
ç½®ï¼ä»
å
许访é®çå
åï¼å¦å
¶ä»éè¦å¯ä»¥èªè¡æ·»å ï¼ |
| | | */ |
| | | public static final String[] JOB_WHITELIST_STR = { "com.terra.job.task" }; |
| | | public static final String[] JOB_WHITELIST_STR = { "com.ruoyi.job.task" }; |
| | | |
| | | /** |
| | | * 宿¶ä»»å¡è¿è§çå符 |
| | | */ |
| | | public static final String[] JOB_ERROR_STR = { "java.net.URL", "javax.naming.InitialContext", "org.yaml.snakeyaml", |
| | | "org.springframework", "org.apache", "com.terra.common.utils.file" }; |
| | | "org.springframework", "org.apache", "com.terra" }; |
| | | } |
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/domain/R.java ÐÞ¸Ä |
| | |
| | | package com.terra.common.domain; |
| | | package com.terra.gateway.domain; |
| | | |
| | | import com.terra.gateway.constant.Constants; |
| | | |
| | | import java.io.Serializable; |
| | | import com.terra.common.constant.Constants; |
| | | |
| | | /** |
| | | * ååºä¿¡æ¯ä¸»ä½ |
| | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.regex.Pattern; |
| | | |
| | | import com.terra.gateway.utils.ServletUtils; |
| | | import org.springframework.cloud.gateway.filter.GatewayFilter; |
| | | import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | String url = exchange.getRequest().getURI().getPath(); |
| | | if (config.matchBlacklist(url)) |
| | | { |
| | | //return ServletUtils.webFluxResponseWriter(exchange.getResponse(), "请æ±å°åä¸å
许访é®"); |
| | | return ServletUtils.webFluxResponseWriter(exchange.getResponse(), "请æ±å°åä¸å
许访é®"); |
| | | } |
| | | |
| | | return chain.filter(exchange); |
| | |
| | | |
| | | import java.nio.charset.StandardCharsets; |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.terra.gateway.utils.StringUtils; |
| | | import com.terra.gateway.utils.html.EscapeUtil; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.cloud.gateway.filter.GatewayFilterChain; |
| | | import org.springframework.cloud.gateway.filter.GlobalFilter; |
| | |
| | | } |
| | | // excludeUrls ä¸è¿æ»¤ |
| | | String url = request.getURI().getPath(); |
| | | // if (StringUtils.matches(url, xss.getExcludeUrls())) |
| | | // { |
| | | // return chain.filter(exchange); |
| | | // } |
| | | if (StringUtils.matches(url, xss.getExcludeUrls())) |
| | | { |
| | | return chain.filter(exchange); |
| | | } |
| | | ServerHttpRequestDecorator httpRequestDecorator = requestDecorator(exchange); |
| | | return chain.filter(exchange.mutate().request(httpRequestDecorator).build()); |
| | | |
| | |
| | | DataBufferUtils.release(join); |
| | | String bodyStr = new String(content, StandardCharsets.UTF_8); |
| | | // é²xssæ»å»è¿æ»¤ |
| | | //bodyStr = EscapeUtil.clean(bodyStr); |
| | | bodyStr = EscapeUtil.clean(bodyStr); |
| | | // 转æåè |
| | | byte[] bytes = bodyStr.getBytes(StandardCharsets.UTF_8); |
| | | NettyDataBufferFactory nettyDataBufferFactory = new NettyDataBufferFactory(ByteBufAllocator.DEFAULT); |
| | |
| | | |
| | | /** |
| | | * æ¯å¦æ¯Jsonè¯·æ± |
| | | * |
| | | * |
| | | * @param exchange HTTPè¯·æ± |
| | | */ |
| | | public boolean isJsonRequest(ServerWebExchange exchange) |
| | | { |
| | | String header = exchange.getRequest().getHeaders().getFirst(HttpHeaders.CONTENT_TYPE); |
| | | //return StringUtils.startsWithIgnoreCase(header, MediaType.APPLICATION_JSON_VALUE); |
| | | return true; |
| | | return StringUtils.startsWithIgnoreCase(header, MediaType.APPLICATION_JSON_VALUE); |
| | | } |
| | | |
| | | @Override |
| | |
| | | package com.terra.gateway.handler; |
| | | |
| | | import com.terra.gateway.utils.ServletUtils; |
| | | import org.springframework.cloud.gateway.support.NotFoundException; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | |
| | | |
| | | log.error("[ç½å
³å¼å¸¸å¤ç]请æ±è·¯å¾:{},å¼å¸¸ä¿¡æ¯:{}", exchange.getRequest().getPath(), ex.getMessage()); |
| | | |
| | | //return ServletUtils.webFluxResponseWriter(response, msg); |
| | | return Mono.error(ex); |
| | | return ServletUtils.webFluxResponseWriter(response, msg); |
| | | } |
| | | } |
| | |
| | | |
| | | import com.alibaba.csp.sentinel.adapter.gateway.sc.callback.GatewayCallbackManager; |
| | | import com.alibaba.csp.sentinel.slots.block.BlockException; |
| | | import com.terra.common.utils.ServletUtils; |
| | | |
| | | import com.terra.gateway.utils.ServletUtils; |
| | | import org.springframework.web.reactive.function.server.ServerResponse; |
| | | import org.springframework.web.server.ServerWebExchange; |
| | | import org.springframework.web.server.WebExceptionHandler; |
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/text/CharsetKit.java ÐÞ¸Ä |
| | |
| | | package com.terra.common.text; |
| | | package com.terra.gateway.text; |
| | | |
| | | import com.terra.gateway.utils.StringUtils; |
| | | |
| | | import java.nio.charset.Charset; |
| | | import java.nio.charset.StandardCharsets; |
| | | import com.terra.common.utils.StringUtils; |
| | | |
| | | /** |
| | | * å符éå·¥å
·ç±» |
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/text/Convert.java ÐÞ¸Ä |
| | |
| | | package com.terra.common.text; |
| | | package com.terra.gateway.text; |
| | | |
| | | import com.terra.gateway.utils.StringUtils; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.math.BigInteger; |
| | |
| | | import java.nio.charset.Charset; |
| | | import java.text.NumberFormat; |
| | | import java.util.Set; |
| | | import com.terra.common.utils.StringUtils; |
| | | |
| | | /** |
| | | * ç±»å转æ¢å¨ |
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/text/StrFormatter.java ÐÞ¸Ä |
| | |
| | | package com.terra.common.text; |
| | | package com.terra.gateway.text; |
| | | |
| | | import com.terra.common.utils.StringUtils; |
| | | |
| | | import com.terra.gateway.utils.StringUtils; |
| | | |
| | | /** |
| | | * åç¬¦ä¸²æ ¼å¼å |
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/utils/ServletUtils.java ÐÞ¸Ä |
| | |
| | | package com.terra.common.utils; |
| | | package com.terra.gateway.utils; |
| | | |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import java.net.URLEncoder; |
| | | import java.util.Collections; |
| | | import java.util.Enumeration; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | import javax.servlet.ServletRequest; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.servlet.http.HttpSession; |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.terra.gateway.constant.Constants; |
| | | import com.terra.gateway.domain.R; |
| | | import com.terra.gateway.text.Convert; |
| | | import org.springframework.core.io.buffer.DataBuffer; |
| | | import org.springframework.http.HttpHeaders; |
| | | import org.springframework.http.HttpStatus; |
| | |
| | | import org.springframework.web.context.request.RequestAttributes; |
| | | import org.springframework.web.context.request.RequestContextHolder; |
| | | import org.springframework.web.context.request.ServletRequestAttributes; |
| | | import com.alibaba.fastjson2.JSON; |
| | | import com.terra.common.constant.Constants; |
| | | import com.terra.common.domain.R; |
| | | import com.terra.common.text.Convert; |
| | | import reactor.core.publisher.Mono; |
| | | |
| | | import javax.servlet.ServletRequest; |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.servlet.http.HttpSession; |
| | | import java.io.IOException; |
| | | import java.io.UnsupportedEncodingException; |
| | | import java.net.URLDecoder; |
| | | import java.net.URLEncoder; |
| | | import java.util.Collections; |
| | | import java.util.Enumeration; |
| | | import java.util.HashMap; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 客æ·ç«¯å·¥å
·ç±» |
| | | * |
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/utils/StringUtils.java ÐÞ¸Ä |
| | |
| | | package com.terra.common.utils; |
| | | package com.terra.gateway.utils; |
| | | |
| | | import com.terra.gateway.constant.Constants; |
| | | import com.terra.gateway.text.StrFormatter; |
| | | import org.springframework.util.AntPathMatcher; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import org.springframework.util.AntPathMatcher; |
| | | import com.terra.common.constant.Constants; |
| | | import com.terra.common.text.StrFormatter; |
| | | |
| | | /** |
| | | * å符串工å
·ç±» |
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/utils/html/EscapeUtil.java ÐÞ¸Ä |
| | |
| | | package com.terra.common.utils.html; |
| | | package com.terra.gateway.utils.html; |
| | | |
| | | import com.terra.common.utils.StringUtils; |
| | | |
| | | import com.terra.gateway.utils.StringUtils; |
| | | |
| | | /** |
| | | * 转ä¹åå转ä¹å·¥å
·ç±» |
ÎļþÃû´Ó se-common/src/main/java/com/terra/common/utils/html/HTMLFilter.java ÐÞ¸Ä |
| | |
| | | package com.terra.common.utils.html; |
| | | package com.terra.gateway.utils.html; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collections; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | import java.util.concurrent.ConcurrentHashMap; |
| | | import java.util.concurrent.ConcurrentMap; |
| | | import java.util.regex.Matcher; |
| | |
| | | discovery: |
| | | # æå¡æ³¨åå°å |
| | | server-addr: 127.0.0.1:8848 |
| | | group: JHS_GROUP |
| | | config: |
| | | group: JHS_GROUP |
| | | # é
ç½®ä¸å¿å°å |
| | |
| | | </description> |
| | | |
| | | <dependencies> |
| | | |
| | | <!-- SpringCloud Alibaba Nacos --> |
| | | |
| | | <!-- SpringCloud Alibaba Nacos --> |
| | | <dependency> |
| | | <groupId>com.alibaba.cloud</groupId> |
| | | <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> |
| | | </dependency> |
| | | |
| | | |
| | | <!-- SpringCloud Alibaba Nacos Config --> |
| | | <dependency> |
| | | <groupId>com.alibaba.cloud</groupId> |
| | | <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> |
| | | </dependency> |
| | | |
| | | <!-- SpringCloud Alibaba Sentinel --> |
| | | |
| | | <!-- SpringCloud Alibaba Sentinel --> |
| | | <dependency> |
| | | <groupId>com.alibaba.cloud</groupId> |
| | | <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId> |
| | |
| | | <optional>true</optional> |
| | | </dependency> |
| | | |
| | | <!--mybatis-plus--> |
| | | <dependency> |
| | | <groupId>com.baomidou</groupId> |
| | | <artifactId>mybatis-plus-boot-starter</artifactId> |
| | | <version>3.5.1</version> |
| | | </dependency> |
| | | |
| | | <!--redis--> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-data-redis</artifactId> |
| | | </dependency> |
| | | |
| | | <!--postgresql--> |
| | | <dependency> |
| | | <groupId>org.postgresql</groupId> |
| | |
| | | <artifactId>spring-boot-starter-aop</artifactId> |
| | | </dependency> |
| | | |
| | | <!--fastjson--> |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
| | | <artifactId>fastjson</artifactId> |
| | | <version>1.2.47</version> |
| | | </dependency> |
| | | |
| | | <!--æ´ådruidæ°æ®æº--> |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
| | |
| | | <version>1.2.25</version> |
| | | </dependency> |
| | | |
| | | <!--text--> |
| | | <dependency> |
| | | <groupId>org.apache.commons</groupId> |
| | | <artifactId>commons-text</artifactId> |
| | | <version>1.1</version> |
| | | </dependency> |
| | | |
| | | <!--swagger--> |
| | | <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> |
| | | </dependency> |
| | | |
| | | <!--httpclient--> |
| | | <dependency> |
| | | <groupId>org.apache.httpcomponents</groupId> |
| | | <artifactId>httpclient</artifactId> |
| | | </dependency> |
| | | |
| | | <!--websocket--> |
| | | <dependency> |
| | | <groupId>javax.websocket</groupId> |
| | | <artifactId>javax.websocket-api</artifactId> |
| | | <version>1.0</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-starter-websocket</artifactId> |
| | | </dependency> |
| | | |
| | | <!--hutool--> |
| | | <dependency> |
| | | <groupId>cn.hutool</groupId> |
| | | <artifactId>hutool-all</artifactId> |
| | | <version>5.7.20</version> |
| | | </dependency> |
| | | |
| | | <!--commons-fileupload--> |
| | | <dependency> |
| | | <groupId>commons-fileupload</groupId> |
| | | <artifactId>commons-fileupload</artifactId> |
| | | <version>1.4</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>commons-io</groupId> |
| | | <artifactId>commons-io</artifactId> |
| | | <version>2.11.0</version> |
| | | </dependency> |
| | | |
| | | <!--gdal--> |
| | | <dependency> |
| | | <groupId>org.gdal</groupId> |
| | | <artifactId>gdal</artifactId> |
| | | <version>3.2.0</version> |
| | | </dependency> |
| | | |
| | | <!--zip4j--> |
| | | <dependency> |
| | | <groupId>net.lingala.zip4j</groupId> |
| | | <artifactId>zip4j</artifactId> |
| | | <version>2.6.4</version> |
| | | </dependency> |
| | | |
| | | <!--easyexcel--> |
| | | <dependency> |
| | | <groupId>com.alibaba</groupId> |
| | | <artifactId>easyexcel</artifactId> |
| | | <version>2.2.10</version> |
| | | </dependency> |
| | | |
| | | <!--servlet--> |
| | | <dependency> |
| | | <groupId>javax.servlet</groupId> |
| | | <artifactId>javax.servlet-api</artifactId> |
| | | <version>3.1.0</version> |
| | | <scope>provided</scope> |
| | | </dependency> |
| | | |
| | | <!--apache.poi--> |
| | | <dependency> |
| | | <groupId>org.apache.poi</groupId> |
| | | <artifactId>poi-ooxml</artifactId> |
| | | <version>3.16</version> |
| | | </dependency> |
| | | |
| | | <!--proj4j--> |
| | | <dependency> |
| | | <groupId>org.osgeo</groupId> |
| | | <artifactId>proj4j</artifactId> |
| | | <version>0.1.0</version> |
| | | </dependency> |
| | | |
| | | <!--JTS--> |
| | | <dependency> |
| | | <groupId>org.locationtech.jts</groupId> |
| | | <artifactId>jts-core</artifactId> |
| | | <version>1.19.0</version> |
| | | </dependency> |
| | | |
| | | <!-- se-common --> |
| | |
| | | import org.springframework.boot.autoconfigure.SpringBootApplication; |
| | | import org.springframework.context.annotation.EnableAspectJAutoProxy; |
| | | import org.springframework.scheduling.annotation.EnableAsync; |
| | | import springfox.documentation.swagger2.annotations.EnableSwagger2; |
| | | |
| | | @EnableAsync |
| | | @EnableSwagger2 |
| | | @EnableAspectJAutoProxy(exposeProxy = true) |
| | | @SpringBootApplication(scanBasePackages = {"com.terra.publish.*"}) |
| | | public class SePublishApp |
| | |
| | | package com.terra.publish.controller; |
| | | |
| | | import com.terra.publish.controller.all.BaseController; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import com.terra.common.controller.all.BaseController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import com.terra.publish.entity.all.ResponseMsg; |
| | | import com.terra.common.entity.all.ResponseMsg; |
| | | import java.util.Date; |
| | | |
| | | import java.text.SimpleDateFormat; |
| | | |
| | | @Api(tags = "æ°æ®åå¸\\æµè¯æå¡") |
| | | @RestController |
| | | @RequestMapping("/test") |
| | | public class TestController extends BaseController { |
| | | public static final SimpleDateFormat YMDHMS_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | |
| | | @ApiOperation(value = "Test") |
| | | @GetMapping(value = "/test") |
| | | @GetMapping(value = "/testp") |
| | | public ResponseMsg<Object> test() { |
| | | try { |
| | | String date = YMDHMS_FORMAT.format(new Date()); |
| | | |
| | | return success(date); |
| | | return success("Publish", date); |
| | | } catch (Exception ex) { |
| | | return fail(ex, null); |
| | | } |
| | |
| | | discovery: |
| | | # æå¡æ³¨åå°å |
| | | server-addr: 127.0.0.1:8848 |
| | | group: JHS_GROUP |
| | | config: |
| | | group: JHS_GROUP |
| | | # é
ç½®ä¸å¿å°å |
| | |
| | | <setting name="logImpl" value="NO_LOGGING" /> |
| | | </settings> |
| | | <typeAliases> |
| | | <package name="com.terra.publish.entity"/> |
| | | <!--âç±»åå«åé
ç½®--> |
| | | <package name="com.terra.collect.entity"/> |
| | | </typeAliases> |
| | | </configuration> |
| | |
| | | <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--> |
ÎļþÃû´Ó se-system/src/main/java/com/terra/system/SeSystemApplication.java ÐÞ¸Ä |
| | |
| | | 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 SeSystemApplication |
| | | public class SeSystemApp |
| | | { |
| | | public static void main(String[] args) |
| | | { |
| | | SpringApplication.run(SeSystemApplication.class, args); |
| | | SpringApplication.run(SeSystemApp.class, args); |
| | | System.out.println("----------ç³»ç»æ¨¡åå¯å¨æå---------- \n"); |
| | | } |
| | | } |
| | |
| | | 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); |
| | |
| | | context-path: / |
| | | |
| | | spring: |
| | | application: |
| | | name: se-system |
| | | mvc: |
| | | static-path-pattern: /static/** |
| | | # redis |
| | | redis: |
| | | database: 0 |
| | | host: 192.168.11.203 |
| | | port: 6379 |
| | | host: 127.0.0.1 |
| | | port: 6369 |
| | | password: rediS_5L#F4_Server |
| | | # è¿æ¥è¶
æ¶æ¶é¿ï¼æ¯«ç§ï¼ |
| | | timeout: 10000 |
| | |
| | | # datasource |
| | | datasource: |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | url: jdbc:postgresql://192.168.11.203:5432/jhs?useAffectedRows=true |
| | | #url: jdbc:postgresql://192.168.11.205:5433/jhs?useAffectedRows=true |
| | | url: jdbc:postgresql://127.0.0.1:5433/jhs?useAffectedRows=true |
| | | username: postgres |
| | | password: Postgres!_17_jHs |
| | | #password: Postgres!_14_Lf |
| | | password: postgres |
| | | driver-class-name: org.postgresql.Driver |
| | | platform: POSTGRESQL |
| | | filters: stat,wall,log4j |
| | |
| | | |
| | | mybatis-plus: |
| | | type-aliases-package: com.terra.system.entity |
| | | config-location: classpath:mybatis.xml |
| | | mapper-locations: classpath:mapper/**/*.xml |
| | | |
| | | # logging |
| | | logging: |
| | |
| | | discovery: |
| | | # æå¡æ³¨åå°å |
| | | server-addr: 127.0.0.1:8848 |
| | | group: JHS_GROUP |
| | | config: |
| | | group: JHS_GROUP |
| | | # é
ç½®ä¸å¿å°å |
| | |
| | | <setting name="logImpl" value="NO_LOGGING" /> |
| | | </settings> |
| | | <typeAliases> |
| | | <package name="com.terra.system.entity"/> |
| | | <!--âç±»åå«åé
ç½®--> |
| | | <package name="com.terra.collect.entity"/> |
| | | </typeAliases> |
| | | </configuration> |
| | |
| | | ------------------------------------------------------------------- |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ------------------------------------------------------------------- åè½æ¨¡åï¼æ¯æç¬ç«é¨ç½² |
| | | se-commonï¼ éç¨æ¨¡å |
| | | se-gatewayï¼8001ï¼ç³»ç»ç½å
³ |
| | |
| | | se-discoverï¼8004ï¼ç¥è¯åç° |
| | | se-publishï¼8005ï¼æ°æ®åå¸ |
| | | ------------------------------------------------------------------- URL |
| | | admin:Admin@1234_lf |
| | | adminï¼Admin@1234_lf |
| | | nacosï¼nAcos_!9#_admIn |
| | | |
| | | http://localhost:8848/nacos |
| | |
| | | http://localhost:8001/system/dir/selectDir?id=1 |
| | | http://localhost:8002/dir/selectDir?id=1 |
| | | |
| | | http://localhost:8001/webjars/swagger-ui/index.html |
| | | http://localhost:8003/swagger-ui/index.html |
| | | |
| | | http://192.168.11.203:8848/nacos |
| | | http://192.168.11.203:8081/api/system/swagger-ui.html |
| | | ------------------------------------------------------------------- PIE-Engine Server |