update service name is not found
This commit is contained in:
parent
b4940f7be8
commit
36be6dca6e
@ -14,7 +14,7 @@ public class ApiConstants {
|
|||||||
*
|
*
|
||||||
* 注意,需要保证和 spring.application.name 保持一致
|
* 注意,需要保证和 spring.application.name 保持一致
|
||||||
*/
|
*/
|
||||||
public static final String NAME = "crm-server";
|
public static final String NAME = "zoe-crm";
|
||||||
|
|
||||||
public static final String PREFIX = RpcConstants.RPC_API_PREFIX + "/crm";
|
public static final String PREFIX = RpcConstants.RPC_API_PREFIX + "/crm";
|
||||||
|
|
||||||
|
|||||||
@ -77,6 +77,11 @@
|
|||||||
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-starter-bootstrap</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<!-- Job 定时任务相关 -->
|
<!-- Job 定时任务相关 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.qqchen.cloud</groupId>
|
<groupId>com.qqchen.cloud</groupId>
|
||||||
|
|||||||
@ -0,0 +1,47 @@
|
|||||||
|
package cn.iocoder.yudao.module.pay.service.demo;
|
||||||
|
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||||
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||||
|
import cn.iocoder.yudao.module.pay.controller.admin.demo.vo.withdraw.PayDemoWithdrawCreateReqVO;
|
||||||
|
import cn.iocoder.yudao.module.pay.dal.dataobject.demo.PayDemoWithdrawDO;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 示例提现单 Service 接口
|
||||||
|
*
|
||||||
|
* @author jason
|
||||||
|
*/
|
||||||
|
public interface PayDemoTransferService {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建示例提现单
|
||||||
|
*
|
||||||
|
* @param createReqVO 创建信息
|
||||||
|
* @return 编号
|
||||||
|
*/
|
||||||
|
Long createDemoWithdraw(@Valid PayDemoWithdrawCreateReqVO createReqVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 提现单转账
|
||||||
|
*
|
||||||
|
* @param id 提现单编号
|
||||||
|
* @return 转账编号
|
||||||
|
*/
|
||||||
|
Long transferDemoWithdraw(Long id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获得示例提现单分页
|
||||||
|
*
|
||||||
|
* @param pageVO 分页查询参数
|
||||||
|
*/
|
||||||
|
PageResult<PayDemoWithdrawDO> getDemoWithdrawPage(PageParam pageVO);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新示例提现单的状态
|
||||||
|
*
|
||||||
|
* @param id 编号
|
||||||
|
* @param payTransferId 转账单编号
|
||||||
|
*/
|
||||||
|
void updateDemoWithdrawTransferred(Long id, Long payTransferId);
|
||||||
|
|
||||||
|
}
|
||||||
@ -32,10 +32,10 @@ import static cn.iocoder.yudao.module.pay.enums.ErrorCodeConstants.*;
|
|||||||
*
|
*
|
||||||
* @author jason
|
* @author jason
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service("payDemoTransferService")
|
||||||
@Validated
|
@Validated
|
||||||
@Slf4j
|
@Slf4j
|
||||||
public class PayDemoTransferServiceImpl implements PayDemoWithdrawService {
|
public class PayDemoTransferServiceImpl implements PayDemoTransferService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 接入的支付应用标识
|
* 接入的支付应用标识
|
||||||
|
|||||||
@ -0,0 +1,20 @@
|
|||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: zoe-pay
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
server-addr: ${NACOS_CONFIG_SERVER}
|
||||||
|
username: ${NACOS_USER}
|
||||||
|
password: ${NACOS_PWD}
|
||||||
|
discovery:
|
||||||
|
group: ${DEPLOY_ENV}
|
||||||
|
namespace: ${DEPLOY_ENV}
|
||||||
|
ip: ${LOCAL_CLIENT_IP:} #必须要写:如果不写的话会注册成${LOCAL_CLIENT_IP}
|
||||||
|
config:
|
||||||
|
group: DEFAULT_GROUP
|
||||||
|
namespace: ${DEPLOY_ENV}
|
||||||
|
file-extension: yaml
|
||||||
|
config:
|
||||||
|
import:
|
||||||
|
- optional:nacos:zoe-common.yaml?group=DEFAULT_GROUP
|
||||||
|
- optional:nacos:zoe-datasource.yaml?group=DEFAULT_GROUP
|
||||||
Loading…
Reference in New Issue
Block a user