parent
14e54dee62
commit
137a4a68c4
14 changed files with 135 additions and 591 deletions
@ -1,254 +0,0 @@ |
|||||||
|
|
||||||
package org.springblade.common.constant; |
|
||||||
|
|
||||||
import org.springblade.core.launch.constant.AppConstant; |
|
||||||
|
|
||||||
import static org.springblade.core.launch.constant.AppConstant.APPLICATION_NAME_PREFIX; |
|
||||||
|
|
||||||
/** |
|
||||||
* 启动常量 |
|
||||||
* |
|
||||||
* @author Chill |
|
||||||
*/ |
|
||||||
public interface LauncherConstant { |
|
||||||
|
|
||||||
/** |
|
||||||
* 郵件服務 |
|
||||||
*/ |
|
||||||
String APPLICATION_EMAIL_NAME = APPLICATION_NAME_PREFIX + "email"; |
|
||||||
|
|
||||||
|
|
||||||
String APPLICATION_FLOW_NAME = APPLICATION_NAME_PREFIX + "workflow"; |
|
||||||
|
|
||||||
/** |
|
||||||
* 资产 |
|
||||||
*/ |
|
||||||
String APPLICATION_CAPITAL_NAME = APPLICATION_NAME_PREFIX + "capital"; |
|
||||||
|
|
||||||
/** |
|
||||||
* lims |
|
||||||
*/ |
|
||||||
String APPLICATION_LIMS_NAME = APPLICATION_NAME_PREFIX + "lims"; |
|
||||||
|
|
||||||
/** |
|
||||||
* office |
|
||||||
*/ |
|
||||||
String APPLICATION_OFFICE_NAME = APPLICATION_NAME_PREFIX + "office"; |
|
||||||
/** |
|
||||||
* repair |
|
||||||
*/ |
|
||||||
String APPLICATION_REPAIR_NAME = APPLICATION_NAME_PREFIX + "repair"; |
|
||||||
|
|
||||||
/** |
|
||||||
* monitor |
|
||||||
*/ |
|
||||||
String APPLICATION_MONITOR_NAME = APPLICATION_NAME_PREFIX + "monitor"; |
|
||||||
|
|
||||||
/** |
|
||||||
* iot |
|
||||||
*/ |
|
||||||
String APPLICATION_IOT_NAME = APPLICATION_NAME_PREFIX + "iot"; |
|
||||||
/** |
|
||||||
* xxljob |
|
||||||
*/ |
|
||||||
String APPLICATION_XXLJOB_NAME = APPLICATION_NAME_PREFIX + "xxljob"; |
|
||||||
|
|
||||||
/** |
|
||||||
* xxljob |
|
||||||
*/ |
|
||||||
String APPLICATION_XXLJOB_ADMIN_NAME = APPLICATION_NAME_PREFIX + "xxljob-admin"; |
|
||||||
|
|
||||||
/** |
|
||||||
* nacos dev 地址 |
|
||||||
*/ |
|
||||||
String NACOS_DEV_ADDR = "172.29.14.103:8848"; |
|
||||||
//String NACOS_DEV_ADDR = "127.0.0.1:8848"; |
|
||||||
|
|
||||||
//String NACOS_DEV_ADDR = "172.29.14.103:8848"; |
|
||||||
|
|
||||||
/** |
|
||||||
* nacos prod 地址 |
|
||||||
*/ |
|
||||||
String NACOS_PROD_ADDR = "172.30.0.48:8848"; |
|
||||||
|
|
||||||
/** |
|
||||||
* nacos test 地址 |
|
||||||
*/ |
|
||||||
String NACOS_TEST_ADDR = "192.168.1.88:8848"; |
|
||||||
|
|
||||||
/** |
|
||||||
* sentinel dev 地址 |
|
||||||
*/ |
|
||||||
String SENTINEL_DEV_ADDR = "127.0.0.1:8848"; |
|
||||||
|
|
||||||
/** |
|
||||||
* sentinel prod 地址 |
|
||||||
*/ |
|
||||||
String SENTINEL_PROD_ADDR = "172.30.0.58:8858"; |
|
||||||
|
|
||||||
/** |
|
||||||
* sentinel test 地址 |
|
||||||
*/ |
|
||||||
String SENTINEL_TEST_ADDR = "172.30.0.58:8858"; |
|
||||||
|
|
||||||
/** |
|
||||||
* seata dev 地址 |
|
||||||
*/ |
|
||||||
String SEATA_DEV_ADDR = "127.0.0.1:8091"; |
|
||||||
|
|
||||||
/** |
|
||||||
* seata prod 地址 |
|
||||||
*/ |
|
||||||
String SEATA_PROD_ADDR = "172.30.0.68:8091"; |
|
||||||
|
|
||||||
/** |
|
||||||
* seata test 地址 |
|
||||||
*/ |
|
||||||
String SEATA_TEST_ADDR = "172.30.0.68:8091"; |
|
||||||
|
|
||||||
/** |
|
||||||
* zipkin dev 地址 |
|
||||||
*/ |
|
||||||
String ZIPKIN_DEV_ADDR = "http://127.0.0.1:9411"; |
|
||||||
|
|
||||||
/** |
|
||||||
* zipkin prod 地址 |
|
||||||
*/ |
|
||||||
String ZIPKIN_PROD_ADDR = "http://172.30.0.71:9411"; |
|
||||||
|
|
||||||
/** |
|
||||||
* zipkin test 地址 |
|
||||||
*/ |
|
||||||
String ZIPKIN_TEST_ADDR = "http://172.30.0.71:9411"; |
|
||||||
|
|
||||||
/** |
|
||||||
* elk dev 地址 |
|
||||||
*/ |
|
||||||
String ELK_DEV_ADDR = "127.0.0.1:9000"; |
|
||||||
|
|
||||||
/** |
|
||||||
* elk prod 地址 |
|
||||||
*/ |
|
||||||
String ELK_PROD_ADDR = "172.30.0.72:9000"; |
|
||||||
|
|
||||||
/** |
|
||||||
* elk test 地址 |
|
||||||
*/ |
|
||||||
String ELK_TEST_ADDR = "172.30.0.72:9000"; |
|
||||||
|
|
||||||
/** |
|
||||||
* seata file模式 |
|
||||||
*/ |
|
||||||
String FILE_MODE = "file"; |
|
||||||
|
|
||||||
/** |
|
||||||
* seata nacos模式 |
|
||||||
*/ |
|
||||||
String NACOS_MODE = "nacos"; |
|
||||||
|
|
||||||
/** |
|
||||||
* seata default模式 |
|
||||||
*/ |
|
||||||
String DEFAULT_MODE = "default"; |
|
||||||
|
|
||||||
/** |
|
||||||
* seata group后缀 |
|
||||||
*/ |
|
||||||
String GROUP_NAME = "-group"; |
|
||||||
|
|
||||||
/** |
|
||||||
* seata 服务组格式 |
|
||||||
* |
|
||||||
* @param appName 服务名 |
|
||||||
* @return group |
|
||||||
*/ |
|
||||||
static String seataServiceGroup(String appName) { |
|
||||||
return appName.concat(GROUP_NAME); |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* 动态获取nacos地址 |
|
||||||
* |
|
||||||
* @param profile 环境变量 |
|
||||||
* @return addr |
|
||||||
*/ |
|
||||||
static String nacosAddr(String profile) { |
|
||||||
switch (profile) { |
|
||||||
case (AppConstant.PROD_CODE): |
|
||||||
return NACOS_PROD_ADDR; |
|
||||||
case (AppConstant.TEST_CODE): |
|
||||||
return NACOS_TEST_ADDR; |
|
||||||
default: |
|
||||||
return NACOS_DEV_ADDR; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* 动态获取sentinel地址 |
|
||||||
* |
|
||||||
* @param profile 环境变量 |
|
||||||
* @return addr |
|
||||||
*/ |
|
||||||
static String sentinelAddr(String profile) { |
|
||||||
switch (profile) { |
|
||||||
case (AppConstant.PROD_CODE): |
|
||||||
return SENTINEL_PROD_ADDR; |
|
||||||
case (AppConstant.TEST_CODE): |
|
||||||
return SENTINEL_TEST_ADDR; |
|
||||||
default: |
|
||||||
return SENTINEL_DEV_ADDR; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* 动态获取seata地址 |
|
||||||
* |
|
||||||
* @param profile 环境变量 |
|
||||||
* @return addr |
|
||||||
*/ |
|
||||||
static String seataAddr(String profile) { |
|
||||||
switch (profile) { |
|
||||||
case (AppConstant.PROD_CODE): |
|
||||||
return SEATA_PROD_ADDR; |
|
||||||
case (AppConstant.TEST_CODE): |
|
||||||
return SEATA_TEST_ADDR; |
|
||||||
default: |
|
||||||
return SEATA_DEV_ADDR; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* 动态获取zipkin地址 |
|
||||||
* |
|
||||||
* @param profile 环境变量 |
|
||||||
* @return addr |
|
||||||
*/ |
|
||||||
static String zipkinAddr(String profile) { |
|
||||||
switch (profile) { |
|
||||||
case (AppConstant.PROD_CODE): |
|
||||||
return ZIPKIN_PROD_ADDR; |
|
||||||
case (AppConstant.TEST_CODE): |
|
||||||
return ZIPKIN_TEST_ADDR; |
|
||||||
default: |
|
||||||
return ZIPKIN_DEV_ADDR; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* 动态获取elk地址 |
|
||||||
* |
|
||||||
* @param profile 环境变量 |
|
||||||
* @return addr |
|
||||||
*/ |
|
||||||
static String elkAddr(String profile) { |
|
||||||
switch (profile) { |
|
||||||
case (AppConstant.PROD_CODE): |
|
||||||
return ELK_PROD_ADDR; |
|
||||||
case (AppConstant.TEST_CODE): |
|
||||||
return ELK_TEST_ADDR; |
|
||||||
default: |
|
||||||
return ELK_DEV_ADDR; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
@ -1,254 +0,0 @@ |
|||||||
|
|
||||||
package org.springblade.common.constant; |
|
||||||
|
|
||||||
import org.springblade.core.launch.constant.AppConstant; |
|
||||||
|
|
||||||
import static org.springblade.core.launch.constant.AppConstant.APPLICATION_NAME_PREFIX; |
|
||||||
|
|
||||||
/** |
|
||||||
* 启动常量 |
|
||||||
* |
|
||||||
* @author Chill |
|
||||||
*/ |
|
||||||
public interface LauncherConstant { |
|
||||||
|
|
||||||
/** |
|
||||||
* 郵件服務 |
|
||||||
*/ |
|
||||||
String APPLICATION_EMAIL_NAME = APPLICATION_NAME_PREFIX + "email"; |
|
||||||
|
|
||||||
|
|
||||||
String APPLICATION_FLOW_NAME = APPLICATION_NAME_PREFIX + "workflow"; |
|
||||||
|
|
||||||
/** |
|
||||||
* 资产 |
|
||||||
*/ |
|
||||||
String APPLICATION_CAPITAL_NAME = APPLICATION_NAME_PREFIX + "capital"; |
|
||||||
|
|
||||||
/** |
|
||||||
* lims |
|
||||||
*/ |
|
||||||
String APPLICATION_LIMS_NAME = APPLICATION_NAME_PREFIX + "lims"; |
|
||||||
|
|
||||||
/** |
|
||||||
* office |
|
||||||
*/ |
|
||||||
String APPLICATION_OFFICE_NAME = APPLICATION_NAME_PREFIX + "office"; |
|
||||||
/** |
|
||||||
* repair |
|
||||||
*/ |
|
||||||
String APPLICATION_REPAIR_NAME = APPLICATION_NAME_PREFIX + "repair"; |
|
||||||
|
|
||||||
/** |
|
||||||
* monitor |
|
||||||
*/ |
|
||||||
String APPLICATION_MONITOR_NAME = APPLICATION_NAME_PREFIX + "monitor"; |
|
||||||
|
|
||||||
/** |
|
||||||
* iot |
|
||||||
*/ |
|
||||||
String APPLICATION_IOT_NAME = APPLICATION_NAME_PREFIX + "iot"; |
|
||||||
/** |
|
||||||
* xxljob |
|
||||||
*/ |
|
||||||
String APPLICATION_XXLJOB_NAME = APPLICATION_NAME_PREFIX + "xxljob"; |
|
||||||
|
|
||||||
/** |
|
||||||
* xxljob |
|
||||||
*/ |
|
||||||
String APPLICATION_XXLJOB_ADMIN_NAME = APPLICATION_NAME_PREFIX + "xxljob-admin"; |
|
||||||
|
|
||||||
/** |
|
||||||
* nacos dev 地址 |
|
||||||
*/ |
|
||||||
//String NACOS_DEV_ADDR = "172.29.14.103:8848"; |
|
||||||
String NACOS_DEV_ADDR = "127.0.0.1:8848"; |
|
||||||
|
|
||||||
//String NACOS_DEV_ADDR = "172.29.14.103:8848"; |
|
||||||
|
|
||||||
/** |
|
||||||
* nacos prod 地址 |
|
||||||
*/ |
|
||||||
String NACOS_PROD_ADDR = "172.30.0.48:8848"; |
|
||||||
|
|
||||||
/** |
|
||||||
* nacos test 地址 |
|
||||||
*/ |
|
||||||
String NACOS_TEST_ADDR = "192.168.1.88:8848"; |
|
||||||
|
|
||||||
/** |
|
||||||
* sentinel dev 地址 |
|
||||||
*/ |
|
||||||
String SENTINEL_DEV_ADDR = "127.0.0.1:8848"; |
|
||||||
|
|
||||||
/** |
|
||||||
* sentinel prod 地址 |
|
||||||
*/ |
|
||||||
String SENTINEL_PROD_ADDR = "172.30.0.58:8858"; |
|
||||||
|
|
||||||
/** |
|
||||||
* sentinel test 地址 |
|
||||||
*/ |
|
||||||
String SENTINEL_TEST_ADDR = "172.30.0.58:8858"; |
|
||||||
|
|
||||||
/** |
|
||||||
* seata dev 地址 |
|
||||||
*/ |
|
||||||
String SEATA_DEV_ADDR = "127.0.0.1:8091"; |
|
||||||
|
|
||||||
/** |
|
||||||
* seata prod 地址 |
|
||||||
*/ |
|
||||||
String SEATA_PROD_ADDR = "172.30.0.68:8091"; |
|
||||||
|
|
||||||
/** |
|
||||||
* seata test 地址 |
|
||||||
*/ |
|
||||||
String SEATA_TEST_ADDR = "172.30.0.68:8091"; |
|
||||||
|
|
||||||
/** |
|
||||||
* zipkin dev 地址 |
|
||||||
*/ |
|
||||||
String ZIPKIN_DEV_ADDR = "http://127.0.0.1:9411"; |
|
||||||
|
|
||||||
/** |
|
||||||
* zipkin prod 地址 |
|
||||||
*/ |
|
||||||
String ZIPKIN_PROD_ADDR = "http://172.30.0.71:9411"; |
|
||||||
|
|
||||||
/** |
|
||||||
* zipkin test 地址 |
|
||||||
*/ |
|
||||||
String ZIPKIN_TEST_ADDR = "http://172.30.0.71:9411"; |
|
||||||
|
|
||||||
/** |
|
||||||
* elk dev 地址 |
|
||||||
*/ |
|
||||||
String ELK_DEV_ADDR = "127.0.0.1:9000"; |
|
||||||
|
|
||||||
/** |
|
||||||
* elk prod 地址 |
|
||||||
*/ |
|
||||||
String ELK_PROD_ADDR = "172.30.0.72:9000"; |
|
||||||
|
|
||||||
/** |
|
||||||
* elk test 地址 |
|
||||||
*/ |
|
||||||
String ELK_TEST_ADDR = "172.30.0.72:9000"; |
|
||||||
|
|
||||||
/** |
|
||||||
* seata file模式 |
|
||||||
*/ |
|
||||||
String FILE_MODE = "file"; |
|
||||||
|
|
||||||
/** |
|
||||||
* seata nacos模式 |
|
||||||
*/ |
|
||||||
String NACOS_MODE = "nacos"; |
|
||||||
|
|
||||||
/** |
|
||||||
* seata default模式 |
|
||||||
*/ |
|
||||||
String DEFAULT_MODE = "default"; |
|
||||||
|
|
||||||
/** |
|
||||||
* seata group后缀 |
|
||||||
*/ |
|
||||||
String GROUP_NAME = "-group"; |
|
||||||
|
|
||||||
/** |
|
||||||
* seata 服务组格式 |
|
||||||
* |
|
||||||
* @param appName 服务名 |
|
||||||
* @return group |
|
||||||
*/ |
|
||||||
static String seataServiceGroup(String appName) { |
|
||||||
return appName.concat(GROUP_NAME); |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* 动态获取nacos地址 |
|
||||||
* |
|
||||||
* @param profile 环境变量 |
|
||||||
* @return addr |
|
||||||
*/ |
|
||||||
static String nacosAddr(String profile) { |
|
||||||
switch (profile) { |
|
||||||
case (AppConstant.PROD_CODE): |
|
||||||
return NACOS_PROD_ADDR; |
|
||||||
case (AppConstant.TEST_CODE): |
|
||||||
return NACOS_TEST_ADDR; |
|
||||||
default: |
|
||||||
return NACOS_DEV_ADDR; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* 动态获取sentinel地址 |
|
||||||
* |
|
||||||
* @param profile 环境变量 |
|
||||||
* @return addr |
|
||||||
*/ |
|
||||||
static String sentinelAddr(String profile) { |
|
||||||
switch (profile) { |
|
||||||
case (AppConstant.PROD_CODE): |
|
||||||
return SENTINEL_PROD_ADDR; |
|
||||||
case (AppConstant.TEST_CODE): |
|
||||||
return SENTINEL_TEST_ADDR; |
|
||||||
default: |
|
||||||
return SENTINEL_DEV_ADDR; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* 动态获取seata地址 |
|
||||||
* |
|
||||||
* @param profile 环境变量 |
|
||||||
* @return addr |
|
||||||
*/ |
|
||||||
static String seataAddr(String profile) { |
|
||||||
switch (profile) { |
|
||||||
case (AppConstant.PROD_CODE): |
|
||||||
return SEATA_PROD_ADDR; |
|
||||||
case (AppConstant.TEST_CODE): |
|
||||||
return SEATA_TEST_ADDR; |
|
||||||
default: |
|
||||||
return SEATA_DEV_ADDR; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* 动态获取zipkin地址 |
|
||||||
* |
|
||||||
* @param profile 环境变量 |
|
||||||
* @return addr |
|
||||||
*/ |
|
||||||
static String zipkinAddr(String profile) { |
|
||||||
switch (profile) { |
|
||||||
case (AppConstant.PROD_CODE): |
|
||||||
return ZIPKIN_PROD_ADDR; |
|
||||||
case (AppConstant.TEST_CODE): |
|
||||||
return ZIPKIN_TEST_ADDR; |
|
||||||
default: |
|
||||||
return ZIPKIN_DEV_ADDR; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
/** |
|
||||||
* 动态获取elk地址 |
|
||||||
* |
|
||||||
* @param profile 环境变量 |
|
||||||
* @return addr |
|
||||||
*/ |
|
||||||
static String elkAddr(String profile) { |
|
||||||
switch (profile) { |
|
||||||
case (AppConstant.PROD_CODE): |
|
||||||
return ELK_PROD_ADDR; |
|
||||||
case (AppConstant.TEST_CODE): |
|
||||||
return ELK_TEST_ADDR; |
|
||||||
default: |
|
||||||
return ELK_DEV_ADDR; |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
@ -0,0 +1,42 @@ |
|||||||
|
package org.springblade.plugin.workbench.controller; |
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
||||||
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; |
||||||
|
import io.swagger.annotations.Api; |
||||||
|
import io.swagger.annotations.ApiOperation; |
||||||
|
import lombok.AllArgsConstructor; |
||||||
|
import org.springblade.core.boot.ctrl.BladeController; |
||||||
|
import org.springblade.core.mp.support.Condition; |
||||||
|
import org.springblade.core.mp.support.Query; |
||||||
|
import org.springblade.core.tenant.annotation.NonDS; |
||||||
|
import org.springblade.core.tool.api.R; |
||||||
|
import org.springblade.system.entity.AuthClient; |
||||||
|
import org.springframework.web.bind.annotation.GetMapping; |
||||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||||
|
import org.springframework.web.bind.annotation.RestController; |
||||||
|
|
||||||
|
/** |
||||||
|
* @Description 自动启动的工作流的原型信息 |
||||||
|
* @Author ytl |
||||||
|
* @Date 2023/2/22 0022 13:06 |
||||||
|
*/ |
||||||
|
|
||||||
|
@NonDS |
||||||
|
@RestController |
||||||
|
@AllArgsConstructor |
||||||
|
@RequestMapping("/autoProcess") |
||||||
|
@Api(value = "自动启动的工作流的原型信息", tags = "自动启动的工作流的原型信息") |
||||||
|
public class AutoStartProcessController extends BladeController { |
||||||
|
|
||||||
|
// /**
|
||||||
|
// * 分页
|
||||||
|
// */
|
||||||
|
// @GetMapping("/list")
|
||||||
|
// @ApiOperationSupport(order = 1)
|
||||||
|
// @ApiOperation(value = "分页", notes = "传入autoStartModel")
|
||||||
|
// public R<IPage<AuthClient>> list(AuthClient authClient, Query query) {
|
||||||
|
// IPage<AuthClient> pages = clientService.page(Condition.getPage(query), Condition.getQueryWrapper(authClient));
|
||||||
|
// return R.data(pages);
|
||||||
|
// }
|
||||||
|
|
||||||
|
} |
||||||
@ -1,12 +1,12 @@ |
|||||||
package org.springblade.plugin.workbench.mapper; |
package org.springblade.plugin.workbench.mapper; |
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||||
import org.springblade.plugin.workbench.entity.BladeManMade; |
import org.springblade.plugin.workbench.entity.AutoStartModel; |
||||||
|
|
||||||
/** |
/** |
||||||
* @Description |
* @Description |
||||||
* @Author ytl |
* @Author ytl |
||||||
* @Date 2023/2/20 0020 15:23 |
* @Date 2023/2/20 0020 15:23 |
||||||
*/ |
*/ |
||||||
public interface BladeManMadeMapper extends BaseMapper<BladeManMade> { |
public interface BladeManMadeMapper extends BaseMapper<AutoStartModel> { |
||||||
} |
} |
||||||
|
|||||||
Loading…
Reference in new issue