feat:添加财务中心模块

main
wb2476 2024-07-22 11:00:46 +08:00
parent a6bfafec0e
commit 8e5b240125
5 changed files with 86 additions and 0 deletions

View File

@ -25,6 +25,7 @@
<module>scfs-api-sm</module> <module>scfs-api-sm</module>
<module>scfs-api-spring-boot-starter</module> <module>scfs-api-spring-boot-starter</module>
<module>scfs-api-test</module> <module>scfs-api-test</module>
<module>scfs-api-service-accountant</module>
</modules> </modules>
<dependencies> <dependencies>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.czcb.scfs</groupId>
<artifactId>scfs-api-sdk</artifactId>
<version>2.0.4-snapshot</version>
</parent>
<artifactId>scfs-api-service-accountant</artifactId>
<version>2.0.4-snapshot</version>
<name>scfs-api-service-cat:财务中心对外接口</name>
<description>财务中心SDK</description>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
<version>2.7.16</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
</dependency>
<dependency>
<groupId>com.czcb.scfs</groupId>
<artifactId>scfs-api-core</artifactId>
<version>2.0.4-snapshot</version>
</dependency>
</dependencies>
</project>

View File

@ -0,0 +1,26 @@
package com.czcb.scfs.service.accountant.configuration;
import com.czcb.scfs.api.core.ApiClient;
import com.czcb.scfs.service.accountant.invoice.InvoiceService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
/**
*
*
* @author H.T
* @since 2024-07-22
*/
@Configuration
@ComponentScan("com.czcb.scfs.service.accountant")
public class ScfsApiServiceAccountantAutoConfiguration {
@Bean
@ConditionalOnMissingBean
public InvoiceService invoiceService(ApiClient apiClient) {
return new InvoiceService(apiClient);
}
}

View File

@ -0,0 +1,18 @@
package com.czcb.scfs.service.accountant.invoice;
import com.czcb.scfs.api.core.ApiClient;
/**
*
*
* @author H.T
* @since 2024-07-22
*/
public class InvoiceService {
private final ApiClient apiClient;
public InvoiceService(ApiClient apiClient) {
this.apiClient = apiClient;
}
}

View File

@ -0,0 +1,2 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.czcb.scfs.service.accountant.configuration.ScfsApiServiceAccountantAutoConfiguration