forked from zhoutaoo/SpringCloud
-
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
7 changed files
with
138 additions
and
1 deletion.
There are no files selected for viewing
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 @@ | ||
<?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>auth</artifactId> | ||
<groupId>com.springboot.cloud</groupId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
</parent> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>data-authentication-server</artifactId> | ||
|
||
<properties> | ||
<maven.compiler.source>8</maven.compiler.source> | ||
<maven.compiler.target>8</maven.compiler.target> | ||
</properties> | ||
|
||
</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
11 changes: 11 additions & 0 deletions
11
...zation/src/main/java/com/springboot/cloud/sysadmin/organization/dao/PermissionMapper.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,11 @@ | ||
package com.springboot.cloud.sysadmin.organization.dao; | ||
|
||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
import com.springboot.cloud.sysadmin.organization.entity.po.Permission; | ||
import org.apache.ibatis.annotations.Mapper; | ||
import org.springframework.stereotype.Repository; | ||
|
||
@Repository | ||
@Mapper | ||
public interface PermissionMapper extends BaseMapper<Permission> { | ||
} |
50 changes: 50 additions & 0 deletions
50
.../src/main/java/com/springboot/cloud/sysadmin/organization/entity/form/PermissionForm.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,50 @@ | ||
package com.springboot.cloud.sysadmin.organization.entity.form; | ||
|
||
import com.springboot.cloud.common.web.entity.form.BaseForm; | ||
import com.springboot.cloud.sysadmin.organization.entity.po.Permission; | ||
import io.swagger.annotations.ApiModelProperty; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
|
||
/** | ||
* 数据权限DTO | ||
* | ||
* @author wayne | ||
* @date 2021/09/06 | ||
*/ | ||
public class PermissionForm extends BaseForm<Permission> { | ||
/** | ||
* 资源类型:hive,hdfs | ||
*/ | ||
@NotBlank(message = "资源类型不能为空") | ||
@ApiModelProperty(value = "资源类型") | ||
private String resType; | ||
|
||
/** | ||
* 资源地区 | ||
*/ | ||
@NotBlank(message = "资源地区不能为空") | ||
@ApiModelProperty(value = "资源地区") | ||
private String area; | ||
|
||
/** | ||
* 资源完整路径 | ||
*/ | ||
@NotBlank(message = "资源路径不能为空") | ||
@ApiModelProperty(value = "资源路径") | ||
private String resFullPath; | ||
|
||
/** | ||
* 资源全名 | ||
*/ | ||
@NotBlank(message = "资源名称不能为空") | ||
@ApiModelProperty(value = "资源名称") | ||
private String resFullName; | ||
|
||
/** | ||
* 资源操作位:读,写,查询 | ||
*/ | ||
@NotBlank(message = "资源操作位不能为空") | ||
@ApiModelProperty(value = "资源操作位") | ||
private String operationBit; | ||
} |
45 changes: 45 additions & 0 deletions
45
...zation/src/main/java/com/springboot/cloud/sysadmin/organization/entity/po/Permission.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,45 @@ | ||
package com.springboot.cloud.sysadmin.organization.entity.po; | ||
|
||
import com.springboot.cloud.common.web.entity.po.BasePo; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
/** | ||
* 数据权限资源 | ||
* | ||
* @author wayne | ||
* @date 2021/09/06 | ||
*/ | ||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class Permission extends BasePo { | ||
|
||
/** | ||
* 资源类型:hive,hdfs | ||
*/ | ||
private String resType; | ||
|
||
/** | ||
* 资源地区 | ||
*/ | ||
private String area; | ||
|
||
/** | ||
* 资源完整路径 | ||
*/ | ||
private String resFullPath; | ||
|
||
/** | ||
* 资源全名 | ||
*/ | ||
private String resFullName; | ||
|
||
/** | ||
* 资源操作位:读,写,查询 | ||
*/ | ||
private String operationBit; | ||
} |
4 changes: 4 additions & 0 deletions
4
.../src/main/java/com/springboot/cloud/sysadmin/organization/service/IPermissionService.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,4 @@ | ||
package com.springboot.cloud.sysadmin.organization.service; | ||
|
||
public interface IPermissionService { | ||
} |
8 changes: 8 additions & 0 deletions
8
.../main/java/com/springboot/cloud/sysadmin/organization/service/impl/PermissionService.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,8 @@ | ||
package com.springboot.cloud.sysadmin.organization.service.impl; | ||
|
||
import com.springboot.cloud.sysadmin.organization.service.IPermissionService; | ||
import org.springframework.stereotype.Service; | ||
|
||
@Service | ||
public class PermissionService implements IPermissionService { | ||
} |