forked from leecho/cola-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
310 additions
and
161 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
cola-cloud-platform/cola-cloud-organization/cola-cloud-organization-client/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?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"> | ||
<parent> | ||
<artifactId>cola-cloud-organization</artifactId> | ||
<groupId>com.honvay.cola</groupId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>cola-cloud-organization-client</artifactId> | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.honvay.cola</groupId> | ||
<artifactId>cola-cloud-framework-core</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.honvay.cola</groupId> | ||
<artifactId>cola-cloud-organization-model</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.cloud</groupId> | ||
<artifactId>spring-cloud-starter-feign</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
19 changes: 19 additions & 0 deletions
19
...ion-client/src/main/java/com/honvay/cola/cloud/organization/client/SysEmployeeClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.honvay.cola.cloud.organization.client; | ||
|
||
import com.honvay.cola.cloud.framework.core.protocol.Result; | ||
import com.honvay.cola.cloud.organization.model.SysEmployeeAddDTO; | ||
import com.honvay.cola.cloud.organization.model.SysEmployeeDTO; | ||
import org.springframework.cloud.netflix.feign.FeignClient; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
|
||
/** | ||
* @author LIQIU | ||
* @date 2018-4-20 | ||
**/ | ||
@FeignClient(serviceId = "organization-service") | ||
public interface SysEmployeeClient { | ||
|
||
@PostMapping("/organization/employee/add") | ||
Result<SysEmployeeDTO> add(SysEmployeeAddDTO SysEmployeeAddDTO); | ||
|
||
} |
18 changes: 18 additions & 0 deletions
18
...client/src/main/java/com/honvay/cola/cloud/organization/client/SysOrganizationClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.honvay.cola.cloud.organization.client; | ||
|
||
import com.honvay.cola.cloud.framework.core.protocol.Result; | ||
import com.honvay.cola.cloud.organization.model.SysOrganizationDTO; | ||
import org.springframework.cloud.netflix.feign.FeignClient; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
|
||
/** | ||
* @author LIQIU | ||
* @date 2018-4-20 | ||
**/ | ||
@FeignClient(serviceId = "organization-service") | ||
public interface SysOrganizationClient { | ||
|
||
@PostMapping("/organization/organization/add") | ||
Result<SysOrganizationDTO> add(SysOrganizationDTO sysOrganizationDTO); | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
cola-cloud-platform/cola-cloud-organization/cola-cloud-organization-model/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?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"> | ||
<parent> | ||
<artifactId>cola-cloud-organization</artifactId> | ||
<groupId>com.honvay.cola</groupId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>cola-cloud-organization-model</artifactId> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-validation</artifactId> | ||
</dependency> | ||
</dependencies> | ||
|
||
</project> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,5 +25,4 @@ public class SysEmployeeDTO implements Serializable { | |
@NotNull(message = "用户名不能为空") | ||
private String username; | ||
|
||
|
||
} |
47 changes: 47 additions & 0 deletions
47
...tion-model/src/main/java/com/honvay/cola/cloud/organization/model/SysOrganizationDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package com.honvay.cola.cloud.organization.model; | ||
|
||
import lombok.Data; | ||
import org.hibernate.validator.constraints.Length; | ||
|
||
import javax.validation.constraints.NotNull; | ||
|
||
|
||
/** | ||
* 组织架构 | ||
* | ||
* @author LIQIU | ||
*/ | ||
@Data | ||
public class SysOrganizationDTO { | ||
|
||
private Long id; | ||
|
||
/** | ||
* 组织名称 | ||
*/ | ||
@NotNull(message = "组织名称不能为空") | ||
@Length(max = 100, message = "组织名称长度必须{max}个字符内") | ||
private String name; | ||
|
||
/** | ||
* 组织描述 | ||
*/ | ||
private String description; | ||
|
||
/** | ||
* 父组织编号 | ||
*/ | ||
@NotNull(message = "上级部门不能为空") | ||
private Long parent; | ||
|
||
/** | ||
* 组织代码 | ||
*/ | ||
@NotNull(message = "组织编号不能为空") | ||
@Length(max = 50, message = "组织编号长度必须{max}个字符内") | ||
private String code; | ||
|
||
private Long tenantId; | ||
|
||
private String deleted; | ||
} |
64 changes: 64 additions & 0 deletions
64
cola-cloud-platform/cola-cloud-organization/cola-cloud-organization-service/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?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"> | ||
<parent> | ||
<artifactId>cola-cloud-organization</artifactId> | ||
<groupId>com.honvay.cola</groupId> | ||
<version>1.0.0-SNAPSHOT</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>cola-cloud-organization-service</artifactId> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>com.honvay.cola</groupId> | ||
<artifactId>cola-cloud-framework-base</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-data-redis</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-cache</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.cloud</groupId> | ||
<artifactId>spring-cloud-starter-hystrix</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.cloud</groupId> | ||
<artifactId>spring-cloud-starter-config</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.cloud</groupId> | ||
<artifactId>spring-cloud-starter-oauth2</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.cloud</groupId> | ||
<artifactId>spring-cloud-starter-feign</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.cloud</groupId> | ||
<artifactId>spring-cloud-starter-eureka</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.cloud</groupId> | ||
<artifactId>spring-cloud-sleuth-zipkin</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.honvay.cola</groupId> | ||
<artifactId>cola-cloud-uc-client</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.honvay.cola</groupId> | ||
<artifactId>cola-cloud-tenancy-client</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.honvay.cola</groupId> | ||
<artifactId>cola-cloud-organization-model</artifactId> | ||
</dependency> | ||
</dependencies> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.